Skip to main content
Glama

Check a payout quote before paying

check_payout_rate
Read-only

Check a payout provider's quote before paying, e.g. 'USD 25,000 to NGN at 1,545.20, fee 0.01%, rail NIP'. Returns the official rate the payment is measured against (publisher and date), the market rates read for the destination currency (exchange order books and P2P adverts, each with its source and time, labelled as what it is), the gap between the quote and each in money and percent, the all-in cost against the official rate with the fee included, flags where the quote sits beyond a documented official/market gap or above every market rate read, a Rate Receipt and an Ed25519 signature (verify at POST https://swapeazi.io/api/v1/attestations/verify). Works for any pair with an official rate; built for payouts into Nigeria (NGN, where providers pay at a market rate above the official one) and Ghana (GHS). Free within the daily allowance; a router key is not counted. The same check is POST https://swapeazi.io/api/v1/quote-check. Information, not advice: SwapEazi never touches the money; a person approves and pays through their own provider.

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": "<from>",
      "to": "<to>",
      "amount": "<amount>",
      "quoted_rate": "<quoted_rate>"
    },
    "name": "check_payout_rate"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesISO code of the currency the recipient gets, e.g. NGN or GHS.
fromYesISO code of the currency sent, e.g. USD.
railNoThe payout rail, e.g. NIP, GIP or mobile money (echoed).
amountYesThe amount sent, in the source currency, before the fee, e.g. 25000.
fee_pctNoThe fee as a percent of the amount, e.g. 0.01 for 0.01%. Charged on top unless fee_included.
access_keyNoA router key (rk_...), if not sent as a Bearer header: not counted against the free allowance.
fee_amountNoOr a fixed fee in the source currency.
quoted_rateYesThe rate quoted: destination units per one source unit, e.g. 1545.20.
fee_includedNoTrue when the fee comes out of the amount sent.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only cover readOnlyHint and openWorldHint, and the description goes well beyond them: it discloses the exact returned artifacts, the Ed25519 signature plus the verification URL, the semantics of the flags ('beyond a documented official/market gap or above every market rate read'), and the free-allowance economics. It also states the non-custodial boundary ('SwapEazi never touches the money; a person approves and pays through their own provider'), which is the kind of trust/authority context an agent needs before acting.

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?

Front-loaded with purpose, then output, then scope, then cost/legal caveat — a sensible information hierarchy with no filler sentences. It is dense and long-running in places, and the REST endpoint and legal disclaimer sit late, but nothing is genuinely redundant for a tool with this much return surface.

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?

With no output schema and nine parameters, the description carries the return-value burden and does so thoroughly, itemizing each returned component and even naming the verification endpoint for the signature. Corridor coverage, cost model, and non-advisory framing are all present, leaving nothing material an agent would need before calling it.

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 coverage is 100%, so every parameter already carries its own example and meaning, which sets the baseline at 3. The description reinforces the key semantics indirectly through the worked example (amount, quoted rate, fee percent, rail) and through the all-in-cost-with-fee framing, but adds no format or validation detail the schema does not already give.

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?

States a specific verb and resource ('Check a payout provider's quote before paying') and immediately grounds it in a concrete example ('USD 25,000 to NGN at 1,545.20, fee 0.01%, rail NIP'), then enumerates exactly what comes back (official rate, market reads, gaps, flags, Rate Receipt, signature). An agent can distinguish this from siblings like get_rate_receipt or payout_preflight from the description alone.

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?

Timing is explicit ('before paying') and scope is bounded ('Works for any pair with an official rate; built for payouts into Nigeria (NGN) and Ghana (GHS)'), plus operational guidance on cost (free within daily allowance, router key not counted) and an equivalent REST endpoint. What's missing is explicit routing to named alternatives (e.g. when to prefer payout_preflight or check_fx_charges), so no exclusions are stated.

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