Deep check of an x402 endpoint before an expensive payment ($0.01 via x402)
x402_preflight_deepPaid ($0.01 via x402 in USDC on Base, Solana, Monad, Polygon, Arbitrum, Avalanche, Algorand, Stellar or NEAR, or in RLUSD on the XRP Ledger): for expensive calls. The pre-payment verdict (go, caution or no_go) plus the full diagnosis, the 30-day history per day, how reliable the seller's other endpoints are and whether the endpoint moved domains. Never pays the endpoint. Worth it before a payment above about $1. Same as GET /api/v1/preflight/deep. The answer carries a signed receipt (EIP-191, bound to your arguments) that proves later which verdict you got.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"url": "<url>"
},
"name": "x402_preflight_deep"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The x402 endpoint (public http(s) URL), e.g. https://api.example.com/paid | |
| body | No | Example JSON request body, for a POST route that checks its input before the 402 (implies POST). Without it, {} is sent and the requestBody example in the endpoint's /openapi.json is tried. | |
| client | No | Set to gateway when your agent pays with Circle's Gateway client (@circle-fin/x402-batching) from a Gateway balance: Gateway-only endpoints are then not a caution, and Gateway options are recommended first. | |
| max_usd | No | Your budget per call in USD, e.g. 0.5 | |
| network | No | CAIP-2 network you want to pay on, e.g. eip155:8453 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | ||
| accepts | No | Only on an unpaid call: the x402 payment options | |
| options | No | ||
| reasons | No | ||
| receipt | No | Signed receipt (EIP-191) binding the answer to your arguments | |
| summary | No | ||
| verdict | No | ||
| next_step | No | ||
| safe_to_pay | No |