Skip to main content
Glama

SwapEazi

Reconcile what landed

reconcile_outcome

After the money moved: post what was sent and what landed (or the all-in cost) against the map it was chosen from. Returns the expected band beside the realised cost, signed. The outcome is kept by pair and size band only and later maps at that size carry it, so bands tighten and unknowns close. Economics only. Free.

Input Schema

NameRequiredDescriptionDefault
map_idYesThe map_id of the Options Map the payment was chosen from.
sourceNoWhere the realised figures come from: bank_mt (bank statement, MT940/950), swift (SWIFT confirmation), onchain_tx (a chain transaction) or manual_upload.
realisedYesWhat actually happened: sent_amount and landed_amount, or all_in_bps_vs_ref; with settled_at, and failure if it did not land.
proof_refNoYour own reference for the proof; never an account number.
candidate_id_usedYesThe candidate_id from the map the payment went through.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • addedInput schema / properties / map_id / description
      Added value: +"The map_id of the Options Map the payment was chosen from."
    • addedInput schema / properties / realised / description
      Added value: +"What actually happened: sent_amount and landed_amount, or all_in_bps_vs_ref; with settled_at, and failure if it did not land."
    • addedInput schema / properties / realised / properties / all_in_bps_vs_ref / description
      Added value: +"All-in cost against the reference, in basis points (e.g. 85 = 0.85%), when the amounts are not given."
    • addedInput schema / properties / realised / properties / failure / description
      Added value: +"true if the payment failed or was returned; default false."
    • addedInput schema / properties / realised / properties / landed_amount / description
      Added value: +"Amount that landed, in the map's destination currency, after every deduction."
    • addedInput schema / properties / realised / properties / sent_amount / description
      Added value: +"Amount that left, in the map's source currency."
    • addedInput schema / properties / realised / properties / settled_at / description
      Added value: +"ISO 8601 date or timestamp the money landed, e.g. '2026-11-04'."
    • addedInput schema / properties / source / description
      Added value: +"Where the realised figures come from: bank_mt (bank statement, MT940/950), swift (SWIFT confirmation), onchain_tx (a chain transaction) or manual_upload."
  2. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Beyond the annotations, the description discloses the output shape ('expected band beside the realised cost, signed') and, importantly, an aggregation/privacy trait: the outcome is stored only by pair and size band, not by identifier. It also explains the feedback effect on future maps. What it omits is the consequence of idempotentHint=false — whether resubmitting the same outcome double-counts the band — which matters for a non-read-only, non-idempotent write.

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?

Four short sentences, front-loaded with the trigger condition and followed by return shape, persistence behaviour, and scope. The terse fragments 'Economics only. Free.' carry real information about scope and cost. Slight density of internal jargon ('the map it was chosen from', 'signed') costs a point.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 5-parameter mutation with a nested object and no output schema, the description does well on return values and storage semantics. It is incomplete on the two things an agent most needs for a non-idempotent write: whether a repeat call creates a duplicate outcome record, and how to correct or supersede a mistaken submission.

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%, and the nested realised object is fully documented, including the sent/landed amounts versus all_in_bps_vs_ref alternative. The description echoes that alternative ('or the all-in cost') but adds no syntax, format, or validation detail beyond the schema, so the baseline of 3 applies.

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 states a specific action (post what was sent and what landed against the originating map) with a clear post-settlement scope ('after the money moved'). It is distinguishable from a generic settlement tracker by emphasising the expected-vs-realised comparison, but it never names the close siblings record_landed or reconcile_payment, so an agent cannot route between them from this text alone.

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?

'After the money moved' gives a timing cue, which is genuine usage guidance for when the tool becomes relevant. However, there is no explicit when-not, no statement of prerequisites (must a map exist first? must candidate_id_used have been selected earlier?), and no reference to alternatives among the many reconciliation-adjacent siblings.

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