Skip to main content
Glama

Octobooks

Match payments to invoices

settle

Match payments in the books to the invoices or bills they pay. what=propose: look for the matches the books give evidence for (payments that name their invoice, a bank line booked in parts, a bank line that pays open invoices or bills) and propose them as one batch. what=allocate: propose stated allocations, allocations: [{charge_line_id, payment_line_id, amount}] with a reason (ids of open charges and payments). It moves no money and pays nothing: it records which payment that already happened belongs to which invoice, and every match waits for a release as the owner decided. what=write_off: propose the write off of small differences (the group small of the cleanup): charge_line_ids, the account the owner named for small differences, a reason, and limit when the owner named another than 5.00 (at most 50.00). The account and the limit are the owner's choice. It is a journal per charge that waits for a release. With what=propose, limit is the most matches this run proposes (a whole number); left_for_next_run says how many stay.

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": "settle"
  }
}

Input Schema

NameRequiredDescriptionDefault
sideNoreceivables
whatNopropose
limitNo
reasonNo
accountNo
companyNo
allocationsNo
charge_line_idsNo
idempotency_keyNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false and destructiveHint=false; the description adds the crucial reason - it moves no money, records which existing payment belongs to which invoice, and every match waits for a release by the owner. That reconciles 'writes' with 'not destructive' and is genuinely useful context. However, it never addresses idempotentHint=false: the idempotency_key parameter goes unexplained on a non-idempotent write tool, and nothing states what happens on a repeated propose run.

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?

Purpose is front-loaded and the mode-by-mode structure is logical, but the prose is dense and run-on, with parenthetical asides embedded mid-sentence. The `limit` discussion is split across the write_off paragraph and a trailing sentence, forcing the reader to reconcile two meanings of one parameter. Nothing is pure filler, but the density works against fast scanning.

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?

An output schema exists, so return values need not be explained, and the mention of left_for_next_run is supplementary. For a nine-parameter, three-mode write tool with zero schema description coverage, the definition covers the critical branch (`what`) and the risky parameters (`account`, `limit`) well but omits `side`, `company`, and `idempotency_key`, leaving an agent guessing about defaults and retry safety.

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 0%, so the description carries the full burden, and it does substantial work: it enumerates the legal values of `what` (absent from the schema, which types it as a bare string), defines `limit` in both senses (batch cap for propose, small-difference ceiling defaulting to 5.00, max 50.00), and gives the shape of `allocations` and `charge_line_ids`. It leaves `side`, `company`, and `idempotency_key` entirely unexplained, which keeps it from compensating fully for nine undocumented parameters.

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 verb and resource: matching payments in the books to the invoices or bills they pay, and it decomposes that into three named modes (propose, allocate, write_off) with a one-line gloss each. An agent can tell it is the matching/proposal tool rather than a listing or release tool. It stops short of naming siblings explicitly, so differentiation is inferred from phrases like 'waits for a release' rather than stated.

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?

Each mode carries its own selection condition: propose when the books themselves give evidence (payment names its invoice, split bank line, bank line covering open invoices), allocate when the caller already has stated allocations, write_off for small differences flagged by the cleanup group. That is real when-to-use guidance for the main branch decision. Missing are explicit exclusions and named alternatives such as release or settle_list for reviewing what was proposed.

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