Docs
Integrate Methodus
One endpoint is live: Doubt at standard depth, $0.020 USDC per call on Base Sepolia (testnet) (eip155:84532), paid with x402 v2.
Request
POST https://zeb3labs.com/api/methodus/v1/doubt
Content-Type: application/json
{
"claim": "The deploy failed because of the config change in PR 412",
"trace": [
"The deploy started failing at 14:02",
"PR 412 merged at 13:58 and changed the config",
"Nothing else changed in that window"
],
"evidence": ["Deploy log: 'invalid key DATABASE_URL' at 14:02"]
}Limits at standard depth: claim ≤ 4,000 characters, ≤ 40 trace steps, ≤ 20 evidence items, 24,000 characters in total (413 above, not charged).
Payment flow (x402 v2)
- POST without payment →
402with aPAYMENT-REQUIREDheader: amount, USDC, network, payTo. - Sign an EIP-3009 USDC authorization for exactly that amount; retry with
PAYMENT-SIGNATURE. - The server verifies, runs the check and settles only on success; the receipt comes back in
PAYMENT-RESPONSE.
With the official client this is one wrapper:
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client();
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.AGENT_KEY) });
const pay = wrapFetchWithPayment(fetch, client);
const res = await pay("https://zeb3labs.com/api/methodus/v1/doubt", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({ claim, trace, evidence }),
});
const review = await res.json(); // verdict, assumptions, evidence_gaps, ...Response
{
"restatement": ["..."],
"precipitancy": false,
"steps": [{ "index": 0, "text": "...", "class": "evident|inferred|assumed|prejudiced", "why": "..." }],
"assumptions": [{ "statement": "...", "would_make_evident": "..." }],
"evidence_gaps": ["..."],
"verdict": "evident | probable | doubtful | precipitate",
"confidence": 0-100,
"rationale": "...",
"method_hash": "0x… keccak256(input ‖ output ‖ rubric_version ‖ model)",
"rubric_version": "doubt@v0",
"model": "...",
"eval_score": 0-1,
"eval_pass": true,
"cost_usdc": "0.020"
}MCP and A2A
MCP (Streamable HTTP, JSON responses): https://zeb3labs.com/api/methodus/v1/mcp exposes the paid tool doubt. An unpaid tools/call returns the same HTTP 402 challenge, so it needs an x402-aware MCP client.
A2A agent card: https://zeb3labs.com/.well-known/agent.json. Catalog with schemas: https://zeb3labs.com/api/methodus/v1/catalog. OpenAPI 3.1: https://zeb3labs.com/api/methodus/v1/openapi.json.
Errors
| 400 | Schema error | charged: no |
| 402 | Payment required, invalid or replayed | charged: — |
| 413 | Input over the standard ceiling | charged: no |
| 429 | Rate limited (per IP) | charged: — |
| 503 | Models unavailable, or payments not configured | charged: no |