Skip to main content
Glama
xero-mcp

xero-mcp

by david-buck

Create draft quote

xero_create_draft_quote

Creates a draft Xero quote with explicit contact, dates, currency, and line-item tax/account codes, leaving sending and acceptance to you.

Instructions

Create DRAFT only; never send, accept or invoice. Currency, dates, tax basis and monetary line tax/account codes are explicit. Xero calculates totals and any omitted currency exchange rate. Reconcile an uncertain creation before retrying.

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>",
      "title": "<title>",
      "summary": "<summary>",
      "terms": "<terms>",
      "quoteDate": "<quoteDate>",
      "expiryDate": "<expiryDate>",
      "currencyCode": "<currencyCode>",
      "lineAmountTypes": "<lineAmountTypes>",
      "lineItems": "<lineItems>"
    },
    "name": "xero_create_draft_quote"
  }
}

Input Schema

NameRequiredDescriptionDefault
termsYes
titleYes
summaryYes
contactIdYes
lineItemsYes
quoteDateYes
referenceNo
expiryDateYes
currencyCodeYes
currencyRateNo
lineAmountTypesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations present, the description carries the full burden and does disclose meaningful behavior: the object is left in DRAFT status, Xero computes totals and any omitted currency rate server-side, and ambiguous outcomes should be reconciled before retrying. It omits permission/auth requirements and what happens on validation failure, which keeps it from a 5.

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 short sentences with the most important constraint (DRAFT only) front-loaded and no filler. The clause 'Currency, dates, tax basis and monetary line tax/account codes are explicit' is dense to the point of being slightly cryptic but 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 an 11-parameter mutation tool with no annotations and no output schema, the description covers the safety-critical traits but leaves real gaps: no mention of what the call returns (e.g., an identifier needed for later update), no prerequisite that contactId resolve to an existing contact, and no coverage of the optional fields.

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 0% across 11 parameters, so the description must compensate, and it only partly does: it clarifies that currency, dates, tax basis (lineAmountTypes) and monetary fields including line tax/account codes are explicit, and that currencyRate may be omitted. It says nothing about contactId, title, summary, terms, reference, quantity, unitAmount or the minimal line-item form.

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 DRAFT') and immediately bounds the scope with 'never send, accept or invoice', which separates it from quote lifecycle actions an agent might otherwise assume. It does not explicitly name siblings such as xero_update_draft_quote or xero_create_draft_invoice, so it stops short of full differentiation.

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 a clear when-to-use (draft creation) and a when-not ('never send, accept or invoice'), plus retry guidance: 'Reconcile an uncertain creation before retrying.' It does not point to an alternative tool for the send/update path, so the agent must infer that from sibling names.

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