Skip to main content
Glama

Invoices: Client vat ID

invoice_client_vat_id
Destructive

Write a client's EU VAT ID (USt-IdNr / CUI with «RO», «ATU…») into the client card — the field the VAT regime reads: an EU business client in another EU state with a valid VAT ID gets reverse charge (services) or an intra-EU supply (goods) on its invoices by itself, with the VAT ID and the legal note printed on the PDF. Client: invoice (its client — and that invoice, if not yet sent or paid, switches to reverse charge in the same step), organization_id, or client = a name matching one client. The number is checked for shape and asked of VIES (free) before it is proposed; a number VIES rejects is still written if the person confirms but gives no reverse charge — say so. Use it when the person gives a client's VAT ID, or after need_client_vat_id. Runs propose→confirm. CONFIRMATION: this tool is PROPOSED, never performed directly. You get status='confirmation_required' with an action_id and a plan_token, and the write happens only after confirm_action.

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": {
      "vat_id": "<vat_id>"
    },
    "name": "invoice_client_vat_id"
  }
}

Input Schema

NameRequiredDescriptionDefault
clientNoThe client's name as said.
vat_idYesThe VAT ID as the person gave it, with its country prefix (RO52564177).
invoiceNoAn invoice of this client (number or id) — also switches it to reverse charge while it is not sent or paid.
organization_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses the VIES validation call, the fallback when VIES rejects a number, the side effect that an unsent/unpaid invoice switches to reverse charge in the same step, and the full propose→confirm contract with status='confirmation_required', action_id and plan_token. This is exactly the behavioral context the destructiveHint/readOnlyHint flags alone cannot 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 purpose and the VAT consequence, then moves to targeting, validation, and the confirmation contract in a sensible order. The middle sentence ('Client: invoice (its client — and that invoice ... )') is heavily nested and takes a second read, which costs it the top score.

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 a destructive mutation with no output schema, the definition covers everything an agent needs: target resolution, validation behavior, side effects, and the mandatory confirmation handoff to confirm_action. Nothing material is left to inference.

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?

Adds real meaning beyond the 75%-covered schema by disambiguating the client target — invoice (implying its client), organization_id, or a client name matching exactly one client — and by explaining the invoice parameter's reverse-charge side effect. The VAT ID format guidance largely restates the schema field description.

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?

Opens with a specific verb and resource — 'Write a client's EU VAT ID ... into the client card' — and immediately names the downstream effect (VAT regime / reverse charge). An agent can tell this apart from invoice_update or erp_client_save without opening either schema.

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?

Gives an explicit trigger: 'Use it when the person gives a client's VAT ID, or after need_client_vat_id.' That is clear when-to-use context, but there is no explicit when-not or named alternative (e.g. erp_client_save) for editing the client card without a VAT ID.

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