Skip to main content
Glama

Cross-chain x402 quote

x402_cross_chain_quote
Read-onlyIdempotent

Dry-run plan for paying any x402 endpoint from the other chain: fetch the 402, read the wallet's balances on Base and Robinhood Chain, and quote the Relay bridge for only the shortfall. Read-only — no key, no signature, nothing moves. Works for the USD stablecoins (USDG on Robinhood Chain, USDC on Base); a POLYDASH-only endpoint cannot cross-chain.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "url": "<url>",
      "from": "<from>"
    },
    "name": "x402_cross_chain_quote"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesThe x402 URL to pay — it must return a 402 payment challenge.
fromYesThe wallet address that will sign (0x...). Never a private key. Omit it when a walletToken is passed — the wallet is resolved from the token instead.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint, destructiveHint=false, idempotentHint, openWorldHint), the description discloses what the tool actually does under the hood: it performs an HTTP 402 challenge fetch, reads balances on two specific chains, and quotes the Relay bridge only for the shortfall. It also states the no-key/no-signature/no-funds-movement guarantee and the token eligibility rules, which are behavior an agent cannot get from structured fields alone.

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?

Three sentences, front-loaded with the core function, followed by behavior, safety guarantee, and eligibility constraints. Every clause carries information; the token/chain list is not padding because it gates whether the call makes sense at all.

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?

For a two-parameter read-only tool with no output schema, the description covers what the tool computes, its safety profile, and its eligibility boundary. The only shortfall is that it does not characterize the quote result an agent should expect back, though 'quote the Relay bridge for only the shortfall' gives enough shape to be actionable.

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 the schema already documents both url and from, including the walletToken resolution note. The description adds only that the URL must return a 402 challenge, which is already in the schema, and does not clarify how 'from' determines the direction or what the quote response contains.

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 gives a specific verb and resource — a dry-run quote for paying any x402 endpoint from the other chain — and spells out the internal steps (fetch 402, read balances on Base and Robinhood Chain, quote the Relay bridge for the shortfall). It implicitly separates itself from an executing sibling via 'Dry-run' and 'nothing moves', but it never names that counterpart, so the distinction requires a small inference.

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?

Usage conditions are stated concretely: it is a pre-payment planning step, it only covers USD stablecoins (USDG on Robinhood Chain, USDC on Base), and POLYDASH-only endpoints cannot be used cross-chain. The main gap is that it never explicitly says 'use x402_cross_chain_pay to actually execute after quoting', leaving the handoff to inference.

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.