Skip to main content
Glama
apple-mail-mcp

apple-mail-mcp

by sweetrb

search-contacts

Read-only

Look up a person in Contacts by name, organization, nickname, or email to find their email addresses and phone numbers before composing or sending mail.

Instructions

Use when: looking up a person in Contacts by name, organization, nickname, or email to find their email address(es)/phone(s) before composing or sending mail. Reads the macOS Contacts database directly (needs Full Disk Access; does NOT require Contacts.app to be running or an Automation / Apple-Events grant). Returns: matching contacts with their names, email addresses, and phone numbers. Do not use when: searching email messages (use search-messages) — this queries Contacts, not the mailbox.

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": "search-contacts"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYes

Output Schema

NameRequiredDescriptionDefault
countNo
contactsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv2.10.24
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. Changed1 schema field changedv2.10.8
    • changedOutput schema / additionalProperties
      Previous value: -falseNew value: +true
  3. Addedv2.8.14
  4. Removedv2.8.10
  5. First observedv2.6.1

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint, but the description adds real operational context: it reads the macOS Contacts database directly, requires Full Disk Access, and does not require Contacts.app to be running or an Automation/Apple-Events grant. That permission distinction is exactly the kind of non-obvious prerequisite an agent needs before attempting the call. Minor gap: nothing about result limits or empty-result behavior.

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?

Structured as use-when / returns / do-not-use-when, with the primary trigger front-loaded. Every sentence carries distinct information — permitted inputs, side effects and permissions, expected return shape, and the excluded alternative — with no restatement of the tool name.

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 one-parameter read tool with an output schema, the definition covers everything that matters: what triggers it, what it searches, what it returns, what permissions are needed, and which sibling owns the adjacent use case. The response-shape sentence is somewhat redundant given the output schema, but that is a minor redundancy rather than a gap.

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 0% for the single 'query' parameter, so the description must carry the burden, and it does by enumerating what the query may match: name, organization, nickname, or email. It does not specify matching semantics (substring vs. exact, case sensitivity) or ambiguity handling, but the field-level meaning is meaningfully richer than the bare string schema.

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?

The description states a specific verb and resource ('looking up a person in Contacts') and immediately scopes the searchable fields (name, organization, nickname, email). It explicitly separates itself from the mailbox-oriented siblings, so an agent can pick between search-contacts and search-messages without opening either 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?

The 'Use when' clause gives a concrete triggering scenario (finding an address/phone before composing or sending mail), and the 'Do not use when' clause names the alternative tool ('use search-messages') plus the reason (this queries Contacts, not the mailbox). Both positive and negative routing are explicit.

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