Skip to main content
Glama
mcp-server-xero

mcp-server-xero

E-mail invoice (Xero)

xero_send_invoice

Send an approved Xero sales invoice by email to the linked contact's own address; no custom recipient is allowed, and writes must be enabled.

Instructions

E-mail an approved sales invoice to the contact's own e-mail address in Xero (no receiver can be given). Off unless writes are enabled (XERO_ENABLE_WRITES, or the gateway host policy enableWrites).

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_send_invoice"
  }
}

Input Schema

NameRequiredDescriptionDefault
invoiceIdYesThe sales invoice.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare this is a non-read-only, open-world, non-idempotent, non-destructive operation, and the description adds genuinely useful context: the email goes to a fixed contact address and the call is gated behind a writes toggle. It does not warn that repeat calls will send duplicate e-mails (relevant given idempotentHint=false), nor describe error behavior for unapproved invoices. Good additions, but not complete.

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?

Two compact sentences, the core action and recipient constraint front-loaded before the enablement caveat. Every clause carries information; only the parenthetical could be folded more cleanly into the sentence.

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 action tool with no output schema, the description covers the precondition (approved invoice), the fixed recipient, and the write-gating requirement — enough to invoke it correctly. Missing details are secondary: duplicate-send risk on retry and what happens if the invoice is unapproved.

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?

There is a single parameter with 100% schema coverage, so the schema already defines invoiceId and its UUID pattern. The description contributes indirect meaning by clarifying that invoiceId implicitly determines the recipient, leaving the agent no choice of address. That is real added value but limited in scope, matching a baseline 3.

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 — 'E-mail an approved sales invoice' — plus a scoping constraint ('to the contact's own e-mail address... no receiver can be given') that instantly separates it from sibling mutation tools like xero_create_invoice or xero_approve_invoice. It does not name an alternative tool, but the action 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 clear preconditions for use: the invoice must already be approved, and the recipient cannot be chosen. It also tells the agent writes must be enabled via XERO_ENABLE_WRITES or the gateway enableWrites policy. It stops short of naming alternatives (e.g., attaching a PDF instead of e-mailing) or saying 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.