route402.dev / wallet

Tools

The six MCP tools, what each returns, and which one spends.

The surface is deliberately small. Every tool an agent can call is a tool that can be prompt-injected into calling, so only one of them moves money.

ToolPurposeSpends
search_servicesCapability search across every configured registry, ranked and explainedNo
describe_serviceSchemas, payment options, trust signals, and a policy preview for one serviceNo
estimate_costWhat one call would cost, and whether policy would allow itNo
call_serviceDiscover, pay, call — returns the result plus a payment summaryYes
get_balanceOn-chain balance and remaining budget under every limitNo
list_transactionsSpend history with receipts and the rule that decided each oneNo

What call_service returns

The upstream result, plus a payment summary: amount, asset, USD value, transaction hash, explorer link, receipt id, and the budget left. A refused call returns the rule that refused it and what to do about it — refusals are answers, not errors.

{
  "status": "ok",
  "result": {
    "city": "Berlin",
    "temperature": 17.4
  },
  "payment": {
    "paid": true,
    "usd_value": 0.001,
    "asset_symbol": "USD₮0",
    "network": "eip155:14",
    "tx_hash": "0x…",
    "receipt_id": "rcpt_…"
  },
  "budget": {
    "remaining_usd": {
      "today": 9.94,
      "session": 4.9,
      "lifetime": 99.9
    }
  }
}