x402 debugger
x402_checkFree. Decode any x402 payment request (from a URL, a PAYMENT-REQUIRED header or a 402 body) into plain English with warnings, and optionally verify a signed payment (PAYMENT-SIGNATURE / X-PAYMENT header) the way a facilitator would: recipient, amount, time window, EIP-712 signature against the token's real domain, nonce reuse and balance. Every failed check comes with the fix.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "x402_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | The paid endpoint URL (https). It is called once, without payment, to read its 402. | |
| body | No | JSON body for a POST url. | |
| method | No | HTTP method for url (default GET). | |
| payment | No | Optional signed payment header value to verify. | |
| requirement | No | Instead of url: the PAYMENT-REQUIRED header value (base64) or the 402 JSON body. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fix | No | How to fix it | |
| valid | No | Whether the 402 or payment is valid | |
| decoded | No | The decoded payment request or payment | |
| problems | No | What is wrong |