Skip to main content
Glama
xero-mcp

xero-mcp

by david-buck

Get Xero credit note details

xero_get_credit_note

Retrieve a Xero credit note by ID to view line items, invoice allocations, payments, remaining credit, and key identifiers; read-only.

Instructions

Read one credit note by Xero CreditNoteID, including lines, allocations to invoices, payments, remaining credit, and key identifiers. 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": {
      "creditNoteId": "<creditNoteId>"
    },
    "name": "xero_get_credit_note"
  }
}

Input Schema

NameRequiredDescriptionDefault
creditNoteIdYesXero CreditNoteID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and it explicitly declares the operation read-only, which is the single most important behavioral fact for a mutating-risk tool. It also discloses the returned content. It stops short of covering auth scope requirements or what happens for an invalid, voided, or deleted credit note ID.

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?

Two short sentences, zero filler, with the core action front-loaded and the read-only safety note as a compact trailing clause. Nothing here could be cut without losing information.

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?

Because there is no output schema, the enumeration of returned fields does real work in telling the agent what to expect. For a one-parameter read tool that is nearly complete; only error/not-found behavior and whether allocations are fully expanded are left unaddressed.

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% for the single parameter, and the description only restates 'by Xero CreditNoteID' with no added format, sourcing, or lookup guidance. Baseline 3 applies because the schema already does the work.

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?

The description gives a specific verb and resource ('Read one credit note by Xero CreditNoteID') and scopes the operation to a single entity, which cleanly separates it from xero_list_credit_notes. It also enumerates the payload (lines, allocations, payments, remaining credit, identifiers) so an agent knows what it gets back without opening the schema.

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?

Usage is only implied: the required Xero CreditNoteID signals this is a fetch-by-known-id tool, so an agent would infer that listing/searching should happen first. There is no explicit 'use this when you already have an ID, use xero_list_credit_notes otherwise' routing, and no mention of prerequisites or failure cases.

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