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 may approve it yourself only with approve_xero_pending_change, and only after the person has explicitly said to approve THIS change. 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.

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>"
    },
    "name": "update_xero_invoice"
  }
}

Input 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. Changed6 schema fields changed
    • removedInput schema / additionalProperties
      Removed value: -false
    • removedInput schema / properties / dueDate / $ref
      Removed value: -"#/properties/date"
    • addedInput schema / properties / dueDate / pattern
      Added value: +"^\\d{4}-\\d{2}-\\d{2}$"
    • addedInput schema / properties / dueDate / type
      Added value: +"string"
    • addedInput schema / properties / invoiceId / pattern
      Added value: +"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
    • removedInput schema / properties / lineItems / items / additionalProperties
      Removed value: -false
  2. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only say readOnlyHint=false, destructiveHint=false and openWorldHint=true; they do not reveal that the call merely queues a pending change requiring human approval in Invio. The description adds that non-obvious write-behind-approval model, the destructive-replacement semantics of lineItems, and the total-shifting effect of lineAmountTypes - all behavior an agent could not infer from structured fields.

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

Conciseness3/5

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

The critical fact (nothing changes until approval) is front-loaded, which is good, but the prose is dense and run-on, with heavy capitalization and several multi-clause sentences. The bare-numeric-date rule is explained at length in the description and again in two schema fields, so a meaningful share of the text is redundant rather than additive.

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 an eight-parameter mutation tool with no output schema, the definition covers the approval lifecycle, replacement semantics, status preconditions, field-omission behavior, and the one genuinely dangerous ambiguity (bare numeric dates) including the account's day-first locale. An agent has enough to call this correctly and warn the user appropriately.

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 and the schema already documents most parameters. The description still adds interpretive guidance the schema cannot: that omitted currency/lineAmountTypes are never reset to defaults, and that currency is validated against the organisation's configured invoice currencies. Some of the date nuance is duplicated verbatim between description and schema, which caps it below 5.

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 ("Proposes a change to an EXISTING Xero invoice") and immediately distinguishes itself from a direct write by saying it changes nothing in Xero on its own. That framing separates it from create_xero_invoice and from any implied direct-update sibling without needing their schemas.

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?

Gives explicit preconditions (invoice must be DRAFT or SUBMITTED, check with get_xero_invoice first), explicit exclusions (cannot change contact or invoice type - void and recreate instead), and routes approval to approve_xero_pending_change with a stated consent condition. This is about as complete a when/when-not/alternative set as a definition can carry.

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