Skip to main content
Glama
Apple Mail MCP Server

Apple Mail MCP Server

by tamm

search_body

Search email bodies, subjects, and senders using a full-text index, returning relevance-ranked matches as the index builds while messages are read.

Instructions

Full-text body search using FTS5 index. Index builds incrementally as emails are read. Returns relevance-ranked results.

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_body"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax results (default 20).
queryYesSearch terms for body/subject/sender.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations present, the description carries the full burden and does reasonably well: it discloses the underlying FTS5 index, that index coverage is incremental and therefore potentially stale/partial, and that results are relevance-ranked. It stops short of stating result shape (snippets vs full bodies) or whether any permission or mailbox scoping applies.

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, each carrying distinct information: what it searches, how the index behaves, and how results are ordered. Nothing is repeated or padded, and the core purpose is front-loaded.

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?

For a two-parameter read-only search with no output schema, the description covers purpose, index freshness, and ordering, which is most of what an agent needs. The remaining gap is what a result actually contains (snippet, identifiers, match highlighting), which the agent must discover at call time.

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%, so both the query and limit parameters are already documented in structured fields; baseline is 3. The description adds only that matching is full-text against an index, with no extra syntax, tokenization, or limit-behavior detail beyond the schema.

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 states a specific verb and resource ('Full-text body search') plus the mechanism (FTS5 index), which is far more informative than the bare name. It does not explicitly distinguish itself from the sibling search_emails, so an agent must still infer which search surface to pick.

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?

There is no explicit when-to-use or when-not-to-use statement, and no mention of the sibling search_emails or index_now as alternatives. However, the note that the index 'builds incrementally as emails are read' implicitly signals that results can be incomplete for unindexed mail, which is a usable contextual cue.

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