Skip to main content
Glama
xero-mcp

xero-mcp

by david-buck

Edit draft quote

xero_update_draft_quote

Edit an existing Xero draft quote with its ID and expected revision, preserving omitted fields; replacing lineItems overwrites all lines. Review before saving—no send or status change.

Instructions

Edit only DRAFT using expectedRevision from xero_get_quote. Omitted fields are preserved; lineItems explicitly replaces ALL lines including discounts/tracking. Read and review before replacement. No send/status transition. External edits during the request cannot be locked.

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": {
      "quoteId": "<quoteId>",
      "expectedRevision": "<expectedRevision>"
    },
    "name": "xero_update_draft_quote"
  }
}

Input Schema

NameRequiredDescriptionDefault
termsNo
titleNo
quoteIdYes
summaryNo
contactIdNo
lineItemsNo
quoteDateNo
referenceNo
expiryDateNo
currencyCodeNo
currencyRateNo
lineAmountTypesNo
expectedRevisionYes

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, the description carries the full burden and does so well: it discloses patch semantics ("Omitted fields are preserved"), destructive replacement scope ("lineItems explicitly replaces ALL lines including discounts/tracking"), a warning to review before replacing, and a concurrency caveat ("External edits during the request cannot be locked"). It omits auth/permission requirements and what the call returns, which keeps it short of 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, front-loaded with the scope constraint and the destructive lineItems caveat ahead of secondary limits. The telegraphic fragments ("No send/status transition.") trade polish for density, but nothing is wasted.

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 13-parameter mutation with no annotations, no output schema, and zero schema descriptions, the definition covers the highest-risk semantics (draft-only scope, optimistic locking, line replacement, patch behavior). It still leaves most field-level meaning and the response shape to inference, which is a real gap at this complexity.

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 13 parameters, so the description must compensate. It does explain the two most consequential ones — expectedRevision's provenance in xero_get_quote and lineItems' full-replacement behavior — and "omitted fields are preserved" clarifies how every optional field behaves. The remaining fields (title, summary, terms, contactId, dates, currency, lineAmountTypes) get no semantic guidance beyond the schema's types and constraints.

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 ("Edit ... DRAFT") plus the scoping constraint that only draft quotes can be edited, which separates it from create/list/send operations. It stops short of naming a sibling tool as the alternative path, but the resource and state constraint are 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 a clear precondition ("using expectedRevision from xero_get_quote") that routes the agent to fetch the quote first, and explicitly excludes send/status transitions. It does not state what to use instead for non-draft quotes or for creating a quote, so the exclusion is implied rather than routed.

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