Skip to main content
Glama

Prepare changing the bank account of a document

prepare_set_invoice_bank_account

Checks that the bank account of an invoice draft or an open proforma can be replaced with a bank account of the company, and returns a summary of the change for the user's confirmation: the number, type and date, the customer, the gross total, the current bank account of the document (IBAN masked), the new one (IBAN in full) and the effect (the customer is asked to pay to the new account; a change of the currency), with a one-time confirmation token valid for 10 minutes. Only an existing bank account of the company can be chosen. No data of the company or its documents is changed.

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_id": "<company_id>",
      "invoice_id": "<invoice_id>",
      "account_id": "<account_id>"
    },
    "name": "prepare_set_invoice_bank_account"
  }
}

Input Schema

NameRequiredDescriptionDefault
account_idYesThe id of the bank account of the company the document gets, from get_company with include "accounts".
company_idYesThe id of the company, from list_companies.
invoice_idYesThe id of the invoice draft or open proforma, from list_invoices.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

The annotations only declare readOnlyHint=false, destructiveHint=false, idempotentHint=false. The description adds substantial context beyond them: the token's 10-minute one-time validity, the exact contents of the returned summary (masked current IBAN, full new IBAN, currency-change effect), and the explicit assurance that no company or document data is changed. It leaves a mild tension unaddressed: readOnlyHint=false suggests state may be written, yet the text says nothing changes; the token's persistence is only hinted at.

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?

The content is dense and useful, but it is delivered as one long run-on sentence with a nested parenthetical list of summary fields. The core action is front-loaded, yet the enumeration of returned values and the final constraint sentence would read better as separate structured statements.

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

Completeness4/5

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

There is no output schema, and the description compensates by enumerating exactly what the confirmation summary contains. It covers the eligibility constraint, the token lifetime, and the no-mutation guarantee. For a three-parameter preparatory tool with annotations present, this is complete enough, with only the readOnlyHint tension left unexplained.

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%, so the schema already documents all three parameters and their sources. The description reinforces that account_id must be an existing company account and that invoice_id must be a draft or open proforma, but this largely restates what the schema fields already say. The 3 baseline applies when the schema does the heavy lifting.

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: it checks whether a document's bank account can be replaced with a company account and returns a change summary for confirmation. It also scopes the tool to invoice drafts and open proformas. It does not name the sibling set_invoice_bank_account that actually applies the change, so the prepare/apply split must be inferred from 'No data ... is changed.'

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 context: use this when the user wants to change the document's bank account and needs a preview before confirming. It implies a two-step flow by returning a one-time token valid for 10 minutes, and it states the constraint that only an existing company bank account can be chosen. It never explicitly names the alternative (set_invoice_bank_account) or states the when-not condition, so the routing is implied rather than spelled out.

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