Skip to main content
Glama
xero-mcp

xero-mcp

by david-buck

Get Xero invoice

xero_get_invoice

Fetch a Xero invoice by ID with line items and its revision for safe updates. Use it to review invoice details before editing or reconciling.

Instructions

Fetch one Xero invoice including line items and a revision required as expectedRevision for any update.

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": "xero_get_invoice"
  }
}

Input Schema

NameRequiredDescriptionDefault
invoiceIdYesXero InvoiceID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.6/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 burden. It does disclose two behavioral facts beyond the schema: line items are included in the payload, and the response contains a revision token that mutating tools require. It says nothing about failure behavior for an unknown invoiceId, permission requirements, or whether the payload is cached or live.

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?

A single front-loaded sentence with no filler; the payload contents and the revision token's downstream purpose are both packed in without redundancy.

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 one-parameter read tool with no output schema, the description covers the two return details an agent most needs: line items and the revision token needed for updates. Only error and permission behavior are absent, which is a modest gap for a simple getter.

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 coverage is 100% (invoiceId is typed, UUID-patterned and described), so the baseline is 3. The description adds no extra meaning about the identifier format or constraints beyond what the schema already states.

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?

States a specific verb and resource ('Fetch one Xero invoice') and scopes it to a single record with line items, which implicitly separates it from the list-style sibling xero_list_invoices. It does not explicitly distinguish itself from xero_get_invoice_pdf, leaving that pair to be inferred from names alone.

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 clause 'a revision required as expectedRevision for any update' gives a real usage tie-in: fetch this before calling an update tool. Beyond that hook there is no explicit when-to-use or when-not-to-use guidance, and no named alternative for retrieving the PDF or bulk listing.

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