Skip to main content
Glama

get_dex_quotes

Compare swap quotes from Uniswap, SushiSwap, and 1inch to find the best price. Returns price impact, liquidity, and estimated fees for each venue.

Instructions

Compare swap quotes across DEXes: Uniswap, SushiSwap, and 1inch. Returns best price, price impact, liquidity, and estimated fees for each venue. Costs 0.002 USDC per call (x402 micropayment on Base).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fromYesInput token symbol or address (e.g. "ETH", "USDC", "0x...")
toYesOutput token symbol or address (e.g. "USDC", "DAI", "0x...")
amountYesAmount to swap (e.g. "1.5" for 1.5 ETH)
chainNoChain to query (e.g. "ethereum", "base", "arbitrum"). Defaults to "ethereum".
Behavior4/5

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

No annotations provided, so description bears full burden. It discloses a behavioral trait: the micropayment cost. Implies read-only nature through 'returns quotes' but doesn't explicitly state no side effects. Adequate for a quote tool.

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?

Two sentences, extremely concise and front-loaded with the core purpose. Every word adds value; no fluff or redundancy.

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?

For a simple query tool with 4 parameters and no output schema, the description fully explains what it does, what it returns, and the cost. Complete and sufficient for agent invocation.

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 coverage is 100% with clear descriptions for each parameter. The description adds no extra meaning beyond what the schema already provides, so 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?

Clearly states the tool compares swap quotes across specific DEXes (Uniswap, SushiSwap, 1inch) and lists returned data (best price, impact, liquidity, fees). Distinguishes from siblings like get_crypto_prices and get_gas_prices.

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?

Explicitly states the use case (comparing quotes) and the cost (0.002 USDC per call), providing context for when to use. No explicit when-not or alternatives, but the purpose is clear enough.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/fernsugi/x402-api-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server