Skip to main content
Glama

updateInvoice

Destructive

Change the due date or the internal note of an invoice; omitted fields keep their current values. Returns the invoice read after the update. The due date can only be changed on a draft: dueType date with dueDate, days with dueDays, or default for the location default. internalNote is seen by admins only and can be changed on any invoice. Get invoiceId from getInvoices. Never invent UUIDs; only use values from prior tool responses.

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": {
      "invoiceId": "<invoiceId>",
      "invoice": "<invoice>"
    },
    "name": "updateInvoice"
  }
}

Input Schema

NameRequiredDescriptionDefault
invoiceYesInvoice fields to update.
invoiceIdYesThe id of the invoice.

Output Schema

NameRequiredDescriptionDefault
invoiceYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=false, destructiveHint=true, and openWorldHint=false; the description adds genuine context beyond that: omitted fields retain current values, the response is the invoice re-read after the update, and due-date edits are draft-only. It does not address why the operation is flagged destructive or whether changes are reversible, which is the remaining gap.

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-loaded with the action and its scope, then constraints, then the ID-provenance warning. Dense and mostly waste-free, though the closing 'Never invent UUIDs' sentence partly restates 'Get invoiceId from getInvoices.'

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?

An output schema exists, so the return contract need not be explained in depth, and the description still notes the returned object. For a mutation with nested parameters, the key operational facts are present; only failure behavior on a non-draft invoice is unstated.

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 meaning the schema lacks: the dueType/dueDate/dueDays pairing rule and the 'default' value resolving to the location default, plus admin-only visibility for internalNote. It does not clarify whether the nested invoice object accepts partial subfields beyond the 'omitted fields keep current values' statement.

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?

States a specific verb and resource plus the exact two mutable fields: 'Change the due date or the internal note of an invoice.' The explicit field scope separates it from siblings such as updateInvoiceItem, issueInvoice, and voidInvoice, so an agent can select it without opening the 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 real preconditions: due date is editable only on a draft, internalNote on any invoice, and invoiceId must come from getInvoices rather than being invented. It does not name a sibling for changing other invoice fields, so an agent is left to infer that line items belong to updateInvoiceItem.

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