Skip to main content
Glama

Change the payment details

change_payment_details
DestructiveIdempotent

Changes the electronic address of a company, the IBAN of a bank account and / or the default bank account as summarised by prepare_change_payment_details once the user has confirmed it, using its confirmation token and the same input. Refused, with the token used up, when the token expired or doesn't match, or these details changed after the preparation (e.g. the 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>",
      "confirmation_token": "<confirmation_token>"
    },
    "name": "change_payment_details"
  }
}

Input Schema

NameRequiredDescriptionDefault
ibanNoThe new IBAN of the bank account account_id; spaces are allowed and removed.
account_idNoThe id of the bank account whose IBAN changes, from get_company with include "accounts"; required with iban.
company_idYesThe id of the company, from list_companies.
confirmation_tokenYesThe confirmation_token of the answer of prepare_change_payment_details for the same input.
electronic_addressNoThe new electronic address where the company receives e-invoices; only the given keys change, null removes the address.
primary_account_idNoThe id of the bank account that becomes the default account of the company, from get_company with include "accounts".

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 already declare destructiveHint=true, idempotentHint=true and readOnlyHint=false, but the description adds substantial context beyond them: the token is single-use and consumed on refusal, staleness is detected by comparing the prepared state with the current state, and a repeat call with the same token is a no-op that replays the same answer. That is exactly the operational knowledge an agent needs before firing a destructive mutation.

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?

Two sentences, front-loaded with what changes and gated on user confirmation, followed by failure and idempotency behaviour. Some phrasing is dense ("as summarised by prepare_change_payment_details once the user has confirmed it"), but nothing is redundant.

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 six-parameter destructive mutation with no output schema, the definition covers the prerequisite workflow, the token lifecycle, and non-idempotent-looking edge cases. It stops short of describing what the successful answer actually contains beyond implying a result is replayed on repeat calls.

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 parameters are already well documented, giving a baseline of 3. The description adds a real semantic constraint not expressible in the schema: the input must be identical to what was passed to prepare_change_payment_details for that token, which governs how every parameter must be supplied.

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 names a specific verb (changes) and the exact resources affected: the company's electronic address, a bank account's IBAN, and the default bank account. It also anchors the tool to its preparation counterpart prepare_change_payment_details, so an agent can separate it from unrelated siblings like set_invoice_payment_status or create_bank_account.

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 clearly states the precondition: call only after the user has confirmed the summary produced by prepare_change_payment_details, reusing that call's token and input. It also documents refusal conditions (expired or mismatched token, details changed after preparation). What it lacks is any guidance on when a payment-detail change is the right operation versus neighbouring tools such as set_invoice_payment_status.

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