Skip to main content
Glama

Multi Books

Undo an explanation

bank_transactions_uncode
Destructive

Undo one explanation of a company's bank line, by its id as bank_transactions_list answers it. On FreeAgent the line reads unexplained again by its value, an invoice or bill it settled reads owed again by it, what payments_record made goes with its line, a transfer with the other account's side, and its attachments with it; undone, it is written with no record, the explanation being gone. On Xero the spend or receive money entry is deleted by its Status DELETED while it is not yet reconciled, and answered as it reads deleted; a reconciled one is refused with nothing sent, the answer naming Xero's Reconcile screen under note, where the person unreconciles it first. On Zoho Books a line from the bank is taken back to uncategorised, named by its id as bank_transactions_list answers it, or its imported_transaction_id, and its bankAccount: a categorised one is uncategorised, Zoho deleting what categorising made; a matched one is unmatched, what it was matched to staying in the books - a payment Zoho recorded against an invoice or bill stays, the invoice or bill reading settled until that payment is deleted in Zoho itself; an excluded one is restored. The line is read again and answered whole as bank_transaction; one not coded, or recorded in Zoho itself, is refused with nothing sent. On QuickBooks the expense, deposit or transfer is deleted, named by its id and its type, sent against it as just read, and answered with its id and status Deleted; 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, where the person undoes its reconciliation first. One whose answer never came is written where it reads gone or deleted, and not_written where it does not. On Zoho Books one is written where the line reads uncategorised. 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>",
      "explanation": "<explanation>"
    },
    "name": "bank_transactions_uncode"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeNoOn QuickBooks alone, the entry's kind: for a line whose type is Expense, Check, Cheque, Credit Card Expense or Credit Card Credit the name QuickBooks gives spending, else Deposit or Transfer.
companyYesThe id companies_list gives the company.
bankAccountNoOn Zoho Books alone, the bank account the line is on, as bank_transactions_list names it.
explanationYesThe explanation's id, as bank_transactions_list answers it - on Xero and QuickBooks, the entry's. On Zoho Books, the line's.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true, but the description goes far beyond that by explaining exactly what is deleted, restored, or left in place across FreeAgent, Xero, Zoho Books, and QuickBooks. It also discloses idempotency via request keys, read-back settlement after missing responses, and specific refusal messages and notes for reconciled transactions.

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 description is a single dense, run-on block with repeated provider clauses and idempotency details. While the main action is front-loaded, the length and lack of structure make it hard to scan for the key operational rules.

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?

Given the destructive multi-provider operation and absence of an output schema, the description is highly complete. It covers outcomes, refusals, provider-specific quirks, idempotency, and post-failure read-back behavior that an agent needs before invoking the tool.

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 100%, and the schema already documents company, explanation, type, and bankAccount with provider-specific meanings. The description largely restates or contextualizes those parameters rather than adding new parameter-level semantics beyond what the schema provides.

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 description opens with a specific verb and resource: 'Undo one explanation of a company's bank line,' and then explains provider-specific behavior. It is clearly an undo/un-code operation, distinguishable from bank_transactions_list and payments_record even without naming every sibling.

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?

The description gives clear usage conditions, including provider-specific prerequisites such as unreconciling on Xero or QuickBooks before undo, and refusal cases for read-only companies, uncoded lines, or mismatched program ids. It does not explicitly name the coding alternative, but the when-to-use and when-not-to-use context is strong.

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.