Skip to main content
Glama

Corridor capacity for one payment

get_corridor_capacity
Read-only

Which banks, fintechs, stablecoin platforms and crypto P2P routes can carry one payment, e.g. 'Pay EUR 100k to Botswana', each measured the same way: corridor served (or one leg only), can carry it (yes / no / not established, against a published per-payment limit or measured P2P depth, with the source), licence in the sending and receiving country with the register, cost against the official rate (Rate Receipt where priced; otherwise 'listed, not priced', never estimated), stated speed, on/off-ramp and stablecoin path, and the forms of money each takes (bank deposit, tokenised deposit, USDC, USDT, EURC, PYUSD...) with the chains where published and whether it cashes out in the destination currency. Public sources only, every fact with its source URL and date; routes ranked by evidence of what landed (landing receipts, then verified business submissions, then public reports, each labelled), not enough evidence yet where it is thin, with landing time and delay risk next to cost; a listing never changes rank. Paid per call: x402 (USDC on Base, price in the 402 body, USD 0.25) via params._meta["x402/payment"], or a paid router key as Bearer. The free top line is GET https://swapeazi.io/api/v1/capacity. Who does what: the agent may compile the intent, gather the facts, propose the route that fits the user's own weights (recommend_payment_route) and prepare the instruction with a link to the provider's own sign-in. A person approves, releases, shares account details and authorises any spend above the mandate; the user signs in to the provider with their own credentials. SwapEazi never touches the money: it never connects a wallet and never asks for a signature.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_corridor_capacity"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoISO code of the currency that lands, e.g. BWP, ZMW, NAD, MZN, MWK, ZAR, NGN or GHS.
fromNoISO code of the currency that leaves, e.g. EUR, USD or ZAR.
textNoThe payment in one sentence, e.g. 'Pay EUR 100k to Botswana' or 'R500,000 from rand to Mozambique'. Or the fields below.
amountNoAmount that leaves, in the source currency, e.g. 100000.
holdingNoWhat the money is held as now (optional, default bank_deposit in the source currency): a bank deposit, a tokenised deposit or a named stablecoin. Each route then shows whether it takes that form directly and whether the money can be spent in the destination currency.
access_keyNoA paid router key (rk_...), if not sent as a Bearer header.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / to / description
      Previous value: -"ISO code of the currency that lands, e.g. BWP, ZMW, NAD, MZN, MWK or ZAR."New value: +"ISO code of the currency that lands, e.g. BWP, ZMW, NAD, MZN, MWK, ZAR, NGN or GHS."
  2. Added

TDQS

A3.5/5.0
Behavior4/5

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

Annotations only declare readOnlyHint and openWorldHint, so the description carries real extra weight and does so: public-sources-only provenance with source URLs and dates, ranking ordered by evidence type, an explicit 'not enough evidence yet' state, and a statement that a listing never changes rank. It also discloses the paid access model (x402 USDC on Base at USD 0.25 via params._meta, or a router key as Bearer) and a free top-line endpoint, which is exactly the auth/cost context an agent needs.

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

Conciseness2/5

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

The first sentence front-loads the purpose, but it then becomes a dense run-on paragraph bundling ranking methodology, payment mechanics, endpoint URLs, and role/liability prose ('SwapEazi never touches the money: it never connects a wallet...'). The human-approval and non-custody narrative does not help an agent select or invoke this tool and dilutes the callable guidance.

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 must describe the return payload, and it does so extensively: corridor served, yes/no/not-established carrying verdict with source, licence and register, cost vs official rate, speed, on/off-ramp and stablecoin path, and landing-time/delay risk. What it lacks is any hint about result volume, pagination, or error behavior when a corridor has no coverage.

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 parameter (from/to/text/amount/holding/access_key) already documented in the schema. The description echoes the natural-language example that maps to the text parameter and names the forms of money that map to the holding enum, but adds no format details, defaulting rules, or precedence between text and the individual fields.

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 first sentence states a concrete resource and verb-like capability: which banks, fintechs, stablecoin platforms and P2P routes can carry one specific payment, with the example 'Pay EUR 100k to Botswana'. It is clearly distinct from rate or guide tools, but the purpose is buried in a long list of measurement dimensions rather than stated crisply.

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?

Usage is only implied through the workflow prose: the agent gathers facts here, then uses recommend_payment_route to propose a route that fits the user's weights. There is no explicit 'use this when X, use get_corridor_rates instead when Y', and no prerequisite or exclusion statements.

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