Skip to main content
Glama

P0: wallet balances and EVM reads

Quote swap

quote_swap
Read-onlyIdempotent

Use for a DEX swap quote with a ready unsigned transaction: best route from Velora (ParaSwap), KyberSwap as fallback, on Base, Arbitrum, Ethereum, Optimism, Polygon, BNB Chain. Returns the exact paid x402 request for your input (GET /quote/swap, $0.002 per call), with a link to the full schema; call that URL with an x402 or MPP client to get the data. Bad input is refused before any charge. With a P0 access key (header Authorization: Bearer p0k_…, buy one at https://x402-bazaar-rank.x402-bazaar-rank-worker.workers.dev/keys/buy?usd=5) this tool makes the paid call itself and returns the data, deducting the listed price.

Input Schema

NameRequiredDescriptionDefault
toYestoken to buy: symbol or 0x address
fromYestoken to sell: symbol (USDC, WETH, ETH...) or 0x address
chainYesbase, arbitrum, ethereum, optimism, polygon or bsc (or chain id)
takerYeswallet that will sign and send the swap
amountYesamount to sell in base units (10 USDC = 10000000)
to_decimalsNoonly for tokens P0 does not know
slippage_bpsNomax slippage in basis points (50 = 0.5%). The alias 'slippage' is read as basis points too (Velora's unit); a 'slippage' below 10 is refused as ambiguous
from_decimalsNoonly for tokens P0 does not know

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing price ($0.002/call), the charge-before/refuse-on-bad-input ordering, the fallback routing behavior, and that a P0 key causes an automatic paid call with a deduction. It also makes clear the output is an unsigned transaction (never signed/sent here). The minor gap is that the response payload shape is only described as 'the data' plus a schema link.

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?

Front-loads the core purpose, then pricing, then the paid-call variant; each sentence carries a distinct fact. It is dense but not padded, though the x402/MPP client sentence and the long key-purchase URL add bulk that could be trimmed.

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 an eight-parameter, five-required, open-world payment tool with no output schema, it covers chains, cost, validation behavior, auth options, and points to a schema URL. What an agent still lacks is any description of the returned quote fields, but the schema link partly compensates.

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 description coverage is 100%, so all eight parameters, including slippage_bps aliasing and the decimals overrides, are already documented in the schema. The description adds no per-parameter meaning beyond the chain list it repeats, so the baseline of 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 verb and resource ('a DEX swap quote with a ready unsigned transaction'), names the routing providers (Velora/ParaSwap, KyberSwap fallback) and the supported chains. It is unmistakably distinct from every sibling, which are all single-chain read utilities (evm_block, evm_receipt, wallet_balance).

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 clear usage context: request a quote when you need an unsigned swap transaction, and it explains the two invocation modes (call the returned x402 request URL yourself, or supply a P0 key and let the tool pay). It does not name sibling tools as alternatives, but none of them compete for this task.

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