Skip to main content
Glama

SwapEazi

Calculate what a payment costs

calculate_payment_cost
Read-only

What this payment costs through your current provider against the official rate: effective rate, FX spread, transaction, intermediary and payout fees, total cost in money and bps, and what the beneficiary receives; with each alternative route's cost at the same size. One analysis (POST /api/v1/payment-analyses), the same service for every payment-intelligence tool. Every figure labelled LIVE, INDICATIVE, HISTORICAL or ESTIMATED; estimated savings are never realised. Free: shares the route-assessment allowance.

Input Schema

NameRequiredDescriptionDefault
amountNoAmount, in currency (default the source currency).
weightsNoYour own scoring weights: { total_cost, speed, reliability, liquidity, compliance }, non-negative, normalised to 1.
currencyNoThe currency of amount: the source currency, or the destination one (then it is what the supplier receives).
due_dateNoYYYY-MM-DD: a route that cannot settle by then is not eligible.
priorityNoSets the default scoring weights. Default balanced.
supplierNoOptional. The supplier's name as on the invoice, e.g. 'Lusaka Copper Supplies Ltd'; echoed in the analysis.
referenceNoOptional. Your invoice or payment reference, e.g. 'INV-2207'; echoed in the analysis.
access_keyNoA router key (rk_...), if not sent as a Bearer header: names the routes and is not counted.
analysis_idNoRead a kept analysis (pa_...) instead of making a new one.
invoice_textNoPaste the invoice or a sentence (e.g. 'Invoice INV-2207, Lusaka Copper Supplies Ltd, Zambia. Amount due: EUR 80,000. Due 2026-11-20'). Or the fields below.
source_currencyNoISO code you pay from, e.g. EUR or ZAR.
existing_providerNoYour current provider: { provider, kind: quote | entered_rate | past_payment, rate (destination per source unit) or landed_amount, fees: { transaction, intermediary, payout } in the source currency, fees_deducted_destination, quoted_at, valid_until }.
beneficiary_amountNoWhat the supplier must receive, in the destination currency (instead of amount).
destination_countryNoISO 3166 alpha-2 or name, e.g. ZM or Mozambique.
destination_currencyNoISO code the supplier is paid in, e.g. ZMW. Or destination_country.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / reference / description
      Added value: +"Optional. Your invoice or payment reference, e.g. 'INV-2207'; echoed in the analysis."
    • addedInput schema / properties / supplier / description
      Added value: +"Optional. The supplier's name as on the invoice, e.g. 'Lusaka Copper Supplies Ltd'; echoed in the analysis."
  2. First observed

TDQS

A3.7/5.0
Behavior4/5

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

With readOnlyHint and openWorldHint already declared, the description still adds real value: the data-quality taxonomy (LIVE/INDICATIVE/HISTORICAL/ESTIMATED), the warning that estimated savings are never realised, the shared free allowance, and the fact that an analysis is posted and can later be read back via pa_ id. The POST-and-keep behaviour sits in mild tension with readOnlyHint, but since it stores an analysis artifact rather than mutating payments it does not amount to a contradiction.

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?

Output contents are front-loaded in the opening sentence, which is the right priority for a tool with no output schema, and the ~90 words are defensible for 15 parameters. The semicolon-chained first sentence and the fragment-like later clauses ('One analysis (POST /api/v1/payment-analyses)', 'Free: shares the route-assessment allowance.') are terse to the point of being cryptic.

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?

Because there is no output schema, the description correctly spends its budget enumerating return values and flagging the estimate labels, and it discloses the quota model. For a 15-parameter tool it is nearly complete; the main gap is that it never explains which input path (invoice_text, explicit fields, or analysis_id) takes precedence, which an agent must infer from the schema alone.

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% across 15 parameters including nested objects, so the schema already carries the detailed semantics (weights keys, existing_provider shape, invoice_text alternative). The description adds only framing — that the comparison is against the current provider and that alternative routes are costed at the same size — without clarifying priority-vs-weights interaction, amount-vs-beneficiary_amount, or invoice_text-vs-explicit-fields precedence.

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 names the specific computation (effective rate, FX spread, three fee types, total in money and bps, beneficiary receipt) and adds that alternative routes are priced at the same size, so an agent knows exactly what it gets back. It does not distinguish itself from close siblings such as compare_payment_providers, price_routes or swapeazi_landed_cost; 'the same service for every payment-intelligence tool' gestures at a family but names no boundary.

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 implied rather than stated: 'through your current provider against the official rate' signals the scenario is benchmarking an existing provider quote, and the free-tier note signals a shared allowance. There is no explicit when-to-use versus the many route/pricing siblings, and no when-not-to-use or prerequisite (e.g. what must be supplied when analysis_id is omitted).

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