Skip to main content
Glama

Invio Xero MCP

update_xero_invoice

update_xero_invoice

Proposes a change to an EXISTING Xero invoice - it does NOT change anything in Xero itself, and never will on its own. This queues a pending change that a human must explicitly approve (your Xero MCP connector - the exact link is this response's own approvalUrl field) before Xero is touched at all; you have no way to approve it yourself. Only works on invoices that are still DRAFT or SUBMITTED in Xero - get_xero_invoice tells you the current status first. Cannot change which contact the invoice is for, or its type - void it and create a new one for that. If you include lineItems at all, it REPLACES every line item on the invoice; to change one, list all of them, or Xero will delete the ones you don't mention. Tell the user exactly what you are proposing to change and that it needs their approval in Invio - never describe it as done. You can also change the invoice currency (currency, checked against the currencies this organisation is actually set up to invoice in) and how its amounts are read (lineAmountTypes: "Exclusive", "Inclusive" or "NoTax"). Omit either to leave it exactly as it is - neither is reset to a default when you leave it out. Changing lineAmountTypes re-interprets EVERY amount already on the invoice and so changes its total: only send it when the user actually asked for that, and say plainly that the total will move. DATES: date and dueDate are strict YYYY-MM-DD, so you always have to convert whatever the user actually said. A date carrying a month name ("8 Sep", "Sept 8th"), a weekday ("last Tuesday"), or an already-unambiguous full date ("2026-09-08") is yours to convert normally. A BARE NUMERIC date with no month name - "9/8", "08/09", "9-8" - is the one that is not: it means 9 August to most of the world and 8 September in the United States, and getting it wrong puts an invoice a month out in a way nobody skimming the approval card will catch. This Invio account is based in a country that writes the DAY first, so read a bare "9/8" as 9 August, not 8 September. Say in plain words how you read it ("I read 9/8 as 9 August") so the user can correct you before they approve. If their own wording points the other way anywhere in the same request, ask them which they meant instead of picking.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dateNoNew invoice date, YYYY-MM-DD. Omit to leave unchanged. If the user wrote a bare numeric date with no month name ("9/8", "08/09"), do NOT settle it on your own judgement - it is 9 August to most of the world and 8 September in the US, and nothing downstream of this field can tell which you meant once it is a date. Follow the DATES instruction in this tool's description.
dueDateNoNew due date, YYYY-MM-DD. Omit to leave unchanged. If the user wrote a bare numeric date with no month name ("9/8", "08/09"), do NOT settle it on your own judgement - it is 9 August to most of the world and 8 September in the US, and nothing downstream of this field can tell which you meant once it is a date. Follow the DATES instruction in this tool's description.
currencyNoNew currency for the invoice, e.g. "NZD". Checked against the currencies this organisation is actually set up to invoice in. Omit to leave the invoice in whatever currency it is already in - this never resets it to the organisation's base currency.
invoiceIdYesGet this from list_xero_invoices or get_xero_invoice first, never guess.
lineItemsNoIf you include this at all, it REPLACES every line item on the invoice - Xero deletes any line item you do not list here. To change one line item, list ALL of them (the ones you are not changing too), never just the one that changed. Omit this field entirely to leave every line item as it is.
referenceNoNew reference text. Omit to leave unchanged.
organisationNoThe Xero organisation to use, by its display name. Only needed if this connection reaches more than one organisation - omit it when there is only one.
lineAmountTypesNoChange how this invoice reads its unitAmounts: "Exclusive" (amounts exclude tax), "Inclusive" (amounts already include tax), or "NoTax". Omit to leave it exactly as it is. Changing this re-interprets EVERY amount already on the invoice and so changes its total - only set it when the user actually asks for that (e.g. "those figures were meant to include GST").

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A5/5.0
Behavior5/5

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

The description discloses much more than annotations: it does not change Xero directly, it requires human approval via approvalUrl, omitted lineItems will be deleted on replacement, lineAmountTypes reinterpretation changes the total, and bare numeric dates are interpreted day-first. These side effects and constraints add significant safety-relevant context beyond readOnlyHint and destructiveHint.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is long but front-loaded with the core approval semantics, then organizes constraints, replacement behavior, and date rules into clear blocks. Every sentence carries actionable guidance with no filler or repetition of what annotations already state.

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?

Given the absence of an output schema and the high-stakes propose/approve behavior, the description covers prerequisites, approval flow, parameter pitfalls, and the response's approvalUrl field. An agent has all the information needed to invoke the tool correctly and communicate the outcome honestly to the user.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Although schema coverage is 100%, the description adds decisive meaning for ambiguous parameters: bare numeric date resolution ('I read 9/8 as 9 August'), lineItems as full replacement, currency validation against organisation setup, and lineAmountTypes reinterpreting existing amounts. It also establishes the omit/leave-unchanged behavior for several optional fields.

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 opens with a specific verb+resource: 'Proposes a change to an EXISTING Xero invoice' and immediately distinguishes it from create_xero_invoice and approve_xero_pending_change by clarifying it only queues a human-approved change. It further scopes the tool to DRAFT/SUBMITTED invoices and states what it cannot change, making its role unambiguous.

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

Usage Guidelines5/5

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

It tells the agent to check status first via get_xero_invoice, states the only valid statuses, and gives an explicit when-not with the alternative: 'void it and create a new one' for contact/type changes. It also provides clear directives on when not to send lineAmountTypes and how to handle ambiguous bare-numeric dates.

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