Skip to main content
Glama

swap_quote

Get a price quote for a token swap up to $0.10. Displays expected output, pool fee, and slippage for tokens on Base chain without executing the swap.

Instructions

Get a price quote for a token swap (read-only, no execution). Shows expected output, pool fee, slippage. Max $0.10 per swap.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tokenInYesToken symbol or address to sell (e.g. "USDC" or "0x833...")
tokenOutYesToken symbol or address to buy (e.g. "MfT" or "0x8FB...")
amountUSDYesAmount in USD (max 0.10)
Behavior3/5

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

With no annotations provided, the description carries full burden. It discloses read-only nature, non-execution, and cost constraint, but lacks details on failure modes, staleness, or rate limits. Adequate but not exhaustive.

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 concise sentences with no extraneous information. Front-loaded with purpose and key details.

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?

The description is complete enough for a simple quote tool with 3 parameters and no output schema. It covers purpose, behavior, and a constraint. Could mention return format but not necessary.

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%, so baseline is 3. The description does not add new parameter information beyond what the schema already provides (e.g., token symbols, address format, max amount).

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 a price quote for a token swap, specifies it is read-only with no execution, and lists what it shows (expected output, pool fee, slippage). This distinguishes it from siblings like swap_token (execution) and swap_status (status of executed swap).

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?

The description implicitly guides usage by stating it is read-only and has a max limit of $0.10, suggesting it should be used before executing a swap. However, it does not explicitly mention alternatives or when not to use it.

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/jimbo530/baselings-mcp'

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