Skip to main content
Glama

Invio Xero MCP

create_xero_contact

create_xero_contact

Proposes adding a new contact (customer or supplier) to this Xero organisation - it does NOT create anything in Xero itself, and never will on its own. This queues a pending change that a human must explicitly approve (your Xero MCP connector - the exact link is this response's own approvalUrl field) before Xero is touched at all; you may approve it yourself only with approve_xero_pending_change, and only after the person has explicitly said to approve THIS change. name is the only required field. Once approved and executed, the resulting contactId can be used with create_xero_invoice or update_xero_invoice - but only after this change has actually been approved, never before.

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": "create_xero_contact"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
phoneNo
emailAddressNo
organisationNoThe Xero organisation to use, by its display name. Only needed if this connection reaches more than one organisation - omit it when there is only one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / emailAddress / pattern
      Added value: +"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing the propose/queue/human-approve/execute pipeline, the human-in-the-loop consent requirement, and the approvalUrl mechanism. The gap is that idempotentHint=false is never addressed: the description doesn't warn that repeat calls will queue duplicate pending changes, which matters for agent retry loops. Otherwise the behavioral picture is unusually thorough.

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?

The negative constraint is front-loaded, which is the right choice, and each clause carries real information. It is somewhat over-emphasised, though: 'never will on its own', 'before Xero is touched at all' and 'never before' restate the same non-execution guarantee three times.

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

Completeness5/5

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

For a mutation tool with no output schema, the description compensates by naming the response field the agent must surface ('this response's own approvalUrl field') and by spelling out the downstream contract. An agent has enough to call it, explain it to a user, and know what to do next.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 25%, so the description should compensate for phone and emailAddress, but it says nothing about either. Its one parameter-related sentence, 'name is the only required field', merely restates the schema's required array. Only organisation is documented, and that documentation lives in the schema, not the description.

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?

States a specific verb and resource ('Proposes adding a new contact (customer or supplier)') and immediately disambiguates the most likely confusion by declaring 'it does NOT create anything in Xero itself.' An agent can distinguish this from create_xero_invoice or a direct-creation tool without opening any schema.

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

Usage Guidelines5/5

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

Explicitly names the only sanctioned path to execution ('you may approve it yourself only with approve_xero_pending_change') and attaches a precondition (only after the person has explicitly said to approve THIS change). It also tells the agent when the output becomes usable downstream ('create_xero_invoice or update_xero_invoice - but only after this change has actually been approved, never before').

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources