Skip to main content
Glama

swap_evm_quote

PAID ($0.01/call). Executable EVM swap: a firm KyberSwap-routed quote plus a ready-to-sign transaction for the taker's OWN wallet — non-custodial, no key, no account. A 1% platform fee in the chain's native coin is priced into the returned transaction, on top of the swap. Call once WITHOUT x402_payment to receive the x402 payment requirements (an accepts array); pay one of them with any x402 client/wallet, then call again with x402_payment set to the base64 X-PAYMENT payload. You are only charged when a result actually comes back.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
refNooptional referrer 0x… address (splits the platform fee)
takerYesthe wallet (0x…) that will sign and broadcast the returned transaction
chainIdYesEVM chain id (e.g. 8453 = Base, 1 = Ethereum, 137 = Polygon, 42161 = Arbitrum, 43114 = Avalanche)
buyTokenYes'native' or the 0x… address of the token being bought
sellTokenYes'native' or the 0x… address of the token being sold
sellAmountYesinteger amount in the sell token's base units
x402_paymentNobase64 X-PAYMENT payload (omit on the first call to get payment requirements)

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observed

TDQS

A4.4/5.0
Behavior5/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 so thoroughly: discloses the $0.01/call cost, the 1% native-coin platform fee priced into the transaction, non-custodial execution, the two-step x402 payment requirement, and the charge-only-on-result policy. This is substantial behavior beyond what the schema reveals.

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?

Every sentence earns its place: cost, purpose, fee, two-call workflow, and charging condition are all necessary operational facts. The description is dense but logically ordered and contains no filler or redundant restatement of schema fields.

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 paid, two-step swap tool with no output schema, the description covers the essential context: cost, fee, taker requirement, payment flow, and what comes back (a transaction and an accepts array). Exact quote/tx field details are not specified, but an agent has enough to invoke the tool correctly.

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?

The input schema already documents all 7 parameters at 100% coverage with detailed descriptions, so the tool description does not need to add per-parameter meaning. It reinforces that taker means the user's own wallet and that ref affects the fee, but it adds no new parameter semantics beyond the schema. Baseline 3 is appropriate.

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 action and deliverable: an executable KyberSwap-routed quote plus a ready-to-sign transaction for the taker's OWN wallet. The word 'Executable' and 'non-custodial' clearly separate it from a price-only tool like swap_evm_price, so an agent can distinguish 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 Guidelines4/5

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

Gives explicit when-to-call guidance: call once WITHOUT x402_payment to receive the x402 payment requirements, pay one of them, then call again with x402_payment set. It also warns the tool is PAID and only charges when a result returns. It does not name alternatives or exclusions, but the invocation context is clear.

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.

Resources