Skip to main content
Glama

Xero Create Purchase Order

xero_create_purchase_order

Create a Xero purchase order for a supplier using a contact ID and JSON line items, with optional dates and reference; requires XERO_WRITE_ENABLED=true.

Instructions

Create a purchase order. Requires XERO_WRITE_ENABLED=true.

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": {
      "contact_id": "<contact_id>",
      "line_items": "<line_items>"
    },
    "name": "xero_create_purchase_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNoPO date (YYYY-MM-DD)
referenceNoReference
contact_idYesSupplier contact UUID
line_itemsYesJSON array of line items
delivery_dateNoExpected delivery date

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden, and it does disclose the meaningful write-enabled configuration gate, which is real value beyond the schema. However, it says nothing about the resulting state of the PO (draft vs. sent/approved), whether the call is idempotent, or what happens when the write flag is false.

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 short sentences, action first and prerequisite second, with no filler. It is efficiently front-loaded, though the extreme brevity borders on under-specification for a mutation tool.

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?

An output schema exists, so return values need not be explained, and all five parameters are covered by the schema. For a write operation with no annotations, though, the description omits the post-creation state, required contact type, and failure behavior, leaving meaningful gaps.

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 100%, so every parameter including the awkwardly typed 'line_items' (a JSON string) is already documented in the schema, establishing a baseline of 3. The description adds no format hints or constraints beyond that, so it neither helps nor hurts.

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?

The description states a specific verb and resource ('Create a purchase order'), which is unambiguous and distinguishable from sibling creators such as xero_create_bill or xero_create_invoice. It stops short of explicitly contrasting itself with those siblings, so it lands at 4 rather than 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The only guidance is the prerequisite 'Requires XERO_WRITE_ENABLED=true', which is a gating condition rather than when-to-use guidance. Nothing tells the agent when to create a purchase order instead of a bill, or what preconditions (e.g. supplier contact existing) apply.

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