MCP tool: check
purpose
Measured facts for one host: valid-402 rate, latency, price and payTo vs listing, test-buys, last receipts; MCP hosts add handshake and tools history. Paid $0.01 USDC on Base via x402 after the shared free quota (5 per client per UTC day, 25 with a free API key), shared with GET /v1/check and find. Required: host. Charged only when an answer is returned.
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": "check",
"arguments": {
"host": "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 unpaid call: HTTP 200 JSON-RPC, tool result is x402 PaymentRequired (this IP was past the free cap). charged not settled. Do not pay this 402. fetched: live production, 24 Nov 2026 (counts redacted) trimmed: true
{
"x402Version": 2,
"error": "Payment required to access this tool",
"resource": {
"url": "mcp://tool/check",
"description": "BotsRated Check: measured facts, freshness and last 5 receipts for one host. $0.01 USDC. Charged only when the tool returns an answer. Free daily quota: the first 5 checks per client per UTC day (25 with a free email-verified API key: POST /v1/keys/free) are shared by this tool and HTTP GET /v1/check. This call is past that cap. Terms: https://botsrated.com/terms"
},
"accepts": [
{
"scheme": "exact",
"network": "eip155:8453",
"amount": "10000",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"payTo": "0x7F936f42F46B6c4Cbd3242cF8A1759dfe829E349"
}
]
}
errors
| code | when | fix |
|---|---|---|
| Payment required (live) | Past the shared free check quota. Tool result contains x402Version 2, accepts exact USDC amount 10000 on eip155:8453, payTo 0x7F936f42F46B6c4Cbd3242cF8A1759dfe829E349. Resource url: mcp://tool/check. The description gives 5 free checks per client per UTC day, 25 with a free email-verified key. | Wait until midnight UTC, get a free key, use prepaid credits, or pay $0.01 USDC only if the user confirmed. To see a paid-shaped body without paying, call sample. |
| free quota still available | First 5 anonymous (or 25 with brf_) checks in the UTC day. | The tool should return the measured body and may show charged:false. Not observed on this IP at sample time. |
notes
- A 2xx paid body was not fetched (would require payment). Use /v1/sample/check as the shape of a paid answer.
notes
See also how-to/api-v1-check.md for the HTTP 402 (same payTo and amount).