Skip to main content
Glama

Multi Books

Explain a bank transaction

bank_transactions_code
Destructive

Explain one bank line of a company. On FreeAgent, whole or part of what the line leaves unexplained: by a category, as money settling an invoice or a bill - which then reads settled by it - or as a transfer to or from another of the company's bank accounts, with the files it carries; answer the explanation whole, its attachments as a list by id. Each of its writes is sent to FreeAgent once: the explanation first, then its files, none of them where it was not written or could not be found once written; outcome is that of the first not written, the files' own under attaching. Xero gives this connector no bank statement line, so on Xero a line is coded by a spend or receive money entry made from what the person states - the day and amount on the bank's line, its bank account, contact, account and VAT - naming no transaction and carrying no files; Xero then offers it in its Reconcile screen as the match for the bank's line, which the person confirms there. Xero's match is a suggestion, never certain, and an entry the person also makes from the statement in Xero is a duplicate. An entry not yet reconciled is changed by its id as transaction, its contact named by ContactID alone and every line the change does not name sent back by its LineItemID, so each stays as it was; a reconciled one is refused with nothing sent, the answer naming Xero's Reconcile screen under note. A Xero entry is one write, sent to Xero under a request key of its own, so Xero never takes it twice, and answered whole as bank_transaction. On Zoho Books a line from the bank is coded in Zoho itself, named by its id and bankAccount as bank_transactions_list answers them, by Zoho's own names: categorised - as one of Zoho's own kinds moving the money between from_account_id and to_account_id, one of them the line's own bank account, as an expense against its account, or as a customer_payment or vendor_payment settling invoices or bills, the last three through the line's own bank account - matched to records Zoho suggests, or excluded. The line is read again after and answered whole as bank_transaction, its status what Zoho made of it and, once categorised or matched, its id the record that stands for it in the books, the line's own as imported_transaction_id. A line not uncategorised, a categorisation naming the line's bank account on neither side, or a match to a record Zoho does not suggest - the answer naming what it suggests - is refused with nothing sent; no Zoho line carries files. A Zoho write is sent once, Zoho taking no request key. On QuickBooks a line is coded as on Xero, by an entry made from what the person states, naming no transaction and carrying no files: an expense out of a bank or card account, a deposit into a bank account, or a transfer between two of the company's accounts, by QuickBooks' own names. A line's Amount is before tax under TaxExcluded and TaxInclusive alike, QuickBooks adding the tax, so a gross amount from the bank goes in as its amount before tax; outside the US, on a company charging tax, the entry names its GlobalTaxCalculation and each line its TaxCodeRef, a deposit's line with its TaxApplicableOn, or it is refused with nothing sent to QuickBooks. QuickBooks' bank review then offers it as the match for the bank's line of the same amount and a close date, which the person confirms there; adding that line in QuickBooks instead of matching it makes a duplicate, as every QuickBooks answer says under note. On QuickBooks an entry not yet reconciled is changed by its id as transaction, its type and only what changes - who it is for, its account and how the money moved stay - every line the change does not name sent back by its Id, so each stays as it was; its lines' Ids are those of the bank_transaction a coding answer carries, and a line given without one is added beside the entry's lines, moving its total away from the bank's line. One QuickBooks marks reconciled, or whose ledger cannot be read, is refused with nothing sent, a reconciled one's answer naming QuickBooks' Reconcile under note. A QuickBooks entry is answered whole as bank_transaction. On Zoho Books the organisation's own workflow rules in Zoho may still email on any write. 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>",
      "explanation": "<explanation>"
    },
    "name": "bank_transactions_code"
  }
}

Input Schema

NameRequiredDescriptionDefault
companyYesThe id companies_list gives the company.
attachmentsNoThe files it carries - receipts or invoices, pictures or PDFs, at most ten and 2.9 MB together - which FreeAgent keeps attached to it as a list.
bankAccountNoOn Zoho Books alone, the bank account the line is on, as bank_transactions_list names it.
explanationYes
transactionNoThe bank line's id, as bank_transactions_list answers it - on Xero and QuickBooks, the id of the entry that changes; none for a new one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only say readOnlyHint=false and destructiveHint=true; the description goes far beyond them, disclosing idempotency via per-request keys, duplicate-creation hazards on Xero and QuickBooks, refusal conditions with named reasons (xero_role, refused), the three outcome values (written, not_written, unknown), the read-back-and-never-resend recovery rule, that reconciled entries are refused with nothing sent, and that withheld program text leaves outcome and ids standing. This is exactly the mutation-risk context an agent needs.

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 in sentence one, and almost every clause carries unique information rather than repetition. However, the body is a single wall of run-on, heavily subordinated prose with no paragraph breaks or enumeration, which makes the four provider branches and the refusal/outcome rules expensive to scan. Size is defensible given four divergent write shapes; structure is not.

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 5-parameter, four-variant mutation tool with no output schema, the description supplies what is missing: what the answer contains ('answered whole as bank_transaction', attachments as a list by id), the outcome/note/reason fields, per-program refusal and duplicate semantics, and idempotency guarantees. Nothing an agent needs in order to call it correctly and interpret the result is absent.

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 80%, so baseline is 3, but the description adds real cross-field meaning the schema cannot: which explanation shape applies to which program, that 'transaction' names the entry being changed versus none for a new one, that QuickBooks Amount is pre-tax so a gross bank amount goes in net, that unnamed lines are returned by LineItemID/Id so they persist, and that a line without an Id is added beside existing lines, moving the total. That is substantive semantic lift above the schema.

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 sentence names a specific verb and resource: 'Explain one bank line of a company.' The remainder makes clear this is the coding/explanation write path, distinct from bank_transactions_list (source of ids) and, by implication, bank_transactions_uncode. An agent knows immediately what the tool does and what entity it acts on.

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?

It gives explicit per-program operating conditions: on Xero no statement line is exposed so the explanation becomes a spend/receive money entry that the person confirms in Reconcile; on Zoho the line is coded in Zoho itself and re-read; on QuickBooks it follows the Xero pattern. It also states prerequisites (read-only company refuses, prompt-attack screening refuses, other-program ids produce not_written/refused). It never explicitly routes the agent to a sibling for the inverse operation, so it stops short of fully explicit when/when-not guidance.

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.