Skip to main content
Glama

Beggar Bot

uniswap_v3_swap_tx

Build an unsigned Uniswap v3 SwapRouter02 exactInputSingle swap on the best fee tier, with approval check and slippage min-out. 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_v3_swap_tx"
  }
}

Input Schema

NameRequiredDescriptionDefault
fromNofrom
chainNochain
amountNoamount
token_inNotoken_in
recipientNorecipient
token_outNotoken_out
slippage_bpsNoslippage_bps

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/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: it discloses that the output is unsigned, that an approval check is performed, that slippage is enforced via a min-out, and that the call is paid ($0.02 USDC via x402). It stops short of stating what happens on missing route/insufficient approval or what the returned payload contains.

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 tightly packed sentences, zero filler, and the critical qualifiers (unsigned, exactInputSingle, best fee tier, approval check, slippage min-out, paid) are front-loaded. The x402 payment note is appended where it belongs.

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-parameter swap builder with no output schema and no annotations, the definition covers the core behavior but leaves the agent guessing about required inputs, chain/amount formatting, and the shape of the returned unsigned transaction. It is adequate to recognize the tool, not fully adequate to call it correctly on the first try.

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 100%, so the baseline is 3, but the schema 'descriptions' merely echo the parameter names, so the description's mention of 'best fee tier' and 'slippage min-out' is the only real semantic hint (slippage_bps is a tolerance in basis points). Nothing explains from vs recipient, chain values, or amount units/decimals.

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 names a specific verb and artifact: build an unsigned Uniswap v3 SwapRouter02 exactInputSingle swap, plus routing (best fee tier), an approval check, and a slippage min-out. That is far more precise than a generic 'swap' tool, but it does not explicitly distinguish itself from uniswap_v2_swap_tx / uniswap_v4_swap_tx / uniswap_swap_build or from the quote siblings.

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 only implied through the verb 'Build' and the v3-specific naming, so an agent can infer this is the transaction-construction step rather than a quote. There is no explicit when-to-use/when-not guidance, no instruction to obtain a quote first, and no statement about which chains or token pairs qualify.

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.