Skip to main content
Glama

Which x402 facilitator and rail

get_facilitator_route

[Which rail: x402 facilitator pick] Choose which rail and which x402 facilitator for one payment of this size. One recommendation: facilitator, chain, and why, chosen by amount and chain. Fee, settle time, and a live up/down/unknown flag are supporting fields from each facilitator public /supported endpoint (short timeout, cached a few minutes, fail-soft as unknown). ?chain=base&amount=1. $0.005 USDC. Paid: $0.005 USDC on Base, paid in-band via x402 MCP (@x402/mcp; _meta "x402/payment"). Also at GET https://micro-saas-agent.onrender.com/api/rails/route.

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_facilitator_route"
  }
}

Input Schema

NameRequiredDescriptionDefault
passNoOptional GW8 day pass token (from buy_day_pass / POST /api/pass/day); skips per-call payment
chainNo
amountNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.5/5.0
Behavior4/5

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

With no annotations, the description usefully discloses that the call is paid ($0.005 USDC on Base via x402), uses facilitator public /supported endpoints, has a short timeout, caches for a few minutes, and fails soft to unknown. It also outlines the recommendation fields, though it does not describe error behavior or exact response shape.

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

Conciseness3/5

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

The core purpose is front-loaded, but the description is fragmented: the bracketed prefix, stray '?chain=base&amount=1' fragment, and repeated '$0.005 USDC' wording reduce efficiency. It remains understandable but should be tightened.

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

Completeness3/5

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

For a paid endpoint with no output schema and sparse parameter descriptions, it provides important operational context: payment method, cost, data source, caching, and fail-soft behavior. However, optionality/defaults for chain and amount remain unclear, and the response shape is not fully specified.

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 only 33%, and the description adds some meaning for chain and amount via 'chosen by amount and chain' and the example '?chain=base&amount=1'. It does not clarify amount units, optionality/defaults for chain and amount, or mention the pass parameter beyond what the schema already provides.

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 states a specific action: choose/recommend a rail and x402 facilitator for one payment, returning facilitator, chain, and reason based on amount and chain. It does not clearly distinguish itself from related sibling payment-rail tools, so it stops short of a 5.

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?

It implies use for routing a single payment 'of this size' and says selection uses amount and chain, but it gives no explicit when-not conditions or named alternatives. The usage context is adequate but not fully explicit.

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.