Skip to main content
Glama

Get swap quote (Base)

get_swap_quote
Read-onlyIdempotent

Indicative price for swapping one token for another on Base via a DEX aggregator, including the 1% CoinFactory fee, aggregator fees, route, and the buy token's risk level. Read-only; builds nothing. Non-custodial: CoinFactory returns aggregator calldata only and never holds funds or keys; the taker wallet signs and broadcasts. A 1% CoinFactory fee plus aggregator fees and gas apply and are shown in the quote. Trades are irreversible. This is not financial advice.

Input Schema

NameRequiredDescriptionDefault
takerNoOptional wallet address, improves accuracy of balance/allowance issues
buyTokenYes
sellTokenYes'ETH', a Base contract address, a symbol, or a CoinGecko id
sellAmountYesAmount of sellToken in human units, e.g. '0.5'
slippageBpsNoMax slippage in bps (default 100, max 500)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

The description adds substantial behavioral context beyond the annotations: it explains the non-custodial model, that CoinFactory returns only aggregator calldata, that the taker wallet signs and broadcasts, and that fees and gas apply. It also discloses that trades are irreversible, which is important safety context even though annotations already mark the tool as read-only and non-destructive.

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?

The description is front-loaded with the purpose and quote contents, and most sentences earn their place by clarifying fees, custody, and irreversibility. The final 'not financial advice' sentence is boilerplate but does not significantly harm readability.

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?

There is no output schema, so the description usefully lists what the quote includes: the 1% CoinFactory fee, aggregator fees, route, and buy token risk level. Combined with the safety and custody context, this is complete for an agent to call 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?

Schema description coverage is high at 80%, so the schema already documents most parameter semantics including token identifiers, amount format, slippage, and taker. The description does not add meaning about specific parameters such as slippageBps or taker, so the baseline score 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?

The description states a specific verb and resource: an indicative price quote for swapping one token for another on Base via a DEX aggregator. It distinguishes this from build_swap_transaction by explicitly saying it is read-only and 'builds nothing', letting an agent immediately understand that this tool returns a quote rather than a transaction.

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?

It clearly establishes the read-only quote context and implies use before building a swap transaction, but it does not explicitly name build_swap_transaction or state exactly when to prefer it over that sibling. The condition is clear enough for an agent to infer the correct usage pattern.

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