Skip to main content
Glama

Beggar Bot

balancer_swap_tx

Build an unsigned Balancer v2 Vault single swap tx (auto-picks the deepest pool holding both tokens or takes pool_id), quoted on-chain with queryBatchSwap, slippage min-out, approval check, gas-estima 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": "balancer_swap_tx"
  }
}

Input Schema

NameRequiredDescriptionDefault
fromNofrom
chainNochain
amountNoamount
pool_idNopool_id
token_inNotoken_in
token_outNotoken_out

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/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 substantial work: it discloses the tx is unsigned, quoting happens on-chain via queryBatchSwap, slippage protection is via min-out, an approval check runs, gas is estimated, and the call costs $0.02 USDC via x402. Missing only details like whether the payer is the caller and 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?

A single dense sentence that front-loads the verb and resource, then layers pool selection, quoting, slippage, approval, gas, and payment in a logical order. The truncated 'gas-estima' is a blemish but the sentence carries no filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a six-parameter mutation-style builder with no annotations and no output schema, the description covers the critical behavioral surface: unsigned output, on-chain quoting, slippage, approval, gas estimation, and paid access. An agent has enough to decide and call it without further documentation.

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 100%, so the baseline is 3, but the schema descriptions are bare placeholders ('from', 'chain', 'amount'), so the description genuinely compensates by explaining that pool_id is optional and that the deepest pool is auto-selected when omitted. It still does not clarify units for amount or which tokens/chain form from refers to.

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 and resource: 'Build an unsigned Balancer v2 Vault single swap tx'. The parenthetical clarifies scope (single swap, pool auto-selection). It does not explicitly contrast with siblings like balancer_quote or the uniswap/curve swap builders, so an agent must infer the boundary from the protocol name alone.

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?

Useful inline guidance exists for the pool_id parameter: it either auto-picks the deepest pool holding both tokens or accepts an explicit pool_id. However, there is no explicit statement of when to choose this over balancer_quote, swap_best_quote, or the other protocol-specific swap builders, leaving routing to inference.

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.