Skip to main content
Glama

Beggar Bot

kyberswap_swap_build

Build a KyberSwap aggregator swap tx (route + build + simulate) with router approval, min-out and USD value 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": "kyberswap_swap_build"
  }
}

Input Schema

NameRequiredDescriptionDefault
fromNofrom
chainNochain
amountNoamount
token_inNotoken_in
recipientNorecipient
token_outNotoken_out
slippage_bpsNoslippage_bps

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.1/5.0
Behavior3/5

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

With no annotations at all, the description carries the full burden, and it does disclose several real traits: the operation internally routes, builds and simulates, it includes a router approval side effect, it applies min-out protection, and it costs $0.02 USDC via x402. That is genuinely useful context. What is missing is whether the result is unsigned calldata or a submitted tx, whether the approval is bundled or a separate tx, and what happens if simulation fails.

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?

A single front-loaded sentence with no filler; the core action and the parenthetical mechanics come first and the payment caveat last. It is dense but every clause carries information. Slightly cramped — the x402 pricing is appended without transition, which makes it easy to miss as a cost.

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?

For a 7-parameter, zero-required-parameter transaction builder with no annotations and no output schema, the description leaves major gaps: it never explains what comes back (calldata? hash? route quote?), which parameters are effectively mandatory despite the empty required list, or how the $0.02 payment is triggered. Given the complexity of an aggregator swap with approval and simulation, this is under-specified.

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%, so the baseline of 3 applies, but the schema descriptions are vacuous (each parameter's description is just its own name, e.g. 'slippage_bps': 'slippage_bps'), so no real meaning is conveyed anywhere. The description mentions min-out and approval, which loosely relates to slippage_bps and token_in/token_out, but adds no format, units, or default guidance. It neither compensates for nor worsens the empty schema docs.

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?

Specific verb ('Build') plus resource ('KyberSwap aggregator swap tx'), and the parenthetical enumerates the internal steps (route + build + simulate) plus the approval and min-out handling. Naming KyberSwap distinguishes it from siblings like uniswap_swap_build or aerodrome_swap_build. It falls short of 5 only because it doesn't state the boundary condition that selects it over those siblings.

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?

The description says what it builds but never says when to choose it: no prerequisites (supported chains, wallet balance, approval state), no exclusions, and no comparison to the many other *_swap_build siblings. Usage is inferable only from the protocol name embedded in the tool, which is exactly the kind of guidance the description should supply rather than leave 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.