Skip to main content
Glama

update_invoice

Update an existing invoice by ID.

Input Schema

NameRequiredDescriptionDefault
idYesInvoice ID (from search_invoices)
currencyNoCurrency code
due_dateNoDue date in YYYY-MM-DD format
due_daysNoDays until payment is due
client_idNoNew client ID
document_dateNoInvoice date in YYYY-MM-DD format
lower_annotationNoText below line items
upper_annotationNoText above line items
document_positionsNoReplacement line items. By default these replace ALL existing positions; set document_positions_update_policy: "append" to add instead.
document_positions_update_policyNoHow document_positions are applied: "replace" (default — swap all existing lines) or "append" (add to existing lines).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations at all, the description carries the full burden and provides none of it: it does not say whether omitted fields are left untouched or cleared, does not warn that document_positions replaces ALL existing line items by default (a destructive side effect only documented inside the schema), and does not mention permissions, reversibility, or recalculation of totals. A mutation tool with zero annotation coverage needs far more.

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?

A single front-loaded sentence with zero filler. It is efficient, though the brevity reflects under-specification rather than disciplined editing.

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

Completeness2/5

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

This is a 10-parameter mutation tool with no annotations and no output schema, meaning the description is the only place behavioral guarantees could appear, and it says nothing. Critical facts such as default replacement of all line items, partial-update semantics, and validation behavior are absent from the description text.

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% and the schema itself documents all ten parameters in detail, including the replace-vs-append policy, so the baseline is 3. The description only restates the id parameter ('by ID') and adds no semantics of its own.

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?

Names a specific verb and resource (update an invoice) and adds the lookup key (by ID), which distinguishes it from the many create_*/delete_* siblings in the namespace. There is no other update_invoice tool, so no sibling disambiguation is needed, but the description says nothing about what aspects of the invoice are updatable.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance on when to use this versus create_invoice, get_invoice, or the specialized update_* siblings. It also omits the prerequisite that the ID must come from search_invoices, a hint that only appears buried in the schema.

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