Skip to main content
Glama

Beggar Bot

swap_best_quote

Compare KyberSwap, Velora, LI.FI and CoW quotes for one swap and point to the builder for the best 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": "swap_best_quote"
  }
}

Input Schema

NameRequiredDescriptionDefault
fromNofrom
chainNochain
amountNoamount
token_inNotoken_in
token_outNotoken_out

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.7/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full behavioral burden, and it discloses only one trait: the call costs $0.02 USDC via x402. Nothing is said about what the response contains (ranked quotes? a builder name? a URL?), what happens if a venue has no route, latency, or failure/refund behavior for the paid call.

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?

It is a single front-loaded sentence with no filler. The appended 'Paid: $0.02 USDC via x402' clause is useful but reads as a bolted-on price tag rather than integrated structure.

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

Completeness2/5

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

The description does not disclose that all five parameters are optional (required: []), leaving it unclear which combination must be supplied for a swap comparison to succeed, and there is no output schema to explain the returned builder reference. For a paid, five-parameter aggregator the definition leaves too much for the agent to guess.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/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 just the parameter names repeated verbatim ('from' describes 'from'), so they carry no semantic content. The description does not compensate: it never says whether 'from' is a wallet address, whether 'chain' is a name or numeric ID, whether 'amount' is human-readable or base units, or whether token_in/token_out are addresses or symbols.

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 resource (compare quotes for one swap) and enumerates the four venues being compared plus the follow-up action (point to the builder for the best). This clearly distinguishes it from single-venue siblings like uniswap_v3_quote or balancer_quote. It loses a point only because the trailing pricing clause muddies an otherwise crisp statement.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit guidance on when to choose this multi-venue comparison over dex_quote or the individual *_swap_build tools, and no stated exclusions (which chains, tokens, or size ranges are supported). The only implied workflow is 'compare, then use the indicated builder.'

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.