Skip to main content
Glama

Xero Create Payment

xero_create_payment

Records a payment against a Xero invoice or bill using invoice ID, bank account ID, amount, and optional date or reference; requires XERO_WRITE_ENABLED=true.

Instructions

Record a payment against an invoice or 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": {
      "invoice_id": "<invoice_id>",
      "account_id": "<account_id>",
      "amount": "<amount>"
    },
    "name": "xero_create_payment"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNoPayment date (YYYY-MM-DD)
amountYesPayment amount
referenceNoPayment reference
account_idYesBank account UUID
invoice_idYesInvoice UUID to pay against

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full disclosure burden. It usefully reveals an environment-flag write gate, but says nothing about effects on the invoice/bill status, whether overpayment or partial payment is permitted, or reversibility — meaningful gaps for a mutating 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 zero filler: the action comes first and the operational prerequisite follows immediately. Nothing is repeated from the schema or annotations.

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 described, and all five parameters are documented in the schema. What is missing for an unannotated mutation tool is the side-effect story — how the payment affects invoice balance/status and whether it can be undone.

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 the baseline is 3. The phrase 'invoice or bill' slightly broadens invoice_id beyond the schema's 'Invoice UUID to pay against', but no format, currency, or date-defaulting semantics are added.

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 ('Record a payment') plus the target ('against an invoice or bill'), which is enough to separate it from xero_delete_payment or xero_payment. It does not explicitly name a sibling alternative, so it stops short of a 5.

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

Usage Guidelines3/5

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

The prerequisite 'Requires XERO_WRITE_ENABLED=true' is a genuine usage gate that tells the agent when the call will succeed. However, there is no guidance on when to choose this versus xero_create_bank_transaction or other payment-adjacent siblings, so the alternative-routing guidance is only implied.

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