Skip to main content
Glama

x420_chain_dex-quote

Read-onlyIdempotent

Base DEX quote to USDC: How much USDC a given amount of a Base token would swap for on Uniswap v3 right now: QuoterV2 eth_call across the 0.05%, 0.3% and 1% pools (or the one fee tier you name), best tier returned with all tiers shown. Direct pools only. Nothing is traded. Source: Uniswap v3 QuoterV2 on Base. Not professional, legal, insurance, engineering, medical, financial or tax advice. Price: $0.005 USDC per call (x402 on Base). This hosted tool does NOT pay and does NOT return the deliverable: it validates the input and returns payment instructions (pay_to, network, price and the x402 URL to pay at). GET the url; read PAYMENT-REQUIRED from the 402; retry with PAYMENT-SIGNATURE (x402 v2). Or run the local x420-mcp server with your own wallet key to pay automatically. Deliverable once paid: JSON: best{fee, amount_out_usdc, price_usdc_per_token}, quotes[] per tier.

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": {
      "amount": "<amount>"
    },
    "name": "x420_chain_dex-quote"
  }
}

Input Schema

NameRequiredDescriptionDefault
feeNosingle fee tier 100, 500, 3000 or 10000 (default: try 500, 3000, 10000)
tokenNoERC-20 address on Base to sell (default WETH 0x4200000000000000000000000000000000000006)
amountYesamount in token units, e.g. 1.5

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the readOnly/idempotent/non-destructive/openWorld annotations, the description discloses the payment model ($0.005 USDC per call via x402 on Base), the critical caveat that the hosted tool returns payment instructions rather than the deliverable, the exact retry handshake, and the paid response shape. 'Nothing is traded' is consistent with readOnlyHint.

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 core purpose and the crucial 'does NOT return the deliverable' disclosure are front-loaded, and the payment mechanics earn their space given the tool's unusual behavior. The colon-chained run-on sentences and duplicated fee-tier/price restatements make it denser than ideal.

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?

With no output schema, the description compensates by describing the deliverable JSON (best{fee, amount_out_usdc, price_usdc_per_token} plus per-tier quotes[]), and it covers input defaults, pool scope, cost, and the payment protocol. An agent has everything needed to call it and interpret the unpaid response.

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 fee tiers, token default (WETH) and amount units are already documented in structured fields. The description only echoes the tier behavior ('or the one fee tier you name') without adding format or validation detail beyond the schema, so baseline 3 applies.

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 names a specific verb and resource pair — 'Base DEX quote to USDC' for 'a given amount of a Base token' on Uniswap v3 via QuoterV2 — and even specifies the fee-tier space it searches. An agent can tell this is a spot price quote for a token/USDC pair, not a balance, tx, or metadata lookup like the sibling tools.

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?

'right now' and 'Direct pools only' set the scope, and the description explicitly lays out the two invocation modes: hosted x402 payment flow (GET url, read PAYMENT-REQUIRED, retry with PAYMENT-SIGNATURE) or the local x420-mcp server with a wallet key. It does not name an alternative sibling (e.g. x420_quote) or state when-not to use it, which keeps it below a 5.

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.

Resources