Skip to main content
Glama

DEX swap quote

swap_quote

Indicative UniswapV2 swap quote from live on-chain reserves: amount out, execution price, and price impact — what the trade will actually cost before you sign it. Paid: call without x_payment to receive this call's exact terms (amount, asset, network), sign them, then call again with x_payment. The free pricing tool lists every price at once.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chainNoWhich chain to quote on.base
amountNoAmount of token_in to sell.
token_inYesAddress of the token being sold.
token_outYesAddress of the token being bought.
x_paymentNoOptional signed x402 payment payload (base64, what the X-PAYMENT header carries). Omit to receive the exact payment terms; sign them (e.g. @x402/fetch) and call again with this argument to settle and get the data.

TDQS

A4.6/5.0
Behavior4/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 well by disclosing the 'indicative' nature, live on-chain reserve sourcing, and the paid two-step workflow. It stops short of explicitly stating read-only behavior or potential error conditions, but the term 'quote' and the workflow imply no trade execution.

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?

Three sentences, each earning its place: the first defines the tool, the second explains the paid workflow, and the third points to an alternative. Information is front-loaded, with no fluff or redundancy.

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?

Although there is no output schema, the description lists the key outputs and fully explains the two-step paid process. It does not describe response structure or failure modes, but for a quote tool with a clear alternative, this is sufficient. Could be slightly more explicit about the exact response format.

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. The description adds meaningful context especially for x_payment, explaining the exact sequence of omitting it to get terms and then including it to settle and get data. This workflow guidance goes beyond the schema's parameter description.

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 clearly states the tool provides an 'Indicative UniswapV2 swap quote from live on-chain reserves' and explicitly lists the outputs: 'amount out, execution price, and price impact'. It also distinguishes from the sibling 'pricing' tool by noting it focuses on a single trade while 'pricing' lists every price at once.

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?

The description gives explicit when/how to use: 'call without x_payment to receive this call's exact terms... then call again with x_payment'. It also explicitly names the alternative 'The free `pricing` tool lists every price at once', clearly guiding the agent to choose the right tool.

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.

TDQS

A4.4/5.0
Disambiguation5/5

Each tool targets a distinct concern: screening, chain metadata, ENS resolution, gas estimation, asset pricing, swap quoting, token safety, NFT scam detection, pricing catalog, and data discovery/request. Overlapping terms like 'price' or 'check' are clearly separated by modifiers and descriptions, leaving no ambiguity about which tool to select.

Naming Consistency4/5

All tool names use lowercase snake_case and a consistent style, but the pattern mixes verb_noun (find_data, request_data) with noun_noun or noun_verb (chain_info, spot_price, gas_compare). This is a minor deviation; the naming remains predictable and readable.

Tool Count5/5

Twelve tools is well-scoped for a multi-purpose on-chain data and security server, fitting comfortably in the 3-15 ideal range. Each tool earns its place, covering distinct operations without redundancies.

Completeness4/5

The server covers a broad set of on-chain utilities: address screening, chain info, ENS, gas (both single-chain and comparative), spot prices, swap quotes, token/NFT safety, and pricing discovery. Notable gaps like on-chain balances or transaction sending are missing, but the 'find_data' and 'request_data' tools mitigate these by letting users discover and request additional endpoints.

Resources