Skip to main content
Glama

xero_create_invoice

Create a draft invoice in Xero by providing a contact ID and line items (description, quantity, unit_amount, account_code). Optionally set due date and reference.

Instructions

Create a draft invoice in Xero. Use the contact ID from xero.list_contacts; line items reference Xero account codes.

Args: contact_id (required): Xero contact ID. line_items (required): JSON-string list of line items: [{description, quantity, unit_amount, account_code}]. due_date: Due date (YYYY-MM-DD). reference: Customer-facing invoice reference.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
contact_idNo
line_itemsNo
due_dateNo
referenceNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

No annotations are provided, so the description carries the full burden. It only mentions 'draft invoice,' implying no finalization, but lacks details on error handling, side effects, or authentication needs. For a mutation tool, more behavioral context is needed.

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?

The description is concise, with a clear front-loaded purpose followed by parameter details. Every sentence is useful, and there is no extraneous information.

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

Completeness4/5

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

All parameters are explained, and prerequisites are mentioned. With an output schema present, return values need no explanation. Minor gaps remain (e.g., success behavior, errors), but overall it is fairly complete for the tool's 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 coverage is 0%, but the description adds meaning for two parameters (contact_id, line_items) with format details. However, it incorrectly marks them as required while the schema allows null. This inconsistency reduces the score.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states 'Create a draft invoice in Xero' with a specific verb and resource. It distinguishes itself from siblings by mentioning prerequisites (contact ID from xero.list_contacts, account codes for line items), aiding selection among similar tools.

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?

The description provides direct usage guidance: use contact ID from xero.list_contacts and reference Xero account codes for line items. It implies a workflow but does not explicitly state when not to use this tool or suggest alternatives.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/RPasquale/lightbulb-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server