Skip to main content
Glama

Beggar Bot

curve_swap_tx

Build an unsigned direct Curve pool exchange tx with live on-chain get_dy quote, min-out, approval check (int128 or uint256 pools). 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": "curve_swap_tx"
  }
}

Input Schema

NameRequiredDescriptionDefault
fromNofrom
poolNopool
chainNochain
amountNoamount
token_inNotoken_in
token_outNotoken_out
slippage_bpsNoslippage_bps

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/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, that pricing comes from a live on-chain get_dy call, that min-out protection is applied, that an approval check runs, and that int128 and uint256 pool variants are handled. It also discloses the paid model ($0.02 USDC via x402), which is critical pre-invocation context. It stops short of explaining x402 payment mechanics or whether failures are charged.

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?

A single front-loaded sentence packed with decision-relevant facts, followed by the cost disclosure. No filler, no restatement of the tool name.

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 7-parameter builder with no required fields and no output schema, the description covers the important mechanics: quoting, min-out, approval, pool integer type, and payment. It does not state which parameters are actually needed to produce a valid tx or what the response contains beyond 'unsigned tx', which is the main residual gap.

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 coverage is nominally 100%, but the schema descriptions are pure name echoes ('from': 'from'), so they add no meaning. The tool description compensates by linking slippage to the generated min-out and by noting the int128/uint256 pool distinction, which affects how token_in/token_out are encoded. It does not explain the 'from' (sender) or 'chain' parameters.

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+resource: 'Build an unsigned direct Curve pool exchange tx.' The mention of Curve pool exchange and the live get_dy quote distinguishes it from the other swap builders (balancer_swap_tx, uniswap_v*_swap_tx) without needing to name them.

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 the protocol name — an agent can infer this is for swaps routed through a Curve pool — but there is no explicit when-to-use guidance, no exclusions, and no pointer to swap_best_quote or the Uniswap/Balancer builders as alternatives.

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.