Skip to main content
Glama

Xero Create Contact

xero_create_contact

Creates a new Xero contact using a required name plus optional email, phone, tax number, and account number. Requires XERO_WRITE_ENABLED=true to enable write access.

Instructions

Create a new contact. 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": {
      "name": "<name>"
    },
    "name": "xero_create_contact"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesContact name (required)
emailNoEmail address
phoneNoPhone number
last_nameNoLast name
first_nameNoFirst name
tax_numberNoTax number (ABN for AU)
account_numberNoAccount number

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?

No annotations are supplied, so the description carries the full burden. It does disclose one genuinely useful behavioral trait — the write operation is gated behind XERO_WRITE_ENABLED=true — but says nothing about duplicate-contact handling, required OAuth scopes, what happens when the flag is off (error vs. silent no-op), or whether the operation is reversible.

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 with no filler, and the prerequisite is front-loaded after the core action. The opening clause largely restates the tool name/title, which is the only wasted text.

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 schema coverage is full, so return values and parameter meanings need no explanation. However, for a seven-parameter mutation tool with zero annotations, the description is thin on the behavioral side — nothing about duplicates, scopes, or failure modes when the write flag is disabled.

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 100%, so all seven fields are already documented in the input schema, including the required name and the AU-specific ABN note on tax_number. The description adds no meaning beyond the schema, which is the expected baseline at full coverage.

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 new contact") that clearly separates it from xero_update_contact and xero_archive_contact in the sibling list. It does not explicitly name or contrast with those siblings, but the create semantics are unambiguous.

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?

There is no guidance on when to use this versus xero_update_contact or xero_contacts, nor any note about what to do when a contact already exists. The only usage-adjacent information is the environment-flag prerequisite, which is a precondition rather than a routing rule.

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