Skip to main content
Glama

Search contacts

contacts_search
Read-only

Search iCloud contacts by name, email, or phone number with server-side partial matching, and optionally include groups to retrieve group IDs for membership changes.

Instructions

Searches contacts by name, email address or phone number. Matching is done by this server, not by iCloud. Names, labels and notes are as stored on each card.

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

Input Schema

NameRequiredDescriptionDefault
limitNoMost contacts to return. Omitted means 25. More than 100 is rejected.
queryYesA name, an email address or a phone number, or part of one.
include_groupsNoAlso return groups, to find the id of a group for `contacts_set_group_membership`.

Output Schema

NameRequiredDescriptionDefault
contactsYes
warningsYesCards that could not be read and were skipped.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=true, so the safety profile is covered. The description adds genuinely non-obvious behavior: matching happens on this server rather than iCloud, so results may diverge from iCloud's own search, and names/labels/notes are returned exactly as stored on each card without normalization. It does not discuss ordering or truncation behavior, which keeps it below a 5.

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?

Three short sentences, no filler, with the core search scope front-loaded and the behavioral caveats following in descending order of importance. Every sentence carries distinct information.

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

Completeness4/5

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

With an output schema, full annotation coverage and 100% schema description coverage, the definition's remaining burden is behavioral context, which it partially meets by explaining local-vs-iCloud matching and verbatim field storage. Result ordering and how limit interacts with truncation are left unaddressed, a minor gap for a three-parameter read 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% — query, limit (default 25, max 100) and include_groups are all documented in the schema, including the pointer to contacts_set_group_membership. The description's 'name, email address or phone number' restates the query parameter's semantics, which is mild reinforcement rather than new meaning, so the 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?

The description names a specific verb (Searches) and resource (contacts) and enumerates the searchable fields: name, email address, phone number. That is enough to distinguish it from contacts_get, but it never explicitly contrasts the two, so an agent must infer that contacts_get is the by-id lookup.

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?

Usage is implied by the enumerated match fields — you search when you have a partial name, email or phone rather than an id — but there is no explicit when-to-use or when-not-to-use statement and no mention of contacts_get as the alternative for known-id retrieval.

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