Skip to main content
Glama

Beggar Bot

uniswap_v4_swap_tx

Build an unsigned Uniswap v4 swap tx (UniversalRouter V4_SWAP: exact-in single, settle/take all) with slippage min-out, ERC20+Permit2 approval checks, 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_v4_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.8/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 tx is unsigned (caller signs/broadcasts), that ERC20+Permit2 approvals are checked, that gas is estimated, that min-out is derived from slippage, and that the call is paid ($0.02 USDC via x402). It stops short of saying whether approval transactions are returned for the agent to submit or merely flagged, and says nothing about return payload or 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.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One front-loaded sentence with no filler; each clause adds information (unsigned, router path, slippage, approvals, gas, price). The dense jargon ("settle/take all") is efficient for a technical audience but slightly reduces first-pass readability.

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 6-parameter build tool with no output schema and no annotations, the description covers the operation's semantics and payment cost but omits which parameters are actually required (the schema marks all six optional, which the description never addresses) and what the returned object contains (unsigned tx fields, gas estimate, approval info).

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 every property description is a tautological restatement of the key name ("from": "from"), so the description must compensate and only partially does. It clarifies that amount is the exact-in amount and slippage_bps is a min-out basis-point bound, but leaves from (sender? recipient?), chain format, and whether tokens are addresses or symbols unexplained.

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?

States a specific verb and resource ("Build an unsigned Uniswap v4 swap tx") and narrows it further to the UniversalRouter V4_SWAP path with exact-in single-hop and settle/take-all semantics. That version and action specificity lets an agent distinguish it from the v2/v3 swap siblings and generic swap builders without opening the schema.

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: the "exact-in single" phrasing excludes exact-out or multi-hop use cases, but the description never says when to prefer this over uniswap_v3_swap_tx, uniswap_swap_build, or the aggregator builders, nor whether a quote should be fetched first. No prerequisites or exclusions are stated explicitly.

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.