Skip to main content
Glama

Xero Create Bank Transaction

xero_create_bank_transaction

Creates a spend or receive money bank transaction in Xero using contact, bank account, line items, and optional date or reference to record bank activity.

Instructions

Create a bank transaction (spend or receive money). 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": {
      "txn_type": "<txn_type>",
      "contact_id": "<contact_id>",
      "bank_account_id": "<bank_account_id>",
      "line_items": "<line_items>"
    },
    "name": "xero_create_bank_transaction"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNoTransaction date (YYYY-MM-DD)
txn_typeYesSPEND or RECEIVE
referenceNoReference
contact_idYesContact UUID
line_itemsYesJSON array of line items
bank_account_idYesBank account UUID

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 burden. It does disclose the write-flag gate, which is genuinely useful behavioral context, but it says nothing about the fact that this creates a persistent financial record, whether it can be voided or deleted afterwards, or any effect on bank reconciliation.

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 sentences, no redundancy, with the purpose front-loaded and the prerequisite second. Every clause carries information and nothing is padded.

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 and parameter documentation is complete, so return values and argument format need not be explained. What remains missing is proportionate to the risk of the operation: no mention of side effects, reversibility, or how this pairs with the read-only xero_bank_transactions sibling, leaving the definition just adequate for a financial write tool.

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 schema already documents all six parameters, including the SPEND/RECEIVE values and date format. The description's '(spend or receive money)' merely restates what txn_type already declares, and adds nothing about line_items structure or date defaults; baseline 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?

States a specific verb and resource ('Create a bank transaction') and immediately disambiguates the transaction direction with '(spend or receive money)'. It does not, however, distinguish this from the other create-family siblings such as xero_create_payment, so an agent must still infer which create path applies.

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 description gives a real precondition ('Requires XERO_WRITE_ENABLED=true'), which tells the agent when the call is permissible. It offers no guidance on when to choose this over xero_create_payment or xero_create_invoice, nor any when-not condition, so routing remains implicit.

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