Skip to main content
Glama

Beggar Bot

uniswap_swap_build

Quote all Uniswap v3 fee tiers via QuoterV2 and build an unsigned SwapRouter02 exactInputSingle tx with slippage min-out, allowance (approval tx) and balance checks. 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": "uniswap_swap_build"
  }
}

Input Schema

NameRequiredDescriptionDefault
feeNooptional tier
fromNo0x...
chainNobase
amountNo100
token_inNoUSDC|WETH|0x...
token_outNoUSDC|WETH|0x...
slippage_bpsNo50

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description does real work: it discloses that output is unsigned, that slippage min-out is applied, that an approval tx is generated, that balance checks occur, and that a $0.02 USDC x402 payment is required. It still leaves open what happens when the balance check fails (error vs. warning) and which chains beyond the 'base' example are supported.

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?

Two dense sentences, front-loaded with the operation and followed by the payment terms. Every clause carries information an agent needs, with no filler.

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 7-parameter, zero-required, no-output-schema tool the description covers the pipeline well, but it omits the return shape (calldata/to/value/approval fields), which matters because no output schema exists, and it does not clarify which parameters are effectively mandatory despite none being required.

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 coverage is nominally 100%, but the per-parameter text is minimal ('optional tier', '0x...', 'base', '50'). The description adds meaning by tying fee to v3 tier quoting and slippage_bps to min-out calculation, but says nothing about amount units/decimals, token symbol resolution, or whether omitted fee means all tiers are quoted.

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?

Names concrete verbs and resources: quotes all Uniswap v3 fee tiers via QuoterV2 and builds an unsigned SwapRouter02 exactInputSingle transaction. The named contracts (QuoterV2, SwapRouter02, exactInputSingle) pin it to v3 specifically, which separates it from the v2/v4 siblings, though it never explicitly says so.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not guidance. Siblings like uniswap_v3_swap_tx, uniswap_v3_quote and swap_best_quote clearly overlap, and the description gives no rule for choosing between building a v3 tx here versus using the quote-only or best-quote tools.

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.