Skip to main content
Glama

Compare swap rates

get_quotes
Read-only

Compare every exchange's offer for a swap, best first.

In each quote, amount_to is what the user receives after all fees. With amount_to given instead of amount, quotes are sorted by amount_from, what the user sends. errors lists the exchanges that can't, and why (with their min/max when the amount is out of range); with no quote at all, limits has the widest min/max: suggest an amount inside it. savings_pct: how much more the best quote gives than the worst. Ask again after refresh_after seconds, not sooner.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "from_asset": "<from_asset>",
      "to_asset": "<to_asset>"
    },
    "name": "get_quotes"
  }
}

Input Schema

NameRequiredDescriptionDefault
amountNoAmount of from_asset to send. Pass this or amount_to.
to_assetYesAsset to receive, as from_asset.
amount_toNoExact amount of to_asset to receive, instead of amount (fixed rate only).
providersNoOnly ask these exchanges (ids from list_providers).
rate_typeNo'float': the market rate when the deposit arrives, usually more. 'fixed': an amount guaranteed for a short time. Default float, or fixed with amount_to.
from_assetYesAsset to send: 'btc', 'usdt:trx', or a ticker with from_network.
to_networkNoNetwork of to_asset, when its ticker is on several.
from_networkNoNetwork of from_asset, when its ticker is on several: a code or a name ('trx', 'tron', 'erc20').

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=true; the description adds substantial behavior beyond that: the sort order in both directions, that amount_to implies fixed rate, that errors is per-exchange and includes min/max reasons for out-of-range amounts, that limits appears when nothing quotes, and that savings_pct compares best to worst. The refresh_after caching hint is genuinely useful operational context an agent cannot get from structured fields.

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?

Purpose is front-loaded in the first sentence, then return-field semantics follow in a compact block. Nothing is padded, but the second paragraph packs several unrelated return-field definitions into one dense run, which is slightly harder to scan than a short structured list would be.

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?

Eight parameters with full schema coverage, no output schema, and no annotations beyond read-only. The description closes that gap by explaining the response shape (amount_to net of fees, errors, limits, savings_pct, refresh_after), so an agent knows both how to call it and what to expect back.

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 the baseline is 3, but the description earns more by explaining the interaction between parameters rather than restating them: amount_to is fixed-rate-only and flips the sort to amount_from. That is a meaningful semantic link the schema documents only in fragments.

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 opens with a specific verb and resource: 'Compare every exchange's offer for a swap, best first.' It also states the ordering guarantee, which tells an agent this is a comparison/market-lookup tool rather than a single-pair lookup like get_swap. It stops short of naming siblings explicitly, so differentiation is inferred rather than declared.

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?

Clear conditional guidance is given for the key branch: pass amount_to instead of amount for a fixed-rate exact-receive request, and the sorting changes accordingly. It also tells the agent what to do when no quotes come back ('limits has the widest min/max: suggest an amount inside it') and how often to re-poll ('after refresh_after seconds, not sooner'). No explicit when-not or named alternative tool, which keeps it from a 5.

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