Skip to main content
Glama

Beggar Bot

dex_quote

On-chain DEX swap quote: Uniswap v3 QuoterV2 exact-input across 0.01/0.05/0.3/1% fee tiers -> best amount out, price, gas estimate. Symbols (USDC, WETH, cbBTC, AERO, USDT, DAI) or any ERC-20 address. Paid: $0.02 USDC via x402.

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

Input Schema

NameRequiredDescriptionDefault
chainNobase (default)
amountNodecimal amount in (default 1)
token_inNosymbol or 0x
token_outNosymbol or 0x

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well on the hard parts: it discloses the protocol and quoter contract, that quoting is exact-input only, that it sweeps 0.01/0.05/0.3/1% tiers and returns the best, and critically that the call is paid ($0.02 USDC via x402) — a cost the agent must budget for. It leaves unstated whether the quote is read-only/simulated, what happens on illiquid pairs or missing pools, and any rate limits.

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 dense fragments, front-loaded with what the tool is, then the mechanism, then accepted inputs, then cost. Every clause carries information; nothing is padding.

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?

There is no output schema, so the description must describe return values — it does (best amount out, price, gas estimate). It also covers inputs and the payment cost. The remaining ambiguity is chain scope: the schema says 'base (default)' yet Uniswap v3 spans many chains, and the description never states which networks are actually supported.

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 description coverage is 100%, so a 3 is the floor, and the description adds real meaning on top: it enumerates concrete accepted symbols (USDC, WETH, cbBTC, AERO, USDT, DAI) and confirms any ERC-20 address is also valid, which the terse 'symbol or 0x' schema entries do not convey. It does not clarify the amount's units precision or whether token_in/token_out default when omitted.

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?

States a specific verb and resource ('on-chain DEX swap quote') plus the exact mechanism: Uniswap v3 QuoterV2, exact-input, best-of-four fee tiers, returning amount out, price and gas. That is far more precise than a bare name restatement. It stops short of explicitly naming a sibling (e.g. uniswap_v3_quote, swap_best_quote) as the alternative, so differentiation is inferred rather than stated.

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?

Usage is implied by 'exact-input', which tells the agent this tool does not serve exact-output quotes, and by the fee-tier sweep that implies best-price discovery. There is no explicit when-to-use versus when-not, no mention of when a single-pool uniswap_v3_quote would be preferable, and no prerequisites beyond the payment note.

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.