Skip to main content
Glama

x402 Router

Compare x402 endpoints head-to-head

compare_x402_endpoints
Read-onlyIdempotent

Compare 2-5 x402 endpoints side by side (pass urls), or the top 5 matches for a task (pass q/category/chain/max_price): price, latency, reliability over the last crawl probes, valid 402, networks and payTo, with a winner plus the cheapest, fastest and most reliable. Free.

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

Input Schema

NameRequiredDescriptionDefault
qNoFree-text task or keyword, e.g. 'weather', 'image generation', 'token price'
urlsNo2-5 endpoint urls to compare
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.4/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive, and closed-world behavior. The description adds useful context beyond that: it says results are based on 'the last crawl probes,' lists the compared metrics, and notes the tool is free. It does not cover authentication or rate limits, but those are less central for a read-only comparison tool.

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

Conciseness5/5

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

The description is a single dense sentence with the core action and both usage modes front-loaded. Every clause carries useful information, including the compared metrics and winner summary, with no filler.

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?

With no output schema, the description does the work of explaining what comes back: price, latency, reliability, valid 402, networks, payTo, and winner plus cheapest/fastest/most reliable. It is complete enough for a moderate-complexity comparison tool, though it could say more about the exact response shape or edge cases.

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?

Schema coverage is 100%, so the schema already documents each parameter. The description adds meaning by grouping parameters into two modes: urls for direct comparison, and q/category/chain/max_price for top-5 task matching. That mode distinction is valuable beyond the raw schema.

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 verb and resource: 'Compare 2-5 x402 endpoints side by side.' It also distinguishes two comparison modes, URL-based head-to-head and task-based top-5 matching, so an agent can tell this apart from a plain search tool.

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

Usage Guidelines4/5

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

It clearly explains when to pass urls versus when to pass q/category/chain/max_price. It does not name sibling alternatives or explicitly state when not to use this tool, but the two usage paths are explicit enough for correct selection.

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.