Skip to main content
Glama

SwapEazi

Recommend a route for one payment

recommend_payment_route
Read-only

Selects a route for one payment, with the reasons. Hard eligibility first (complete cost, not stale, settles by the due date, licence active, not excluded by route health), then configurable scoring (total cost, speed, reliability, liquidity, compliance), and the recommendation with why, alternatives, data used, missing information and freshness; or no reliable recommendation with the reasons. Not a firm quote: confirm with the provider before approval. 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.9/5.0
Behavior5/5

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

With readOnlyHint/openWorldHint given, the description still adds substantial behavior: the hard eligibility gates applied before scoring, the configurable scoring dimensions, what the recommendation returns (reasons, alternatives, data used, missing information, freshness), and the fallback case of no reliable recommendation. It also discloses the trust model (LIVE/INDICATIVE/HISTORICAL/ESTIMATED, estimated savings never realised) and the free-allowance cost. The POST endpoint mention is a mild tension with readOnlyHint, but the artifact is an advisory analysis, not a business-state mutation.

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?

The purpose is front-loaded in the first clause and nearly every subsequent sentence carries real information (eligibility order, output contents, confidence labels, cost). It is a dense semicolon-chained paragraph, though, and the line about "the same service for every payment-intelligence tool" is more puzzling than illuminating.

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 nested objects and no output schema, the description covers the decision logic and describes the return payload in enough detail (reasons, alternatives, data used, missing info, freshness). Only minor gaps remain, such as how the analysis_id read path relates to a fresh analysis.

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 the schema already documents all 15 parameters, including the weights object and the enum. The description only restates the scoring dimensions and eligibility logic at a high level, adding little syntax or meaning beyond the schema. A baseline of 3 is appropriate.

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?

"Selects a route for one payment, with the reasons" gives a specific verb (selects), a resource (route), and the scope (one payment). It clearly differentiates from a quote ("Not a firm quote"). However, it never names its nearest siblings (assess_route, price_routes, compare_payment_providers, swapeazi_route_compare), so differentiation from those is left implicit.

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?

It gives useful context that this is pre-approval analysis rather than a firm quote and that the user must confirm with the provider. It also signals the free-tier allowance. But there is no explicit when-to-use/when-not guidance relative to the many overlapping route tools, so an agent must infer which tool to pick.

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