Skip to main content
Glama

Multi Books

Record a payment

payments_record

Record money that settles one invoice or bill of a company, into or out of one of its bank accounts; the invoice or bill then reads settled by it. On FreeAgent it is a line FreeAgent adds there already explained - for money no bank feed brings, such as cash or a cheque; a line the feed brought is explained with bank_transactions_code instead - which bank_transactions_uncode undoes; answer the explanation whole. On Xero it is a payment against the invoice or bill by Xero's own names, answered whole as payment; a payment is undone in Xero itself. On Zoho Books it is Zoho's own customer payment against the customer's invoices, into account_id, or vendor payment against the supplier's bills, out of paid_through_account_id, answered whole as payment; no email is sent for it. payments_update changes and payments_delete deletes a customer payment; a vendor payment is changed and undone in Zoho itself. Zoho lists it among the account's lines in the books, where bank_transactions_code matches the bank's line to it. On QuickBooks it is QuickBooks' own payment from a customer into a bank account against one invoice, or payment to a supplier out of a bank account against one bill, by QuickBooks' own names, its one line settling all of TotalAmt, answered whole as payment; it records money that already moved, and no card is charged. A QuickBooks payment is undone in QuickBooks itself. On Zoho Books the organisation's own workflow rules in Zoho may still email on any write. Each call is one write, sent to the company's program once - to FreeAgent, or to Xero under a request key of its own, so Xero never takes it twice. A Zoho Books organisation's write goes to Zoho Books, which takes no request key. One given in another program's names, or naming an id of another program's form, is not_written with reason refused, nothing sent; one Xero keeps from the person's Xero role, with reason xero_role. A company set to read only refuses it before its program is asked, and so do words that screen as a prompt attack. outcome is written with the record; not_written with reason and, where its program refused it, what it said; or unknown where its answer never came and reading the books back could not tell, found naming every identical new record where two were made and none where that read itself failed. A write whose answer never came is settled by reading the books back, never sent again. Where the screening holds back its program's words in the answer, the outcome and each record's id stand, marked withheld with why. A QuickBooks company's write goes to QuickBooks under a request key of its own, so QuickBooks never takes it twice.

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": {
      "company": "<company>",
      "payment": "<payment>"
    },
    "name": "payments_record"
  }
}

Input Schema

NameRequiredDescriptionDefault
companyYesThe id companies_list gives the company.
paymentYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare write semantics (readOnlyHint=false, destructiveHint=false, openWorldHint=false); the description adds substantial context beyond them, including idempotency via per-program request keys, refusals for read-only companies and prompt-attack screening, xero_role rejection, no email on Zoho writes (though org workflow rules may still email), and that a write with a lost answer is settled by reading the books back rather than resent. However, the disclosure is dense and repetitive (the QuickBooks request key is stated twice), and the outcome vocabulary (written/not_written/unknown, withheld) is mixed into the same prose, reducing usability.

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

Conciseness2/5

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

The definition is a very long, densely packed block with repeated statements (QuickBooks request key appears twice, idempotency restated) and provider-by-provider detail woven into a single paragraph. The core purpose is front-loaded, but the bulk is hard to scan and several sentences do not earn their place.

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

Completeness5/5

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

For a multi-program write tool with no output schema, the description covers everything an agent needs: idempotency guarantees, refusal and unknown outcomes, read-back settlement, and cross-program differences in payload naming. Nothing essential to invoking it correctly is missing.

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 description coverage is 50%, so the description needs to compensate, and it does: it names the per-program field usage (into account_id for Zoho customer payments, out of paid_through_account_id for vendor payments, one QuickBooks Line settling all of TotalAmt). It clarifies which program's names apply to which shape, adding value beyond the schema's own descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening clause states a specific verb and resource with scope: record money settling one invoice or bill into or out of a bank account. It also explicitly distinguishes itself from siblings (bank_transactions_code for feed-brought lines, bank_transactions_uncode to undo, payments_update/payments_delete for changes), so an agent can identify it without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives explicit when-to-use/when-not-to guidance: use this for money no bank feed brings, such as cash or a cheque, and use bank_transactions_code when a feed line already exists. It also names the mutation/undo siblings per program (payments_update, payments_delete, bank_transactions_uncode) and notes that Xero and QuickBooks payments are undone in those programs themselves.

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.