Skip to main content
Glama

Xero Void Invoice

xero_void_invoice

Voids a Xero invoice irrevocably; requires XERO_WRITE_ENABLED=true and confirm=true to proceed.

Instructions

Void an invoice. Irreversible. Requires XERO_WRITE_ENABLED=true and confirm=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_void_invoice"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmNoMust be true to void
invoice_idYesInvoice UUID

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.8/5.0
Behavior4/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 does the two most important things: it labels the operation irreversible and states the write-flag precondition. It does not say what actually happens to the record after voiding (status transition) or how linked payments/allocations are affected, 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.

Conciseness5/5

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

Three short sentences, front-loaded with purpose followed by the risk warning, then the preconditions. No wasted wording and the irreversibility warning appears before the mechanical requirements.

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?

For a two-parameter destructive mutation with an output schema available, the description covers purpose, irreversibility, and the write gate. The main omission is downstream effects on related records (payments, allocations) that an agent might need before committing.

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%, so both parameters are already documented in the schema. The description's note that confirm=true is required only restates the schema default/rationale, adding no new meaning beyond it. Baseline 3 is appropriate.

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?

The description opens with a specific verb+resource ("Void an invoice"), which is unambiguous and distinct by resource from the sibling void tools (xero_void_bill, xero_void_credit_note). It stops short of explicitly naming siblings, but the resource noun does the disambiguating work.

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?

It gives concrete preconditions (XERO_WRITE_ENABLED=true, confirm=true), which is genuinely useful gating guidance. However, it never says when to void versus other corrective actions (e.g., xero_update_invoice or a delete path), so the usage framing is implied rather than explicit.

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