Skip to main content
Glama

Books-ready record for a payment

books_record
Read-only

A books-ready, standards-referenced record of one managed payment for the payer's own books: the invoice in the functional currency at approval and at settlement at dated official rates (ECB for EUR, SARB for ZAR, named with date), fees split out, the realised FX difference between approval and settlement, the conversion cost against the official rate, the landed amount, stablecoin legs each valued at its own time with the measured premium (classification left to the company's accountant), and the Rate Receipt and release record ids. Give run_id (+ payment_id) for a Payment Run (pr_sample works without a key), or the figures (business, payment, legs). format: json (record + suggested journal lines, accounts left to the company), csv or journal. closing: { date, currencies } adds the period-end closing rate for open balances. SwapEazi posts nothing to any ledger and decides no accounting policy.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "books_record"
  }
}

Input Schema

NameRequiredDescriptionDefault
legsNoStablecoin legs: [{ at, kind: conversion|transfer|payout, from: {amount, currency}, to: {amount, currency}, venue?, ref? }]
formatNojson (default): the record with suggested journal lines; csv; or journal lines only.
run_idNoA payment run (pr_...), or pr_sample.
closingNo{ date: YYYY-MM-DD, currencies: ["USD", "USDC"], functional? }: period-end closing rates with source.
paymentNo{ invoice?: {amount, currency}, sent: {amount, currency}, landed?: {amount, currency}, approved_at, settled_at?, fees?: [{label, amount, currency, paid_by?: payer|beneficiary}], reference?, payee? }
businessNo{ name?, country (ISO 2), functional_currency? (defaults from country), framework?: IFRS | US_GAAP | LOCAL_GAAP }
evidenceNo{ rate_receipt_ids?, release_record_id?, assessment_id?, approval?: {approver, approved_at} }
access_keyNoThe router key that made the run (not needed for pr_sample or given figures).
payment_idNoOne payment of the run; all payments when left out.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior5/5

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

The readOnlyHint annotation already signals a safe read, but the description adds substantial behavioral context: it does not post to any ledger, makes no accounting policy decisions, leaves classification to the company’s accountant, and names the official rate sources with dates. Those scope boundaries are exactly what an agent needs in order to understand the tool’s role.

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

Conciseness3/5

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

The content is front-loaded and every clause is informative, but the description is a dense run-on with fragments such as “format:” and “closing:”. It would be easier to scan if split into clear sections, though little is actually redundant.

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 complex, nine-parameter tool with no output schema, the description is quite complete: it enumerates the record contents, explains input modes, and clarifies the no-ledger-posting caveat. A minor gap is that it does not say what happens if neither run_id nor the direct figures are supplied.

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 schema carries the parameter definitions, but the description adds meaning by explaining the run_id/pr_sample path, the direct-figures path, the payment_id scope, and that closing adds period-end closing rates. This goes beyond the schema and helps an agent choose an invocation style.

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 names a very specific output: a books-ready, standards-referenced record of one managed payment, enumerating the invoice, FX rates, fees, stablecoin legs, and receipt ids. It is clearly distinct in substance from generic payment tools, but it does not explicitly differentiate itself from siblings such as record_landed or calculate_payment_cost.

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 explains invocation modes in detail, including run_id versus direct figures, pr_sample behavior, payment_id scoping, and format choices. However, it gives no explicit when-to-use guidance against alternative tools and no when-not conditions, leaving alternatives for an agent to infer.

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