Skip to main content
Glama

File a bank line (preview, then confirm)

accounting_file_bank_line

File one unfiled bank line. Give ONE of: account_code (e.g. bank charges, income, a loan), invoice allocations / customer_id (customer receipt — remainder goes on account), bill allocations / supplier_id or supplier_name (supplier payment), or on_account:true with a customer or supplier. TWO STEPS: the first call changes nothing and returns a preview of the journal it will post plus a confirm_token; call again with exactly the same arguments plus confirm_token (valid 10 minutes, single use) to post it. Always show the user the preview and get their OK first. Changes the user's real books — only after they have seen the preview and agreed. Needs the user's GetAccountED sign-in (they are asked to sign in the first time).

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": {
      "line_id": "<line_id>"
    },
    "name": "accounting_file_bank_line"
  }
}

Input Schema

NameRequiredDescriptionDefault
vatNoWith account_code: split 15% VAT out of the amount (VAT vendors only). Omit to use the default for that account.
refundNoWith account_code: money in that is a refund of an expense
line_idYesThe bank line (from accounting_unfiled_bank_lines)
on_accountNoWhole amount on account with the customer / supplier
allocationsNoWhich invoices (money in) or bills (money out) this pays, with optional amounts (part payments allowed). Omit amount to settle as much as is due, in order.
business_idNoAccounting practices only: which client's books (an id from accounting_list_my_businesses). Leave out to use the books chosen at sign-in.
customer_idNoCustomer id (inv client) — for a receipt; anything not allocated goes on account
supplier_idNoSupplier contact id — for a supplier payment
account_codeNoFile straight to this account (chart of accounts code)
confirm_tokenNoSecond step only: the token from the preview
supplier_nameNoSupplier known only by name on its bills

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / allocations / items / properties / amount / description
      Added value: +"Rand allocated to this invoice or bill"
    • addedInput schema / properties / allocations / items / properties / invoice_number / description
      Added value: +"Customer invoice number (from the candidates)"
  2. Added

TDQS

A4.5/5.0
Behavior5/5

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

Goes far beyond the annotations: it discloses the two-step call contract, that the first call mutates nothing, that the token expires in 15 minutes and is single-use, and that the operation changes the user's real books. It also states the authentication requirement (GetAccountED sign-in on first use), which the annotations do not convey.

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

Conciseness4/5

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

Front-loads the core action and mode list, then the two-step contract, then the safety warning. Dense and purposeful, though the closing two sentences about the preview and the user's agreement restate the same point twice.

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 an 11-parameter destructive-capable mutation with no output schema and no return-value documentation, the description covers everything an agent needs: mode selection, the preview/confirm protocol, token lifetime, and the sign-in requirement.

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 baseline is 3, but the description adds a real semantic constraint absent from the schema: the requirement to supply exactly one mode-defining argument combination, plus the rule that unallocated remainders go on account. It does not explain the vat/refund/business_id interactions in the prose, leaving those to the schema.

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?

States a specific verb and resource with scope: 'File one unfiled bank line,' and enumerates the distinct filing modes (account, customer receipt, supplier payment, on-account). It does not name a sibling tool to differentiate itself from (e.g. accounting_refile_bank_line), so it stops short of the top score.

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?

Explicitly defines the mutually exclusive input modes ('Give ONE of: account_code ... invoice allocations/customer_id ... bill allocations/supplier_id ... or on_account:true') and prescribes the workflow: preview first, show the user, get their OK, then confirm. Nothing about when and how to proceed is left to inference.

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.