Skip to main content
Glama

SwapEazi

FX leakage on a payment

analyse_payment_leakage
Read-only

Where the money leaks on your current provider: total cost against the official rate in money and bps, split into FX spread and fees, and the estimated saving against the recommended eligible route (ESTIMATED, never realised). Needs existing_provider. 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

A4.1/5.0
Behavior5/5

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

Goes well past the readOnly/openWorld annotations: it discloses that savings are ESTIMATED and never realised, that every figure is labelled LIVE, INDICATIVE, HISTORICAL or ESTIMATED, the exact endpoint, that it consumes a shared allowance, and that analysis_id lets you read a kept analysis instead of computing. These are the confidence and cost traits an agent needs before quoting numbers to a user.

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 the value proposition and tightly packed, with each clause carrying information. It does repeat the confidence caveat ('ESTIMATED, never realised' and 'estimated savings are never realised'), which is redundant in a paragraph this short.

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?

For a 15-parameter tool with a nested object and no output schema, the description names the computed outputs (money, bps, spread, fees, saving), the confidence labelling scheme and the prerequisite, which is enough to call it correctly. It does not describe the response envelope or what happens when no eligible route exists, a minor gap given no output schema.

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%, including the complex existing_provider object, so the schema already carries parameter meaning. The description only reinforces that existing_provider is mandatory and implies the analysis_id read path, both of which are visible in the schema. Baseline 3 is correct.

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?

Opens with a specific outcome: 'Where the money leaks on your current provider: total cost against the official rate in money and bps, split into FX spread and fees'. That is a concrete computation, not a restatement of the name. It never names which sibling it replaces (e.g. calculate_payment_cost or compare_payment_providers), so an agent comparing tools in the payment-intelligence cluster gets no explicit disambiguation.

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?

'Needs existing_provider' states a hard prerequisite, and 'Free: shares the route-assessment allowance' flags quota interaction with the route-assessment tools. 'One analysis (POST /api/v1/payment-analyses), the same service for every payment-intelligence tool' clarifies the endpoint model. There is no explicit when-not-to-use or pointer to an alternative tool, which keeps it below a 5.

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