Skip to main content
Glama

Change the bank account of a document

set_invoice_bank_account
DestructiveIdempotent

Replaces the bank account of an invoice draft or an open proforma with the bank account of the company summarised by prepare_set_invoice_bank_account once the user has confirmed it, using its confirmation token and the same account_id. Refused, with the token used up, when the token expired or doesn't match, or the document or the chosen bank account changed after the preparation (e.g. its IBAN was edited in the app). A repeated call with the same token returns the same answer without changing anything again.

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>",
      "confirmation_token": "<confirmation_token>"
    },
    "name": "set_invoice_bank_account"
  }
}

Input Schema

NameRequiredDescriptionDefault
account_idYesThe id of the bank account of the company, the same as given to prepare_set_invoice_bank_account.
company_idYesThe id of the company, from list_companies.
invoice_idYesThe id of the invoice draft or open proforma, from list_invoices.
confirmation_tokenYesThe confirmation_token of the answer of prepare_set_invoice_bank_account for this document and bank account.

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?

Goes well beyond the annotations by explaining the refusal semantics: the token is invalidated when expired, mismatched, or when the document or chosen bank account changed since preparation (e.g. an edited IBAN). It also clarifies the idempotent behavior concretely — a repeat call with the same token returns the same answer without re-applying the change — which makes destructiveHint and idempotentHint actionable rather than abstract.

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 action and its target, then layers prerequisites, refusal conditions, and idempotency in a logical order. The single dense opening sentence is long but carries the core contract; nothing is clearly redundant, though the phrasing could be split for faster scanning.

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?

For a destructive, non-read-only mutation this covers prerequisites, failure modes, and repeat-call behavior, which is the information an agent most needs before invoking it. With no output schema, a brief note on what the successful response contains (e.g. document state or applied account) is the only notable gap.

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 cross-tool meaning by tying account_id to the value given to prepare_set_invoice_bank_account and framing confirmation_token as a single-use credential bound to that document/account pair. This tells an agent something the schema alone does not: the values must be carried over verbatim from the preparation response.

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?

Uses a specific verb and resource ('Replaces the bank account of an invoice draft or an open proforma') and scopes it precisely with the accepted document types. It also distinguishes itself from the sibling prepare_set_invoice_bank_account by framing that tool as the preparation step whose token and account_id this call consumes.

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?

Clearly states the workflow prerequisite: call only after prepare_set_invoice_bank_account and only once the user has confirmed, reusing its confirmation token and account_id. It does not explicitly enumerate when-not-to-use alternatives (e.g. other bank-account mutation tools), but the sequencing rule leaves little ambiguity about the correct entry point.

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