Skip to main content
Glama

SwapEazi

Hold one payment against a mandate

check_payment_against_mandate
Read-only

Verify one payment against a mandate before it is prepared. A breach returns mandate_violation and the rule that failed. A pass still needs the named person to approve. Nothing is sent. A router key is required. The verification is recorded when the payment is prepared inside a payment run.

Input Schema

NameRequiredDescriptionDefault
toYesISO 4217 code of the destination currency, e.g. 'ZAR'.
fromYesISO 4217 code of the source currency, e.g. 'USDT'; with to, forms the corridor (e.g. USDT-ZAR).
railNoOptional. The rail the payment would use: bank, provider or stablecoin.
amountYesThe payment amount, in currency, greater than zero.
agent_idNoOptional. The agent making the payment; must match the mandate's agent.
currencyYesISO 4217 code of amount, e.g. 'USD'.
access_keyNoA router key (rk_...), if not sent as a Bearer header.
mandate_idYesThe mandate's id, from create_mandate.
cost_above_official_pctNoNull when the gap to the official rate is not on record. Never treated as zero.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • addedInput schema / properties / access_key / description
      Added value: +"A router key (rk_...), if not sent as a Bearer header."
    • addedInput schema / properties / agent_id / description
      Added value: +"Optional. The agent making the payment; must match the mandate's agent."
    • addedInput schema / properties / amount / description
      Added value: +"The payment amount, in currency, greater than zero."
    • addedInput schema / properties / currency / description
      Added value: +"ISO 4217 code of amount, e.g. 'USD'."
    • addedInput schema / properties / from / description
      Added value: +"ISO 4217 code of the source currency, e.g. 'USDT'; with to, forms the corridor (e.g. USDT-ZAR)."
    • addedInput schema / properties / mandate_id / description
      Added value: +"The mandate's id, from create_mandate."
    • addedInput schema / properties / rail / description
      Added value: +"Optional. The rail the payment would use: bank, provider or stablecoin."
    • addedInput schema / properties / to / description
      Added value: +"ISO 4217 code of the destination currency, e.g. 'ZAR'."
  2. First observed

TDQS

A4/5.0
Behavior4/5

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

Beyond readOnlyHint/openWorldHint the description adds real behaviour: nothing is sent, a breach returns mandate_violation plus the failing rule, a pass still requires human approval, and a router key is required for auth. That is meaningful context an agent could not derive from the annotations. The final sentence about the verification being recorded when the payment is prepared inside a payment run is vague about whether this call alone persists anything.

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

Conciseness5/5

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

Five short sentences, front-loaded with purpose and outcome before the auth note, with no filler or repetition of the schema. Every clause carries distinct information except the slightly muddy closing sentence about recording.

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 nine-parameter read-only check with no output schema and minimal annotations, the description covers the essentials: no side effects, the failure signal name, and the approval follow-up. What a pass actually returns, and whether the call persists the verification itself, remain unclear.

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%, so all nine parameters are already documented, and the description only adds that a router key is required (mapping to access_key). It says nothing about required vs optional semantics, the corridor pairing of from/to, or how cost_above_official_pct affects a verdict. Baseline 3 applies when the schema carries the parameter burden.

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 description opens with a specific verb and resource plus scope: 'Verify one payment against a mandate before it is prepared.' That is clearly distinguishable from preparation/submission tools, and the 'one payment' scope rules out batch interpretation. It stops short of naming a near-neighbour such as check_constraints or payment_controls, so an agent must infer the boundary itself.

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?

'before it is prepared' gives a clear point in the workflow at which to call this, and the note that a pass still requires a named human approver tells the agent this is not a terminal gate. There is no explicit when-not guidance or named alternative for overlapping checks (e.g. check_constraints, payout_preflight).

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