Sipiteno x402 Pay Preflight
preflightCheck an x402 endpoint before your agent pays it. Reads the endpoint's unpaid 402 (never pays it), decodes v1/v2 challenges, confirms the asset is real USDC, gives the price in USD, payTo and network, and looks it up in the Coinbase x402 Bazaar for 30-day payers and calls. Returns allow, warn or block with reasons. $0.005 USDC on Base. Not charged if the URL cannot be reached. Paid tool: $0.005 USDC on Base via x402. Without payment it returns the x402 PaymentRequired (isError) - pay and retry with _meta["x402/payment"].
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": "preflight"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The x402 endpoint URL to check (http or https, public host). | |
| method | No | Optional: GET or POST. Default: GET, then an empty-JSON POST if GET answers 404/405. | |
| max_usd | No | Optional: your max price per call in USD; verdict is block above it. Default 1. |