Skip to main content
Glama

Xero Update Invoice

xero_update_invoice

Update a draft or submitted Xero invoice by changing its status, due date, or reference. Use this to correct invoice details before approval or payment.

Instructions

Update a draft or submitted invoice. Requires XERO_WRITE_ENABLED=true.

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": {
      "invoice_id": "<invoice_id>"
    },
    "name": "xero_update_invoice"
  }
}

Input Schema

NameRequiredDescriptionDefault
statusNoNew status: DRAFT, SUBMITTED, AUTHORISED
due_dateNoUpdated due date (YYYY-MM-DD)
referenceNoUpdated reference
invoice_idYesInvoice UUID

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden, and it does disclose one genuinely useful trait: the XERO_WRITE_ENABLED=true write gate, which tells the agent the call will fail if writes are disabled. It does not say whether omitted fields are left untouched, whether state transitions (e.g., SUBMITTED to AUTHORISED) have side effects, or whether the change is reversible.

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 short sentences, purpose first and prerequisite second, with no filler or repetition. It is tight and front-loaded; the only criticism is that the brevity leaves real questions unaddressed rather than that it wastes words.

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

Completeness3/5

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

An output schema exists, so return values need no explanation, and the schema is fully self-documenting. What remains missing for a 4-parameter mutation tool with no annotations is the partial-update contract and any statement about state restrictions beyond "draft or submitted" — notably that the status parameter itself accepts AUTHORISED.

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 each parameter already documents itself, including allowed status values and the YYYY-MM-DD date format, so the baseline of 3 applies. The description adds nothing about the parameters beyond the word "update", which leaves the partial-update question unanswered.

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?

"Update a draft or submitted invoice" gives a specific verb (update) and resource (invoice) plus a scope restriction on which invoices qualify. It is distinguishable by name and wording from xero_create_invoice, xero_void_invoice, and xero_email_invoice, though it never names those alternatives explicitly.

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

Usage Guidelines3/5

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

The description implies when to use it (only for invoices in draft or submitted state) and adds a hard prerequisite (XERO_WRITE_ENABLED=true). It gives no guidance on what to do instead for invoices in other states, nor any mention of void/email/create alternatives that a confused agent might otherwise reach for.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.