Skip to main content
Glama
xero-mcp

xero-mcp

by david-buck

Find Xero contact

xero_find_contact

Search Xero contacts by name or email to retrieve identifying details such as ContactID, helping you locate the right contact for invoice or contact actions.

Instructions

Search Xero contacts by name or email and return their identifying information, including ContactID.

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": {
      "query": "<query>"
    },
    "name": "xero_find_contact"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum contacts to return
queryYesContact name or email to search for

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It does disclose the useful fact that results include ContactID, which is the identifier downstream tools likely need, but it never states that this is a read-only operation, whether matching is exact or partial, or how the default limit of 20 affects results.

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?

A single front-loaded sentence that states the action, the search keys, and the payload. Nothing is redundant, though it is so short that it leaves obvious questions unanswered rather than being maximally efficient.

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?

This is a simple two-parameter lookup with a fully described schema and no output schema, so the description needn't enumerate return fields. Still, for a search tool the agent needs to know match semantics and limit behavior, and neither is covered.

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 both parameters are already documented with constraints (1-255 chars, limit 1-100, default 20). The description adds only the loose notion of 'name or email' as the query, without clarifying substring versus exact matching or what happens when the limit is hit, so baseline 3 is appropriate.

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 gives a specific verb and resource ('Search Xero contacts') plus the search keys (name or email) and the key return field (ContactID). That is enough to separate it from the get/list siblings, which target invoices, quotes, and accounts rather than contact lookup. It stops short of naming a contact-specific alternative such as xero_get_contact_defaults.

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 phrase 'by name or email' implies when the tool applies, but there is no explicit when-to-use or when-not-to-use guidance, and no prerequisite or exclusion is stated. Nothing tells the agent what to do when a query returns many or zero matches.

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