MCP tool: history
purpose
Signed daily aggregates for one host, newest first. Payees appear only as keyed hashes. Free. Required: host. Optional: days (default 30, max 90), as_of (UTC calendar day YYYY-MM-DD).
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": "history",
"arguments": {
"host": "api.agentweather.io",
"days": 3
}
}
}
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 HTTP GET /v1/history?host=api.agentweather.io&days=3 (MCP history returned the same kind of signed daily series, wrapped). fetched: live production, 24 Nov 2026 (counts redacted) trimmed: true
{
"service": "BotsRated",
"host": "api.agentweather.io",
"days_requested": 3,
"days_returned": 3,
"order": "newest first",
"about": "Public history of what BotsRated recorded. x402 daily aggregates are signed ed25519 by key botsrated-prober-1 over the stored canonical JSON without sig. This public view withholds clear payee addresses and shows keyed HMAC-SHA256 hashes instead, so the stored signature will not verify on the redacted JSON. receipt_ids list every receipt of that day; receipts_sha256 is sha256 of those lines joined with \\n. Raw NDJSON parts are not published (they include payee addresses). The signed manifest for the day is at /archive/receipts/<day>/manifest.json. MCP as-of rows are checks we still have for that UTC day; if a day has no stored check we say so. Official MCP Registry snapshots, when they exist for the date, are listed separately and were not backfilled before snapshots started.",
"daily_0": {
"kind": "daily_aggregate",
"schema": "botsrated-daily-1",
"rollup_version": "0.3",
"host": "api.agentweather.io",
"day": "2026-11-23",
"probes": "…",
"primary_route_probes": "…",
"extra_route_probes": 0,
"valid_402": 35,
"reachable": 35,
"free_200": 0,
"primary_valid_402": 35,
"status_counts": {
"402": 35
},
"error_counts": {},
"latency_ms_primary": {
"n": "…",
"p50": "…",
"p90": "…",
"max": "…"
},
"quoted_amounts_atomic": {
"10000": 35
},
"assets_seen": [
"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913"
],
"networks_seen": [
"eip155:8453"
]
}
}
errors
| code | when | fix |
|---|---|---|
| missing_host (HTTP live 400) | No ?host=. | Pass host. Hint also shows as_of=YYYY-MM-DD. |
| no day / empty (live 200) | as_of for a day with no stored check (live 2020-01-01 and 2026-10-01). | Body is 200 with check_recorded: false, gap: "no check recorded", daily: []. Not an error. Source: GET /v1/history?host=api.agentweather.io&as_of=2020-01-01 at 3:01 PM CT 24 Nov 2026. |