Skip to main content
Glama

Beggar Bot

uniswap_v2_swap_tx

Build an unsigned Uniswap v2 Router02 swap tx (ETH/token in or out) with slippage min-out and an approval check, gas-estimated. 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_v2_swap_tx"
  }
}

Input Schema

NameRequiredDescriptionDefault
fromNofrom
chainNochain
amountNoamount
token_inNotoken_in
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 supplied, the description carries the burden and does well: it discloses that output is unsigned (no broadcast), that slippage min-out protection is applied, that an approval check occurs, that the tx is gas-estimated, and that the call is metered at $0.02 USDC via x402. Remaining gaps are who pays/how auth is presented and what happens on unsupported chains.

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?

Two dense sentences with no filler, front-loaded on what is built before the payment note. The single-sentence core is packed with parentheticals and could be split for readability, but every clause carries information.

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 builder tool with no output schema, no annotations, and six optional parameters whose schema text is uninformative, the description covers the essentials: unsigned output, slippage handling, approval check, gas estimation, and cost. It would be stronger if it clarified whether the approval transaction is returned separately and what the caller must supply for chain selection.

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 property descriptions merely restate the names ('from':'from'), so the baseline of 3 applies. The description adds some meaning — slippage_bps maps to min-out protection and token_in/token_out may be native ETH — but says nothing about amount units, chains, or defaults for the six optional parameters.

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+resource: 'Build an unsigned Uniswap v2 Router02 swap tx' with ETH/token in-or-out, which distinguishes it from the v3/v4 and quote/lp siblings by version specificity. It stops short of explicitly naming which sibling to prefer, but the version-qualified resource is unambiguous.

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 'v2 Router02' qualifier; there is no explicit statement of when to pick this over uniswap_v3_swap_tx or swap_best_quote, and no prerequisites are given. The mention of an approval check hints at a workflow but does not route the agent.

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.