Skip to main content
Glama

x402 Router

How to call the paid live-checked route

get_paid_route_requirements
Read-onlyIdempotent

x402 v2 payment requirements and copy-paste client code for POST https://router-production-ab89.up.railway.app/route/paid (0.01 USDC on Base; Solana accepted): a best endpoint re-checked live seconds before answering, up to 4 fallbacks and the full ranked list (up to 25). Includes the free trial (3 calls/day with header X-402-Trial: ). The same answer is sold inside MCP by the route_paid tool. This tool never pays; your x402 client does.

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": "get_paid_route_requirements"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the annotations (readOnly, idempotent, non-destructive), it discloses pricing (0.01 USDC on Base; Solana accepted), a free trial (3 calls/day with X-402-Trial header), live re-checking with up to 4 fallbacks and a ranked list, and that payment is not performed. These are material behavioral details an agent needs before calling.

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?

The definition is front-loaded and dense: endpoint, price, trial, behavior, and alternative are all stated without filler. The first sentence is a long run-on with nested parentheses, so readability could be improved, but every clause carries operational detail.

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

Completeness4/5

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

No output schema exists, so the description must characterize the return. It states that the tool returns payment requirements and copy-paste client code, and it explains the paid route answer (best endpoint, up to 4 fallbacks, ranked list). It stops short of describing the exact response shape, which is a minor gap.

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

Parameters4/5

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

The tool has zero input parameters, so the baseline is 4. The description does not need to document parameters; it mentions the X-402-Trial header for external use, but that is not an input parameter.

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

Purpose5/5

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

The description states a specific resource and scope: x402 v2 payment requirements and copy-paste client code for POST https://router-production-ab89.up.railway.app/route/paid. It also distinguishes this tool from route_paid, which sells the same answer inside MCP, so an agent can identify the tool without opening the schema.

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

Usage Guidelines5/5

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

It explicitly routes usage: this tool provides requirements for an external x402 client, while route_paid is the in-MCP alternative for the same answer. It also clarifies that this tool never pays, drawing the boundary between obtaining requirements and executing payment.

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.