Skip to main content
Glama

SwapEazi

Corridor rates and routes

get_corridor_rates
Read-only

Spec v1.0 name for assess_route: the official rate for the pair and each route's all-in cost and FX figure with source, read time, freshness and evidence type, settlement and requirements, under an assessment_id. Same arguments as assess_route.

Input Schema

NameRequiredDescriptionDefault
toNoISO 4217 code of the destination currency (what lands), e.g. 'USD'.
fromNoISO 4217 code of the source currency (what leaves), e.g. 'ZAR'.
amountNoAmount leaving, in the source currency.
corridorNoe.g. EUR-ZMW instead of from and to.
access_keyNoA router key (rk_...), if not sent as a Bearer header.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / access_key / description
      Added value: +"A router key (rk_...), if not sent as a Bearer header."
    • addedInput schema / properties / from / description
      Added value: +"ISO 4217 code of the source currency (what leaves), e.g. 'ZAR'."
    • addedInput schema / properties / to / description
      Added value: +"ISO 4217 code of the destination currency (what lands), e.g. 'USD'."
  2. First observed

TDQS

B3.4/5.0
Behavior3/5

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

The readOnlyHint/openWorldHint annotations already establish that this is a safe external read, so the description's added value is the disclosure that results are grouped under an assessment_id and carry freshness, source read time and evidence type. It still says nothing about authentication via access_key versus Bearer header, error behaviour for unknown corridors, or cost of the call.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Everything is packed into a single dense sentence that buries the key content behind the opaque 'Spec v1.0 name for assess_route' clause. It is not padded, but the listing of return fields is hard to parse and would be clearer split and front-loaded with what the tool returns.

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 usefully enumerates the return payload (rate, all-in cost, FX figure, source, freshness, evidence type, settlement, requirements, assessment_id), which is the main thing an agent needs. Given five optional parameters and clear read-only annotations, the coverage is close to sufficient, with only invocation mechanics left implicit.

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%, with each of the five parameters (to, from, amount, corridor, access_key) documented inline, so the schema already carries parameter meaning. The description only adds 'the pair' and 'Same arguments as assess_route', which is a pointer rather than supplemental semantics; baseline 3 applies.

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 names the resource (official rate for a currency pair plus each route's all-in cost and FX figure) and identifies itself as the v1.0 alias of assess_route, which lets an agent map it to a known sibling. The opening phrase 'Spec v1.0 name for assess_route' is cryptic on its own, but the enumeration of returned fields makes the tool's function recognisable.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

'Same arguments as assess_route' implies the two are interchangeable and hints at when to prefer this one (spec v1.0 consumers), but it never states when to use this versus assess_route, price_routes or get_rate_receipt, nor any exclusion or prerequisite. Guidance is implied rather than 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.

Resources