Skip to main content
Glama

ChangeNOW

Quote a swap

quote_swap
Read-only

Ask what a swap would give, in either direction: pass amount_from to learn what the user receives, or amount_to to learn what the user must send. Returns the rate, the pair minimum and maximum, who would execute the order, and the warnings to relay. With rate_type "fixed" it also returns the rate_id that create_swap needs to lock that rate for about ten minutes; a fixed rate is only offered for part of the catalogue and the tool says so rather than quietly falling back to a float rate. Nothing is created and no funds move.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toYesAsset the user receives, canonical id, for example "usdt.trx".
fromYesAsset the user sends, canonical id, for example "btc.btc".
amount_toNoAmount the user wants to receive, as a decimal string. The answer then says how much to send.
rate_typeNofloat: the rate is settled when the deposit arrives. fixed: the rate is guaranteed for about ten minutes and returns a rate_id that create_swap needs, usually at a slightly worse rate. Ask for fixed whenever the user wants a guaranteed number; if this pair cannot hold one the answer says so instead of quietly returning a float rate.float
promo_codeNoPromo code to apply, if the user has one.
amount_fromNoAmount the user sends, as a decimal string. Pass this or amount_to, never both.
include_providersNoAdd the raw per-provider breakdown. Off by default because the summary answers the user.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
toYes
fromYes
rateYes
rate_idYes
to_nameYes
providerYes
quote_idYes
warningsYes
amount_toYes
from_nameYes
limits_inYes
providersNo
rate_typeYes
max_amountYes
min_amountYes
amount_fromYes
valid_untilYes
high_network_feeYes
speed_forecast_minutesYes

TDQS

A4.9/5.0
Behavior5/5

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

Beyond the annotations, the description discloses that no funds move and nothing is created, that a fixed rate locks for about ten minutes, and that the tool says so rather than quietly substituting a float rate. It also tells the agent to relay warnings from the response. This is substantial behavioral context beyond readOnlyHint.

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?

Four dense sentences, front-loaded with the core purpose and with no filler. Each sentence adds a distinct piece of information: core behavior, return value, fixed-rate special case, and side-effect-free guarantee.

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?

Given the output schema exists and the input schema already documents all parameters, the description is complete: it covers what the tool returns, how to choose direction, how to request a fixed rate, how the rate_id connects downstream to create_swap, and the fact that no funds move. An agent has everything needed to invoke it correctly.

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?

The input schema already covers 100% of parameters, so the baseline is 3. The description adds meaningful semantic framing: it explains the directionality of amount_from versus amount_to, the real-world meaning of rate_type 'fixed' and the rate_id it produces for create_swap, and reinforces that fixed availability is pair-dependent.

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 opens with a specific verb and resource: 'Ask what a swap would give, in either direction.' It clearly separates itself from sibling tools by mentioning that it returns a rate_id needed by create_swap and that 'Nothing is created and no funds move,' which distinguishes it from create_swap and swap_link.

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 usage direction: pass amount_from to learn the receive amount, or amount_to to learn the send amount. It also gives a clear selection rule for rate_type: use 'fixed' whenever the user wants a guaranteed number, and it explains the fallback behavior instead of silently returning a float rate. The connection to create_swap is explicit.

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.6/5.0
Disambiguation5/5

Each tool targets a distinct stage or resource: asset discovery, quoting, validation, order creation, link generation, and status tracking. Even the overlapping swap-related tools are clearly separated by whether they compute, create, or hand off to the user.

Naming Consistency4/5

Most names follow a clear verb_noun pattern: list_assets, get_asset, quote_swap, create_swap, check_swap_status, validate_address. swap_link is the one outlier, as it reads as a noun rather than an action, slightly breaking the otherwise consistent pattern.

Tool Count5/5

Seven tools is well-scoped for a swap-focused exchange API. Each tool covers an essential part of the workflow without redundancy or bloat.

Completeness5/5

The set covers the full swap workflow: discover assets, get asset details, quote with rates and limits, validate recipient addresses, create or link a swap, and check the resulting order status. No critical missing operation is apparent for the stated purpose.

Resources