BotsRated

Help › How-tos

MCP tool: report

purpose

Full receipt history for one host. Paid $0.01 USDC on Base via x402. tools/list notes that HTTP GET /v1/report/{host} has at least 3 free reports per day, but the MCP tool is paid from the first call (by design). Charged only when an answer is returned. Required: host.

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": "report",
    "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 MCP call: PaymentRequired in the tool result (HTTP 200). Do not pay it. fetched: live production, 24 Nov 2026 (counts redacted) trimmed: true

{
  "error": "Payment required to access this tool",
  "resource": {
    "url": "mcp://tool/report",
    "description": "BotsRated Report: measurement history for one host (up to 1000 probes on this route). $0.01 USDC. Charged only when the tool returns an answer. The same data over HTTP: https://botsrated.com/v1/report/api.agentweather.io (at least 3 free reports per day (until the overall daily free limit of 15,000 is reached)). Terms: https://botsrated.com/terms"
  },
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "amount": "10000",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "payTo": "0x7F936f42F46B6c4Cbd3242cF8A1759dfe829E349"
    }
  ]
}

errors

codewhenfix
Payment required (live MCP)MCP report has no free quota. Live accepts amount is 10000 atomic USDC ($0.01).Use HTTP GET /v1/report/{host} if the daily free HTTP reports remain, or call sample with route=report, or pay $0.01 only if the user confirmed.

notes

notes

MCP unpaid accepts (trimmed):

{
  "error": "Payment required to access this tool",
  "resource": {
    "url": "mcp://tool/report",
    "description": "BotsRated Report: measurement history for one host (up to 1000 probes on this route). $0.01 USDC. Charged only when the tool returns an answer. The same data over HTTP: https://botsrated.com/v1/report/api.agentweather.io (at least 3 free reports per day (until the overall daily free limit of 15,000 is reached)). Terms: https://botsrated.com/terms"
  },
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "amount": "10000",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "payTo": "0x7F936f42F46B6c4Cbd3242cF8A1759dfe829E349"
    }
  ]
}