Skip to main content
Glama

quote_swap

Read-only

Calculate how much output you would receive when swapping one asset for another. Use this tool to answer questions like 'how much ETH would I get for 100 RUNE?' Returns expected output amount, fees, slippage, estimated time, and a memo for executing the swap.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
amountYesThe amount in base units (1e8 for most assets)
to_assetYesThe target asset (e.g. ETH.ETH)
affiliateNoThe affiliate address or THORName
from_assetYesThe source asset (e.g. BTC.BTC)
destinationNoThe destination address for the swap output
affiliate_bpsNoThe affiliate fee in basis points (0-1000; protocol caps total affiliate fees at 1000 bps)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

The annotations already establish read-only behavior, and the description adds useful behavioral context by listing the returned estimate fields, including fees, slippage, estimated time, and a memo. It does not explicitly say whether the quote expires or what permissions, if any, are required.

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 tight sentences front-load the purpose and then give a concrete example and return-value summary. There is no wasted text.

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?

With no output schema, the description appropriately names the expected return fields and makes clear this is a calculation rather than an execution tool. The main remaining gap is routing guidance versus similar quote or execution siblings.

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 100%, so the schema already documents all six parameters in detail. The description reinforces the core concept with an example, but adds no parameter-specific syntax or formatting beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/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: calculating expected swap output for one asset into another, with a concrete example. It clearly separates quoting from executing, but does not explicitly distinguish itself from similar siblings such as quote_limit or prepare_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?

It gives clear usage context with an example question, so an agent knows this tool is for estimation-style swap questions. It does not name when to use alternatives like quote_limit or prepare_swap instead.

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