Skip to main content
Glama
xero-mcp

xero-mcp

by david-buck

List Xero invoices

xero_list_invoices

Retrieve a paginated list of Xero invoices, newest first, and filter by contact or exact invoice number; include line items to support contact billing lookups in one response.

Instructions

List one page of invoices, newest by invoice date first. Optional contact and exact invoice-number filters combine. Use includeLineItems for a contact billing lookup with full invoice details in one response. Increment page until fewer than limit records are returned.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "xero_list_invoices"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage of matching invoices to return
limitNoMaximum invoices to return
contactIdNoOptional Xero ContactID filter
invoiceNumberNoExact invoice number; commas are not supported
includeLineItemsNoInclude full line items for compact contact billing lookup

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A4.1/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 burden and does well: it discloses the default sort order (newest invoice date first), that the filters are AND-combined, and the exact pagination termination rule. It omits permissions/scopes and the shape or size of returned invoice records, leaving some behavioral gaps.

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?

Four short sentences, front-loaded with sort and scope, then filters, then the line-items option, then pagination mechanics. Every sentence carries actionable information with no filler.

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 read-only list tool with zero annotations and no output schema, the description covers ordering, filtering, pagination, and the optional expansion flag adequately. It could say more about what an invoice record contains, but an agent has enough to call it correctly.

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 baseline is 3; the description adds real meaning by specifying that contact and invoice-number filters combine and that invoiceNumber is exact, plus explaining the page/limit termination logic. The clarification of the includeLineItems use case is also value beyond the schema's one-line description.

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?

Clear verb and resource ('List one page of invoices') with scope (paginated, newest by invoice date first) stated immediately. It does not distinguish itself from siblings like xero_list_period_invoices or xero_get_invoice, so an agent must infer the boundary, but the core purpose is unambiguous.

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

Usage Guidelines4/5

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

Gives concrete usage context: filters combine, use includeLineItems for a contact billing lookup, and increment page until fewer than limit records return. It stops short of explicit when-not-to-use or naming an alternative tool, but the operational guidance for correct invocation is clear.

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