Skip to main content
Glama
xero-mcp

xero-mcp

by david-buck

Create draft Xero sales invoice

xero_create_draft_invoice

Create a draft ACCREC sales invoice in Xero from a contact, invoice and due dates, and line items; it does not approve, email, or send invoices.

Instructions

Create an ACCREC sales invoice with status DRAFT only. It never approves, emails, or sends invoices.

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": {
      "contactId": "<contactId>",
      "invoiceDate": "<invoiceDate>",
      "dueDate": "<dueDate>",
      "lineItems": "<lineItems>"
    },
    "name": "xero_create_draft_invoice"
  }
}

Input Schema

NameRequiredDescriptionDefault
dueDateYesDue date as YYYY-MM-DD
contactIdYesXero ContactID
lineItemsYes
referenceNo
invoiceDateYesInvoice date as YYYY-MM-DD
currencyCodeNoOptional currency enabled in Xero; unit amounts use this currency. Omission uses the organisation base currency.
lineAmountTypesNoInvoice tax basis; omitted values use ExclusiveExclusive

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full behavioral burden. It usefully discloses the key side-effect profile (no approval, email, or send) but says nothing about permission/scopes required, idempotency or duplicate handling, how the invoice number is assigned, or what is returned for later update — meaningful gaps for a create-mutation tool.

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 with zero padding, and the most decision-relevant information (DRAFT only) is placed first. Every clause earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 7-parameter tool with a nested line-item array and no output schema, the description covers the safety semantics but omits what the caller gets back (presumably a draft invoice ID for follow-up update) and the contact-existence requirement. It is minimally adequate rather than complete.

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 description coverage is 71% and the description adds no parameter-level meaning at all. The non-obvious aspects of the schema — the description-only line-item variant with lineItemId, the Exclusive/Inclusive/NoTax tax basis, and the currency-vs-base-currency behavior — are documented in the schema, so a baseline 3 is appropriate, but the definition does not compensate for the remaining uncovered parameters.

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 ('Create an ACCREC sales invoice') plus a defining scope constraint ('status DRAFT only'), which separates it from xero_update_draft_invoice and xero_create_draft_quote without naming them. It is clear but leaves the sibling differentiation implicit rather than explicit.

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?

'It never approves, emails, or sends invoices' functions as a when-not boundary and implies downstream steps handled elsewhere. However, no positive guidance is given on prerequisites (e.g., needing an existing contactId, or looking one up via xero_find_contact) or on which alternative tool to use if the caller wants a non-draft invoice.

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