Skip to main content
Glama

Xero Create Bill

xero_create_bill

Creates a purchase bill in Xero from a supplier contact and line items, with optional dates, reference, and DRAFT or AUTHORISED status. Requires write access.

Instructions

Create a purchase bill. 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_bill"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNoBill date (YYYY-MM-DD)
statusNoDRAFT or AUTHORISEDDRAFT
due_dateNoDue date (YYYY-MM-DD)
referenceNoReference number
contact_idYesSupplier contact UUID
line_itemsYesJSON array of line items

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full behavioral burden, and it does disclose one genuinely non-obvious gate: writes require XERO_WRITE_ENABLED=true. It says nothing about what the created bill looks like (the DRAFT default lives only in the schema), whether it is reversible, or what permissions are needed, leaving meaningful gaps for a 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 the action first and the blocker second; there is no filler and nothing that could be trimmed without losing information.

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?

The output schema covers return values, and the write-flag prerequisite is stated. But for an unannotated mutating tool with six parameters and a nested-JSON line_items field, the description is thin on side effects and on what the caller must have configured beyond the flag.

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 (date, status, due_date, reference, contact_id, line_items) is already documented in the input schema. The description adds no extra meaning such as line-item JSON shape or contact resolution behavior, so the baseline of 3 applies.

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 bill"), which distinguishes it from sales-side siblings like xero_create_invoice. It does not, however, explicitly route an agent away from nearby alternatives such as xero_create_purchase_order or xero_create_credit_note.

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 a prerequisite (XERO_WRITE_ENABLED=true), not a when-to-use statement. There is no mention of when a bill is the right document type versus an invoice, purchase order, or credit note, and no exclusions.

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