Skip to main content
Glama

Fivebar Trading

Swap quote (best route, fees shown)

swap_quote
Read-only

What swapping one token for another would give right now, on Robinhood Chain (default), Solana (SOL, USDC, USDT and memecoins by mint address; picked automatically for those), Base, Ethereum or Arbitrum (ETH, WETH, USDC, USDT or a token address; pass chain). EVM chains: the best route across Uniswap v2/v3/v4, PancakeSwap, SushiSwap, Aerodrome, Curve and other DEXes. Solana: the best route across Solana DEXes. Routed by 0x, with the amount out and the minimum after slippage, the USD value, and every fee shown separately (Fivebar's 0.5%, the router's fee where it applies, and network gas). Flags token taxes and, if you pass your wallet as taker, a missing balance or approval. xStocks are coming soon: use stock_quote for their prices. Quote only: nothing is signed or sent; to swap, use swap_build.

Input Schema

NameRequiredDescriptionDefault
buyYesToken to buy, same forms as sell
sellYesToken to sell. Robinhood Chain: ETH, USDG, WETH or a token address. Solana: SOL, USDC, USDT or a mint address
chainNoDefault robinhood (solana when given Solana tokens)
takerNoOptional: the wallet that would swap (0x address, or a Solana wallet on solana)
amountYesHow much of the sell token, in whole units, e.g. '100' or '0.25'
slippage_pctNoMax slippage in percent, default 1

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Consistent with readOnlyHint=true ('nothing is signed or sent'), and adds substantial behavior beyond annotations: per-fee breakdown (0.5% Fivebar, router fee, gas), slippage-adjusted minimum, USD valuation, token-tax flagging, and missing-balance/approval detection when taker is supplied. This is rich disclosure the structured fields do not carry.

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?

Purpose is front-loaded in the first clause, with chain/DEX enumeration and fee details following. It is dense but every clause carries operational information; the long chain and DEX lists cost some readability, keeping it just under top marks.

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?

With no output schema, the description fully describes what the agent gets back (amount out, minimum after slippage, USD value, itemized fees, tax and balance flags). For a read-only quote tool with 100% schema coverage, an agent has everything needed to call it and interpret results.

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 baseline is 3, but the description adds real meaning: chain is auto-selected for Solana tokens, and passing taker triggers balance/approval checks rather than being a passive field. Amount whole-unit semantics and slippage default are already in the schema, so it doesn't rise to 5.

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?

Opens with a specific verb+resource ('what swapping one token for another would give right now') and enumerates the chains, routing sources, and outputs. It clearly separates itself from swap_build (execution) and stock_quote (xStocks), so an agent can select it without opening any schema.

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

Usage Guidelines5/5

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

Explicitly states the when-not ('Quote only: nothing is signed or sent; to swap, use swap_build') and routes xStocks to stock_quote. It also implicitly scopes usage by chain and by passing taker for balance/approval checks, leaving nothing 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.