BotsRated

Help › How-tos

MCP tool: best

purpose

Three covered providers for a task, ordered by valid-402 rate, price, or latency, with the numbers behind the order. Paid $0.01 USDC on Base via x402. No free quota. Required: task. Optional: sort (reliability|price|latency, default reliability), max_price (USD), type (all|x402|mcp, default all). 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": "best",
    "arguments": {
    "task": "weather"
}
  }
}

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. 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/best",
    "description": "BotsRated task match sort: up to 3 covered providers for a task with the numbers behind the order. $0.01 USDC. Charged only when the tool returns an answer. Terms: https://botsrated.com/terms"
  },
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "amount": "10000",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "payTo": "0x7F936f42F46B6c4Cbd3242cF8A1759dfe829E349"
    }
  ]
}

errors

codewhenfix
Payment required (live)best has no free quota on HTTP or MCP. amount 10000 USDC ($0.01).Use sample route=best for a free shape, or use free find (uses 1 check) for a shorter list, or pay $0.01 only if the user confirmed.

notes