Skip to main content
Glama

Record a payout's settlement event

record_settlement
Idempotent

Connect your settlement events: send a payout provider's settlement event (provider, payout_id, from, to, amount_sent, quoted_rate, fee, amount_settled, settled_at, rail, status) and get a signed landing receipt. The quote is checked against the official rate of the settlement day and the market reads nearest to it (exchange order books, P2P adverts; NGN quotes above the official rate are labelled, not refused); what settled is set against what was quoted, in money and percent; flags say when it landed short, failed or was returned; the receipt carries an Ed25519 signature (verify at POST https://swapeazi.io/api/v1/attestations/verify). Stored append-only for your organisation; the monthly summary per provider is GET https://swapeazi.io/api/v1/landing-receipts/summary?provider=...&month=YYYY-MM. Needs a router key. The same call is POST https://swapeazi.io/api/v1/landing-receipts. SwapEazi never touches the money.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "provider": "<provider>",
      "payout_id": "<payout_id>",
      "from": "<from>",
      "to": "<to>",
      "amount_sent": "<amount_sent>",
      "quoted_rate": "<quoted_rate>",
      "settled_at": "<settled_at>"
    },
    "name": "record_settlement"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesISO code of the currency credited, e.g. NGN.
feeNoThe fee in the source currency, charged on top, e.g. 2.5.
fromYesISO code of the currency sent, e.g. USD.
railNoThe payout rail, e.g. NIP.
statusNoDefault settled.
providerYesThe payout provider, e.g. Tabs.
payout_idYesThe provider's payout id, e.g. po_3f81c9.
access_keyNoA router key (rk_...), if not sent as a Bearer header.
settled_atYesWhen it settled, ISO 8601 with time zone, e.g. 2026-11-19T14:02:11Z.
amount_sentYesAmount sent, in the source currency, e.g. 25000.
quoted_rateYesThe rate the provider quoted, destination units per source unit, e.g. 1545.20.
amount_settledNoWhat the recipient was credited, in the destination currency, e.g. 38630000.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior5/5

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

Beyond the annotations (non-read-only, idempotent, non-destructive, open-world), the description discloses the actual processing: quotes are validated against the official rate of the settlement day, above-official NGN quotes are labelled rather than refused, shortfall/failure/return flags are produced, records are append-only per organisation, and the receipt is Ed25519 signed with a verify endpoint. It also states the trust boundary ('SwapEazi never touches the money') and the auth requirement.

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 almost every clause carries information (fields, validation rule, flags, signature, storage, auth, endpoints). The semicolon-chained single block is dense and slightly run-on, which costs some readability.

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?

With no output schema, the description properly covers the return value: the landing receipt, its comparison content, flags, and signature plus a verify URL. It also points to the monthly summary endpoint. It stops short of describing failure/error behaviour or how a 'pending' status is handled on a supposedly append-only record.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning: it explains that quoted_rate is checked against the official rate for the day, that amount_settled is compared against amount_sent/quoted in money and percent, and that status drives shortfall/failure/return flags. That is semantics the schema's per-field examples do not convey.

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 concrete verb+resource pair: send a payout provider's settlement event and receive a signed landing receipt, and it enumerates the exact payload fields. It never names or contrasts a sibling (e.g. record_landed or track_payment_settlement), so the agent must infer differentiation from scope 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?

Usage is only implied: the framing 'Connect your settlement events' plus the rate-check mechanics suggest this is for post-settlement reconciliation, and 'Needs a router key' is a stated prerequisite. There is no explicit when-not-to-use guidance and no routing to the closely named 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