Skip to main content
Glama

Invio Xero MCP

update_xero_contact

update_xero_contact

Proposes a change to an EXISTING Xero contact - it does NOT change 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. contactId must come from list_xero_contacts (never invented). Provide at least one of name, emailAddress, or phone - only the fields you provide change, everything else on the contact is left exactly as it is.

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": {
      "contactId": "<contactId>"
    },
    "name": "update_xero_contact"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoNew name. Omit to leave unchanged.
phoneNoNew phone number. Omit to leave unchanged.
contactIdYesGet this from list_xero_contacts first, never guess.
emailAddressNoNew email. Omit to leave unchanged.
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. Changed3 schema fields changed
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / contactId / pattern
      Added value: +"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
    • 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.6/5.0
Behavior4/5

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

Annotations only say readOnly=false, destructive=false, idempotent=false, openWorld=true; the description adds the crucial behavior that this is a two-phase proposal that writes nothing until a human approves via the approvalUrl in the response. It also discloses partial-update semantics (unsupplied fields stay unchanged). It stops short of saying whether the pending change expires or how long it remains queued.

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 most important fact — that nothing is written to Xero — is front-loaded, and every sentence carries information. It is one long run-on paragraph with nested parentheticals, though, which costs a little readability.

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?

No output schema exists, yet the description still tells the agent where the approval link lives (the response's approvalUrl), and the mutation, approval, and ID-provenance requirements are all covered. Nothing needed to call it correctly is missing.

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

Parameters4/5

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

Schema coverage is 100%, so baseline is 3, but the description adds a cross-field constraint the schema does not encode (at least one of name, emailAddress, or phone must be provided) and clarifies partial-update semantics. It adds little beyond the schema for contactId or organisation, but the added constraint is genuinely useful.

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 a change to an EXISTING Xero contact") and immediately negates the wrong reading ("it does NOT change anything in Xero itself"). The word EXISTING plus the partial-update note clearly separates it from create_xero_contact in the sibling list.

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?

Gives explicit when-to-use and when-not: contactId must come from list_xero_contacts and never be invented, at least one field must be supplied, and self-approval is allowed only with approve_xero_pending_change and only after the person explicitly approves THIS change. It names the alternative tool and the precondition that selects it.

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