Skip to main content
Glama

x402 Router

Live-checked best x402 API for a task (paid, 0.01 USDC)

route_paid

Paid (0.01 USDC via x402, Base; Solana accepted): the same answer as POST https://router-production-ab89.up.railway.app/route/paid. The best endpoint is re-checked live seconds before answering, with up to 4 fallbacks, the full ranked list (up to 25) with reliability_pct, and paying wallets get their last good endpoint tried first. Pay inside the call: without payment this returns isError with the x402 PaymentRequired object; retry with the signed PaymentPayload in params._meta["x402/payment"] (x402 MCP transport, e.g. @x402/mcp). The receipt is in result._meta["x402/payment-response"].

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "route_paid"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNoFree-text task or keyword, e.g. 'weather', 'image generation', 'token price'
agentNoOptional caller label
chainNoChain filter: Base, Solana, or a CAIP-2 id like eip155:8453
categoryNoCategory filter, e.g. AI, Data, Finance, Search
max_priceNoMaximum price per call in USDC, e.g. 0.05

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond the annotations (readOnlyHint=false, openWorldHint=true, idempotentHint=false), it discloses cost and chain (0.01 USDC via x402, Base, Solana accepted), the live re-verification timing, up to 4 fallbacks, a ranked list of up to 25 with reliability_pct, and paying-wallet affinity favouring the last good endpoint. It also specifies the failure contract (isError with the x402 PaymentRequired object), the exact retry path (signed PaymentPayload in params._meta["x402/payment"]) and the receipt location — exactly the behavioral context an agent needs for a paid call.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is a single dense paragraph, but the most decision-relevant facts (paid, price, live re-check, payment error+retry) come first and little is padding. The 'same answer as POST <URL>' framing is slightly indirect and there is no sentence-level signposting, but no sentence is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a paid, open-world lookup with no output schema, the description covers what the agent must know: price and chain, the payment-required error path, the retry payload location, the receipt location and the shape of the answer (ranked list with reliability_pct plus fallbacks). The remaining gaps (e.g. whether a paid retry re-charges) are minor relative to this coverage.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so every parameter (q, agent, chain, category, max_price) is already documented with examples in the schema, and the description adds no further per-parameter meaning such as filtering precedence or how max_price interacts with the ranked list. Baseline 3 applies when the schema does the work.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb+resource — returns the best x402 API endpoint for a free-text task, re-checked live seconds before answering — and states it is the paid equivalent of POST /route/paid at 0.01 USDC. It is clear what the tool produces (best endpoint, up to 4 fallbacks, ranked list up to 25 with reliability_pct), but it never explicitly distinguishes itself from the free-looking siblings route_x402_request or compare_x402_endpoints.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied rather than stated: the agent learns it is the paid variant and that it should pay inside the call, plus how to retry after a PaymentRequired error. There is no explicit 'use this instead of X when Y' guidance, and no when-not condition (e.g. when a cached or free route lookup suffices).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.