Skip to main content
Glama
xero-mcp

xero-mcp

by david-buck

List Xero credit notes for a review period

xero_list_credit_notes

Lists a date-bounded page of customer or supplier credit notes with optional filters by type, status, or contact; paginate until nextPage is null to review all results.

Instructions

Read one date-bounded page of customer and supplier credit notes. Xero pages credit notes (up to 100 per page) and includes line items; follow nextPage until null for a complete result. Filter by customer/supplier type, status, or contact. Credit-note date is not necessarily its allocation or payment date. This is read-only.

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": {
      "fromDate": "<fromDate>",
      "toDate": "<toDate>"
    },
    "name": "xero_list_credit_notes"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoXero page number, starting at 1
typeNoCustomer credit note (ACCRECCREDIT) or supplier credit note (ACCPAYCREDIT)
statusNo
toDateYesDate in YYYY-MM-DD format
fromDateYesDate in YYYY-MM-DD format
pageSizeNoCredit notes per page (Xero supports up to 100)
contactIdNoXero ContactID to restrict the list to one customer or supplier

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.8/5.0
Behavior3/5

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

No annotations are supplied, so the description must carry the full behavioral burden. It does disclose read-only status, the 100-per-page cap, that line items are included, and the pagination termination condition — genuinely useful. It omits ordering of results, permission/auth requirements, and how an empty or truncated page behaves, leaving gaps for a tool with zero annotation coverage.

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

Conciseness4/5

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

Four sentences, front-loaded with the core action, and each adds information. One flaw: it tells the agent to follow 'nextPage' while the actual parameter is named 'page', a small terminology mismatch that could cause confusion.

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?

With no output schema and no annotations, the description does most of the necessary work: item contents (line items), page size, pagination loop, filters, and date semantics are all covered. Missing only result ordering and permission prerequisites, which are minor for a read-only list tool.

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 already 86%, so baseline is 3. The description adds meaning beyond the schema by explaining the filter dimensions (customer vs supplier type, status, contact) and, importantly, that the fromDate/toDate bound credit-note date rather than allocation or payment date — a semantic clarification the schema does not provide.

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 ('Read one date-bounded page of customer and supplier credit notes') with scope (one page, both customer and supplier types). It is clearly distinguishable from the single-record sibling xero_get_credit_note, though it never names an alternative explicitly.

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 operating instructions: follow nextPage until null for a complete result, filter by customer/supplier type, status, or contact. It also warns that credit-note date is not necessarily the allocation or payment date, which is real guidance. It stops short of naming an alternative tool or stating when not to use it.

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