Skip to main content
Glama
mcp-server-xero

mcp-server-xero

README.md
# mcp-server-xero

A [Model Context Protocol](https://modelcontextprotocol.io) server for [Xero](https://www.xero.com), the online accounting system. It lets an MCP client (Claude or any other MCP-capable assistant) read the contacts, invoices, bills, credit notes, payments, bank transactions, items, quotes, purchase orders, manual journals and reports of one Xero organization and, when enabled, do the everyday work in it: keep contacts and items, draft, approve and e-mail invoices, handle bills and credit notes, register payments in the accounts, make quotes, purchase orders and manual journals, and attach files.

> This is an independent, unofficial project. It is not developed, endorsed or supported by Xero. It uses only Xero's public Accounting API.

- Read-only by default; writes are opt-in per instance. Which writes a person may make is the embedding host's decision; the server covers the API a bookkeeper, a salesperson and a purchaser use every day.
- Deletion is only of drafts, checked on the record right before the delete. Nothing approved, posted, paid or sent is deleted or voided. The chart of accounts, tax rates, users and the organization's settings are read only or not touched. No tool pays anyone or moves money, no tool takes a receiver of money or mail, and bank details are neither shown nor sent, whatever the configuration.
- One organization per instance: its tenant id goes on every request, and no tool input can name another.
- Two transports: stdio for local clients, stateless streamable HTTP for containers and gateways.
- Embeddable: the `./gateway` export exposes the same tools, validation, policy and audit to a host application.

## Tools

| Tool | Purpose |
|---|---|
| `xero_check_connection` | Whether the connection covers the organization and Xero shows it; on failure a reason code and what to do. |
| `xero_get_organisation` | The organization: name, country, base currency, financial year, tax settings. |
| `xero_list_contacts` / `xero_get_contact` | Customers and suppliers, by name, number or e-mail. |
| `xero_create_contact` / `xero_update_contact` *(write)* | Create or change a contact (no bank details); the change answers with the old values. |
| `xero_list_invoices` / `xero_get_invoice` | Sales invoices (ACCREC) and bills (ACCPAY), by type, status, contact, date, due date or search. |
| `xero_create_invoice` *(write)* | Create an invoice or bill: a draft, submitted for approval or approved. |
| `xero_update_invoice` *(write)* | Change an invoice or bill that is a draft or waiting for approval. |
| `xero_approve_invoice` *(write)* | Approve an invoice or bill. |
| `xero_send_invoice` *(write)* | E-mail an approved sales invoice to the contact's own address in Xero (no receiver can be given). |
| `xero_delete_invoice_draft` *(delete)* | Delete an invoice or bill that is a draft or waiting for approval. |
| `xero_list_credit_notes` / `xero_get_credit_note` | Credit notes to customers and from suppliers. |
| `xero_create_credit_note` / `xero_update_credit_note` / `xero_approve_credit_note` *(write)* | Make, change and approve a credit note. |
| `xero_allocate_credit_note` *(write)* | Use an approved credit note against an approved invoice or bill. |
| `xero_delete_credit_note_draft` *(delete)* | Delete a draft credit note. |
| `xero_list_payments` / `xero_get_payment` | Payments on invoices, bills and credit notes. |
| `xero_register_payment` *(write)* | Register in the accounts a payment made on an approved invoice or bill; moves no money. |
| `xero_list_bank_transactions` / `xero_get_bank_transaction` | Spend and receive money on the bank accounts. |
| `xero_list_accounts` | The chart of accounts, read only (bank account numbers left out). |
| `xero_list_tax_rates` / `xero_list_tracking_categories` | Tax rates and tracking categories, read only. |
| `xero_list_items` / `xero_get_item` | Items. |
| `xero_create_item` / `xero_update_item` *(write)* | Create or change an item. |
| `xero_list_quotes` / `xero_get_quote` | Quotes. |
| `xero_create_quote` / `xero_update_quote` *(write)* | Create a draft quote, change a draft. |
| `xero_delete_quote_draft` *(delete)* | Delete a draft quote. |
| `xero_list_purchase_orders` / `xero_get_purchase_order` | Purchase orders. |
| `xero_create_purchase_order` / `xero_update_purchase_order` / `xero_approve_purchase_order` *(write)* | Make, change and approve a purchase order. |
| `xero_delete_purchase_order_draft` *(delete)* | Delete a purchase order that is a draft or waiting for approval and was never sent. |
| `xero_list_manual_journals` / `xero_get_manual_journal` | Manual journals. |
| `xero_create_manual_journal` / `xero_update_manual_journal` / `xero_post_manual_journal` *(write)* | Make, change and post a manual journal; the lines must balance. |
| `xero_delete_manual_journal_draft` *(delete)* | Delete a draft manual journal. |
| `xero_list_attachments` | The files on an invoice, credit note, bank transaction, contact, manual journal, quote or purchase order. |
| `xero_attach_file` *(write)* | Attach a file (PDF, image, CSV, text, Word or Excel; at most 10 MB) to one of those. |
| `xero_get_balance_sheet` / `xero_get_profit_and_loss` / `xero_get_trial_balance` | Reports. |
| `xero_get_aged_receivables` / `xero_get_aged_payables` | What one customer owes, or what is owed to one supplier, by age. |

Every change to an existing record reads it first and checks its status: an approved, paid, posted or sent document is refused with our own text, and nothing is sent. A delete sets the status of a draft to DELETED and answers with `deleted` and the record's number and status under `before`. Answers keep Xero's field names, with Xero's dates (`/Date(...)/`) as ISO dates, the duplicate `...DateString` fields dropped, and Xero's `ValidationErrors` and `Warnings` reduced to their number.

Not covered yet: receive and spend money (creating bank transactions), bank transfers, prepayments and overpayments, repeating invoices, contact groups, archiving a contact, history and notes, downloading an attachment or a PDF, and the Files, Assets and Projects APIs. Xero's expense claims and receipts endpoints are retired; use bills (ACCPAY) with an attached file.

## Access to Xero

The server uses Xero's OAuth 2.0 authorization code flow for a web app ([Xero's guide](https://developer.xero.com/documentation/guides/oauth2/auth-flow)):

1. The integrator creates an app at [developer.xero.com](https://developer.xero.com/app/manage) as a *Web app* with a redirect URI. The client id and secret are kept in the host's secret store or the server environment, never in a repository.
2. A person with access to the organization signs in to Xero and connects the organization to the app, with the scopes `offline_access` and the accounting scopes the tools need: `accounting.settings`, `accounting.contacts`, `accounting.attachments`, `accounting.reports.read`, and for apps created after 2 March 2026 the granular `accounting.invoices`, `accounting.payments`, `accounting.banktransactions` and `accounting.manualjournals` (older apps use `accounting.transactions`) ([scopes](https://developer.xero.com/documentation/guides/oauth2/scopes/)).
3. The host keeps the refresh token from that and the organization's tenant id from `GET https://api.xero.com/connections`.

The server exchanges the refresh token for an access token of 30 minutes at `identity.xero.com`. **Xero hands out a new refresh token at every renewal, and the old one stops working** (after a grace period of 30 minutes); a refresh token not used for 60 days expires. The server uses the new token at once and gives it to the host (`onRefreshToken` on the gateway), or writes it back to `XERO_REFRESH_TOKEN_FILE`. A refresh token belongs to the connection, and one connection can cover several organizations: a host should keep one renewal at a time per refresh token, so two instances (also for two organizations of the same connection) never renew the same one.

Xero has no Danish edition; Danish companies use the global edition with their own tax rates.

## Data

- **No AI training.** Data from Xero is not used to train, fine-tune or improve any AI model, as Xero's developer terms require (section 7(b)(i), "API Data cannot be used to train, fine tune, adapt, or enhance any AI Models"). The server passes answers to the MCP client that asked and keeps nothing.
- **Nothing is stored.** The server keeps no answers, not even briefly in memory between calls. Only the access token lives in memory for its lifetime.
- **Passed on only at the user's request.** Answers go only to the client of the person who called the tool (section 7(b)(ii) of the terms requires the user's consent to pass data to a third party).
- **The audit log** (when enabled) holds ids, dates, codes and flags, never names, amounts or free text.

## Quick start

Requires Node.js 22 or later, a Xero app and a connected organization (see [Access to Xero](#access-to-xero)).

```bash
npx mcp-server-xero
```

Or build from source:

```bash
git clone https://github.com/borgels/mcp-server-xero.git
cd mcp-server-xero
npm ci
npm run build
```

Claude Code:

```bash
claude mcp add xero \
  --env XERO_TENANT_ID=<tenant id> --env XERO_CLIENT_ID=<client id> \
  --env XERO_CLIENT_SECRET=<client secret> --env XERO_REFRESH_TOKEN_FILE=<path to a file with the refresh token> \
  -- npx -y mcp-server-xero
```

Claude Desktop (`claude_desktop_config.json`), or any client that launches stdio servers:

```json
{
  "mcpServers": {
    "xero": {
      "command": "npx",
      "args": ["-y", "mcp-server-xero"],
      "env": {
        "XERO_TENANT_ID": "<tenant id>",
        "XERO_CLIENT_ID": "<client id>",
        "XERO_CLIENT_SECRET": "<client secret>",
        "XERO_REFRESH_TOKEN_FILE": "<path to a file with the refresh token>"
      }
    }
  }
}
```

### Docker and HTTP

Images are published to `ghcr.io/borgels/mcp-server-xero`: `latest` and the commit SHA from `main`, and `vX.Y.Z` for release tags. The container serves streamable HTTP at `/mcp` on port 3000, plus an unauthenticated `GET /healthz`.

```bash
TOKEN=$(openssl rand -hex 32); echo "$TOKEN"
docker run -d --name xero-mcp -p 127.0.0.1:3000:3000 \
  -v xero-data:/data -e XERO_REFRESH_TOKEN_FILE=/data/refresh-token \
  -e XERO_TENANT_ID=<tenant id> -e XERO_CLIENT_ID=<client id> -e XERO_CLIENT_SECRET=<client secret> \
  -e MCP_HTTP_TOKEN="$TOKEN" \
  ghcr.io/borgels/mcp-server-xero:latest

claude mcp add --transport http xero http://127.0.0.1:3000/mcp \
  --header "Authorization: Bearer $TOKEN"
```

To keep an audit log in the container, mount a writable directory and point `XERO_AUDIT_LOG` into it (e.g. `-v xero-audit:/audit -e XERO_AUDIT_LOG=/audit/audit.jsonl`); the image runs as the `node` user and `/app` is not writable.

Clients send `Authorization: Bearer <MCP_HTTP_TOKEN>`. The server will not start on a non-loopback address without a token of at least 32 characters. It does not terminate TLS; run it behind a reverse proxy or gateway that does.

## Configuration

Configuration is read from the environment (see `.env.example`). Invalid numbers, booleans, URLs and unknown tool names stop the server at startup. Booleans accept `true`/`false`, `1`/`0`, `yes`/`no` and `on`/`off`.

### Upstream API

| Variable | Default | Description |
|---|---|---|
| `XERO_TENANT_ID` | – | **Required.** The organization's tenant id (a GUID from `https://api.xero.com/connections`). |
| `XERO_CLIENT_ID` | – | **Required.** Client id of the Xero app. |
| `XERO_CLIENT_SECRET` | – | **Required.** Client secret of the Xero app. |
| `XERO_REFRESH_TOKEN` | – | The refresh token. Set this or `XERO_REFRESH_TOKEN_FILE`. |
| `XERO_REFRESH_TOKEN_FILE` | – | A file that holds the refresh token; each new one is written back to it (owner-only). |
| `XERO_BASE_URL` | `https://api.xero.com` | Base URL of the API. Must be `https` (loopback `http` is allowed for local mocks). |
| `XERO_TOKEN_URL` | `https://identity.xero.com/connect/token` | Token address. |
| `XERO_ALLOW_CUSTOM_BASE_URL` | `false` | Allow addresses other than Xero's. |
| `XERO_TIMEOUT_MS` | `30000` | Timeout per request attempt. |
| `XERO_MAX_CONCURRENCY` | `4` | Maximum concurrent requests (Xero allows 5 per organization). |
| `XERO_MAX_CALLS_PER_MINUTE` | `55` | Most requests in any 60 seconds (Xero allows 60 per organization). |
| `XERO_MAX_RESPONSE_BYTES` | `10485760` | Largest response body read (at most 100 MB). |

### Access control

| Variable | Default | Description |
|---|---|---|
| `XERO_ENABLE_WRITES` | `false` | Enable the write tools. |
| `XERO_DISABLED_TOOLS` | – | Comma-separated tool names to disable, with or without the `xero_` prefix. |
| `XERO_AUDIT_LOG` | – | Path of a JSONL audit log: one record per tool call start, finish and error, with GUIDs, dates, codes and flags in clear text, no free text or search, the number of lines of a document, duration, status and the caller passed by an embedding host. Write tools refuse to run if the log cannot be written. |

### HTTP transport

| Variable | Default | Description |
|---|---|---|
| `MCP_HTTP_TOKEN` | – | Bearer token, at least 32 printable ASCII characters (also on loopback). Required unless bound to loopback. |
| `MCP_HTTP_HOST` or `HOST` | `127.0.0.1` (`0.0.0.0` in the image) | Bind address; `MCP_HTTP_HOST` takes precedence. |
| `PORT` | `3000` | Listen port. |
| `MCP_ALLOWED_ORIGINS` | localhost origins | Comma-separated browser origins allowed to call the server. |
| `MCP_ALLOW_ANY_ORIGIN` | `false` | Allow any origin; requires a token. |
| `MCP_ALLOWED_HOSTS` | loopback names on a loopback bind | Comma-separated accepted `Host` header names. |
| `MCP_MAX_BODY_BYTES` | `10485760` | Maximum request body. |
| `MCP_AUTH_FAILURE_LIMIT`, `MCP_AUTH_FAILURE_WINDOW_MS` | `20`, `60000` | Failed-authentication limit per client address; `0` disables it. |
| `MCP_HTTP_ALLOW_UNAUTHENTICATED` | `false` | Permit a non-loopback bind without a token. Only for isolated networks. |

## Rate limits and retries

Xero allows 5 concurrent calls, 60 calls a minute and 1,000 (Starter) or 5,000 calls a day per organization, and 10,000 a minute per app ([limits](https://developer.xero.com/documentation/guides/oauth2/limits/)). The client runs at most 4 requests at once and 55 in any minute, and waits for a free place when that fits in its retry budget. GETs are retried on 429, 502, 503 and 504 and on transient network errors, honouring `Retry-After`, within a budget of 10 seconds. Every write carries an `Idempotency-Key` and is sent again only on 429, with the same key; a write that timed out, failed on the network or got a 5xx is never sent again. A 429 for the day's limit is not retried, and the error says which limit was reached.

## Embedding (`./gateway`)

A host application can run the tools in-process instead of over MCP:

```ts
import { createXeroGateway, xeroToolCatalog } from 'mcp-server-xero/gateway';

const gateway = createXeroGateway({
  tenantId: connection.tenantId,
  clientId: app.clientId,
  clientSecret: app.clientSecret,
  refreshToken: connection.refreshToken,
  onRefreshToken: token => saveForConnection(token),
  policy: { enableWrites: true, disabledTools: [] },
});
const result = await gateway.callTool('list_invoices', { type: 'ACCREC', statuses: ['AUTHORISED'] }, { caller: 'user-1' });
```

- **Explicit credentials.** `tenantId`, `clientId`, `clientSecret` and `refreshToken` are required; a missing value throws when the gateway is created. The secrets pass key admission. A gateway never reads `XERO_*` credentials or addresses from the environment, so one tenant cannot silently fall back to the process's credentials. The stdio and HTTP transports still read them from the environment.
- **Save every new refresh token.** Xero rotates the refresh token at every renewal; `onRefreshToken` is called with the new one as soon as Xero hands it out (the call does not wait for a promise it returns, and a callback that fails does not fail the call). A host that does not save it loses the connection when the old token expires.
- **Several tenants in one process.** Create one gateway per organization; organizations that share a connection share its refresh token, so renew it for one of them at a time. The limits of calls at once and a minute are per instance. Each instance redacts error text, tool results and audit records with its own secrets only; no secret is kept in a process-wide registry, and a dropped instance releases them.
- **Instance policy from the host.** Pass `policy` to `createXeroGateway`: `enableWrites` (default false), `disabledTools` (must name known tools) and `audit`, a function that receives each audit record instead of `XERO_AUDIT_LOG` (without it the instance writes no audit; a write tool does not run if the sink throws on its start record). An instance with `policy` reads none of `XERO_ENABLE_WRITES`, `XERO_DISABLED_TOOLS`, `XERO_AUDIT_LOG` or `XERO_ALLOW_CUSTOM_BASE_URL`. Each call runs in a scope of its own, and every audit record is redacted as a whole with the instance's own secrets before the sink sees it. The limits (`XERO_TIMEOUT_MS`, ...) are still read from the environment. Per-user and per-tenant authorization is the host's job.
- **Result format.** A successful `callTool` result has `structuredContent` and one text block: a short summary, a blank line, and the same data as compact JSON. An error result has only its text, and, when Xero answered with an HTTP error (or a redirect, which is refused), `failure: { httpStatus, requestId? }`: the status and Xero's correlation id when it is a hex id. Never the response body, Xero's error code or message.
- **Changes for a host log.** `resolveXeroChange(tool, input)` (and `gateway.resolveChange`) says what a write will change before it is sent: the action (`create`, `update`, `approve`, `post`, `delete`, `send`, `register_payment`, `allocate`, `attach`), the record and only GUIDs, dates, counts, codes, flags and the names of changed fields, never names, amounts or texts. No tool moves money, so `movesMoney` and `requiresConfirmation` are false for all.
- **Tool catalog.** `xeroToolCatalog` is a frozen list of every tool: `name` (without the `xero_` prefix), `title`, `description`, `riskLevel` (`read`, `write` or `destructive`), `enabledByDefault`, `inputSchema` (JSON Schema), `broad` (false for every tool here), `requiresConfirmation`, `change` and `upstream`, the API requests the tool may make (`access`, `method` and path template). It is generated from the same tool table as the MCP server.

## Threat model

What this server guarantees about the secrets (client secret, refresh token, access token), and what it does not. It is the yardstick for every change that touches errors, results or audit.

**Scope.** Guarantees (a), (b) and (c) apply to the embeddable gateway (`./gateway`), the surface a multi-tenant host uses. The standalone MCP server, configured from the environment for one organization, keeps best-effort redaction: its errors and audit records are redacted with its secrets, but it is not held to these guarantees.

**Guaranteed:**

- **(a) The secrets never reach anything persisted or shared:** audit sinks and the audit log file, logs, error texts, export hooks or files. Errors are our own texts; audit records and everything a gateway instance returns are redacted with the instance's own secrets before they leave it.
- **(b) No vendor-controlled free text in errors.** An error carries our own fixed text, the HTTP status, numbers we parse (Retry-After), and codes from a fixed list we wrote down (the rate limit that was reached, a document status); never a response body, a vendor message or code, a redirect's `Location`, or the message of an error thrown while reading a response. Messages Xero puts inside a successful answer (`ValidationErrors`, `Warnings`) are reduced to their number. Errors never quote a configuration value.
- **(c) Results go only to the tenant whose credentials they are.** One gateway instance per organization; its tenant id is fixed when it is created and goes on every request; every call runs in a scope of its own; nothing about a tenant is kept in process-wide state.

**Not guaranteed (residual risk):** a vendor that deliberately echoes a secret back in data. Results are redacted on a best-effort basis: the exact secret, its URL- and JSON-encoded forms and any piece of it of 6 characters or more, in strings, object keys and the string form of numbers and booleans, are replaced by `"‹redacted›"` before anything is serialised. A secret that comes back otherwise transformed is not recognised. **What leaves a gateway holds no piece of a secret**: every output (the tool list, every result as a whole, audit records and stderr lines, construction errors) is checked in its final form and replaced by a fixed fallback (`src/fallbacks.ts`) when it holds one.

**Key admission.** A gateway accepts only secrets of printable ASCII (0x21-0x7E) of at least 16 characters that share no piece of 6 characters with a string literal in `src/` (`src/fixed-corpus.generated.ts`, kept up to date by a test). The refusal is a fixed text that never repeats the secret.

## Security model

- **One shared identity.** Every caller acts with the rights of the Xero user who connected the organization. Writes are limited to those in the tool table, and the client refuses any other write path (`ALLOWED_WRITES`) and any write body with bank details or a status that voids (`writeBodyRefusal`) before it is sent.
- **Per-user authorization belongs in front of the server.** The server checks a single bearer token and does not know the end user. For multi-user use, run it behind an identity-aware gateway that decides which users may call which tools, or embed the tools through `./gateway` and pass the caller identity into the audit log.
- **Tool access is not data access.** A gateway controls who may call which tool; every permitted caller still sees everything the connection can see.
- **Writes are off by default.** Write tools are annotated as writes (not read-only); the delete tools are also annotated as destructive and check the record right before the delete. Read-only tools get a client that refuses non-GET requests. When `XERO_AUDIT_LOG` is set, a write tool does not run unless its start record is written.
- **Upstream content is untrusted input.** Data returned by the API may be written by anyone with access to the organization. Tool results label it as data.
- **Tokens stay on Xero's hosts.** Redirects are never followed, the addresses must use `https` on `api.xero.com` and `identity.xero.com`, and error messages and audit records are redacted and size-capped.
- **The HTTP transport fails closed.** It refuses to start on a non-loopback address or with any origin allowed unless a token is set, compares tokens in constant time, throttles failed authentication per client address, checks `Origin` and `Host` (DNS rebinding), and caps request bodies.

Report vulnerabilities as described in [SECURITY.md](SECURITY.md).

## Sources

Everything here is built from Xero's public documentation; no Xero account was used to build it, and the tests run against a fake Xero with answers shaped as documented.

- The Accounting API's OpenAPI document: <https://github.com/XeroAPI/Xero-OpenAPI> (`xero_accounting.yaml`).
- The Accounting API: <https://developer.xero.com/documentation/api/accounting/overview>.
- OAuth 2.0: <https://developer.xero.com/documentation/guides/oauth2/auth-flow>, scopes <https://developer.xero.com/documentation/guides/oauth2/scopes/>, tokens <https://developer.xero.com/documentation/best-practices/data-integrity/managing-tokens>.
- Limits: <https://developer.xero.com/documentation/guides/oauth2/limits/>.
- Idempotent requests: the `Idempotency-Key` header in the OpenAPI document.
- Developer terms: <https://developer.xero.com/xero-developer-platform-terms-conditions>.

## Development

```bash
npm run dev          # stdio transport
npm run dev:http     # HTTP transport on 127.0.0.1:3000
npm run typecheck
npm test
npm run build
```

Project layout:

| Path | Contents |
|---|---|
| `src/tools/xero.ts` | Shared tool table (MCP and gateway), policy and audit wrapper. |
| `src/xero/resources.ts` | The reads and how every answer is cleaned. |
| `src/xero/changes.ts` | The changes, with the status checks before each. |
| `src/xero/client.ts` | Upstream client: OAuth, tenant header, allowed writes, rate limit, retries. |
| `src/xero/` | Policy, audit, tool annotations, value rules. |
| `src/transports/` | stdio and HTTP entry points; HTTP auth, origin and host checks. |
| `src/gateway.ts` | Embeddable entry point (`./gateway` export). |
| `src/config-env.ts` | Validated environment readers. |

## Releasing

1. Bump the version in `package.json`, `server.json` (`version` and the npm package `version`) and `src/version.ts`; tests and CI check that they agree. Update `CHANGELOG.md`. Merge.
2. Tag the merged commit and push the tag: `git tag vX.Y.Z && git push origin vX.Y.Z`.
3. `release.yml` tests, packs and publishes the tarball to npm through trusted publishing, then publishes `server.json` to the MCP Registry. `publish.yml` pushes the `vX.Y.Z` image.

The first version of a new package is published by hand; see the header of `.github/workflows/release.yml` (and [docs/NEW-SERVER.md](docs/NEW-SERVER.md)).

## License

The code is source-available under the [Functional Source License, Version 1.1, ALv2 Future License](LICENSE) (FSL-1.1-ALv2).

In plain words:

- **Allowed:** reading the code, running it, changing it, using it inside your own organisation (also commercially), using it for non-commercial education and research, and contributing changes back.
- **Not allowed:** making it, or something built from it, available to others as a commercial product or service that competes with it, for example a hosted service with the same functionality.
- **Becomes Apache-2.0:** each version is also licensed under the Apache License 2.0 from two years after it is released.

The terms in [LICENSE](LICENSE) are what apply; this summary does not replace them.

TDQS

B3.4/5.0

Scored across 56 tools

Disambiguation4/5

Each tool maps to a distinct Xero resource plus action (list_invoices vs get_invoice vs approve_invoice vs delete_invoice_draft), and the draft-only delete variants are clearly distinguished from approval. Minor overlap remains between aggregate reports (get_aged_receivables vs list_invoices, get_trial_balance vs get_balance_sheet), but descriptions make the boundary understandable.

Naming Consistency5/5

Every tool follows the same xero_<verb>_<noun> snake_case pattern (list_, get_, create_, update_, approve_, delete_*_draft, attach_file), with a consistent xero_ prefix that also namespaces it. Action verbs are used uniformly across all resource families.

Tool Count2/5

56 tools is far above what an agent can scan and select from reliably, even for a broad accounting domain. The resource-by-resource symmetry (five lifecycle verbs times seven resources) inflates the surface; read-only helpers and lifecycle verbs could be consolidated.

Completeness4/5

Coverage is strong: full lifecycle for invoices, credit notes, quotes, purchase orders, manual journals, contacts and items, plus payments, allocations, attachments and core financial reports. Gaps exist — no void invoice, no delete/update of payments, no way to create or edit bank transactions, and no user/contact-group management — but they are workaroundable outside the server.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues