MCP tool: preflight
purpose
Latest unpaid probe for one x402 seller or remote MCP host: covered or not, valid 402, quoted vs listed price and payTo, MCP handshake and tools hash, freshness, receipt link. Not charged. Cap in tools/list: 1,000 per client IP per UTC day (OpenAPI also lists 25,000 per key, then 429 preflight_cap). Required: url.
call
Protocol: MCP Streamable HTTP. POST https://botsrated.com/mcp Headers: Content-Type: application/json Accept: application/json, text/event-stream No auth. GET /mcp returns 405 (live). Start with tools/list if needed.
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "preflight",
"arguments": {
"url": "api.agentweather.io"
}
}
}
The tool result is usually result.content[0].text (a JSON string) plus result.structuredContent. Paid tools that are unpaid return HTTP 200 with a PaymentRequired payload inside the tool result (not a JSON-RPC error). result.isError is true for tool-level errors such as missing fields or invalid_handle.
sample_response
source: live prod MCP tools/call plus the same host on HTTP GET /v1/preflight (bodies agree on host, receipt id 5b4ef51f8503b18845b6, valid_402). HTTP body trimmed below (MCP wraps the same facts). fetched: live production, 24 Nov 2026 (counts redacted) trimmed: true
{
"service": "BotsRated",
"host": "api.agentweather.io",
"found": true,
"valid_402": true,
"freshness": {
"last_probe_at": "2026-11-24T20:08:52Z",
"age_seconds": 2321,
"stale": false,
"stale_after_seconds": 86400,
"probe_schedule": "automatic unpaid probe usually about every 40 minutes (busy, recently changed and paid-alert-plan services: every few minutes; services with no payment request for 7 days: about once a day)",
"served_at": "2026-11-24T20:47:32.530Z"
},
"listing": {
"price_usd": null,
"amount_atomic": null,
"asset": null,
"network": null,
"payTo": null,
"source": null,
"listed_in": [
"cdp-bazaar",
"agentic-market",
"x402-list",
"402index-bazaar"
],
"other_routes_listed": 0,
"terms_shown": false,
"note": "We don't have a listed price we can show for this service's main route, so we only show what it asked for."
},
"terms_consistent": false,
"latest_probe": {
"kind": "unpaid_probe",
"ts": "2026-11-24T20:08:52Z",
"host": "api.agentweather.io",
"url": "https://api.agentweather.io/v1/models/report",
"status": 402,
"latency_ms": 103,
"valid_402": true,
"live_amount": "10000",
"live_payTo": "<payTo>",
"live_asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"live_network": "eip155:8453",
"id": "5b4ef51f8503b18845b6",
"receipt_url": "https://botsrated.com/receipt/5b4ef51f8503b18845b6?host=api.agentweather.io&day=2026-11-24",
"payment": "none (unpaid probe; no payment header was sent)",
"sig": {
"alg": "ed25519",
"key_id": "botsrated-prober-1",
"sig_b64": "j8E2WJ8Rhq+lbHaCt0Fc3jVQ…[trimmed]"
}
}
}
errors
| code | when | fix |
|---|---|---|
| 429 preflight_cap (HTTP) | More than 1,000 preflights from this IP in the UTC day (or 25,000 per brk_ preflight key). | Wait until midnight UTC. A free brf_ key does not raise the preflight cap. |
| 503 facilitator_unavailable / temporarily_unavailable | Listed in OpenAPI for some routes; not observed here. | Retry after the Retry-After header (5s / 20s). |
| missing_url (tool error) | url was not passed. | Pass url (a hostname or full URL). HTTP GET /v1/preflight without ?url= returns 400 missing_url. |
notes
- OpenAPI cap text: 1000/IP/UTC day, 25000/key/UTC day, then 429. tools/list mentions only the 1000/IP cap.
notes
Prefer this before check. Not billed. The HTTP 400 missing_url body is in how-to/api-v1-preflight.md.