Skip to main content
Glama
falconbradley

Apple Messages MCP

search_messages

Search message bodies across all conversations, filtered by chat, sender, or date range. Reads one chat newest-first when no search term is given.

Instructions

Search message bodies across every conversation, over all history.

Backed by a local index of decoded message bodies, which is brought up to date automatically. The first search on a large history has to build that index and may take a while; later searches are fast.

In Claude the result renders as an inline card, so don't repeat its contents in your reply — a one-line summary or the answer to the user's question is enough.

Args: query: Text to look for (case-insensitive substring match). Leave it out to search on the filters alone — chat_id plus a date range with no search term reads one conversation newest-first. limit: Maximum messages to return (default 30). chat_id: Restrict to one conversation from list_chats. from_me: True for only messages you sent, False for only received. after: Only messages at or after this time. before: Only messages at or before this time.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
afterNo
limitNo
queryNo
beforeNo
chat_idNo
from_meNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYes
totalYes
messagesNo
truncatedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.2

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden and does so well: it discloses that results come from a local decoded-body index kept up to date automatically, that the first search on a large history is slow while later ones are fast, and that results render as an inline card that shouldn't be repeated. It does not state the ordering of global (non-chat-scoped) results or any permission/auth constraints.

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?

Front-loads the purpose, then index/latency behavior, then rendering guidance, then the arg list — a sensible order with no filler. The rendering note is arguably tangential to tool selection but is genuinely useful invocation context, so the extra length is defensible.

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 six-parameter search tool with no annotations and 0% schema coverage, the description covers purpose, latency behavior, output rendering, and every parameter. The output schema handles return values, so the only mild gap is the unspecified ordering of results when no chat_id is given.

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

Parameters5/5

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

Schema description coverage is 0%, so the description must supply all parameter meaning, and it documents every one of the six: query as case-insensitive substring, limit as max results with default 30, chat_id scoped to list_chats, from_me sent/received polarity, and after/before as inclusive 'at or after'/'at or before' bounds. The inclusive boundary semantics are extra information the schema's date-time types do not convey.

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?

States a specific verb and resource with explicit scope: 'Search message bodies across every conversation, over all history.' It distinguishes itself from the narrower retrieval siblings by emphasizing 'every conversation' and full history, though it never names an alternative like get_chat_messages. Adding the case-insensitive substring detail further pins down what 'search' means here.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives concrete conditions: leave query out to search filters alone, and 'chat_id plus a date range with no search term reads one conversation newest-first.' It also points to list_chats as the source of chat_id. It stops short of explicitly saying when to prefer this over get_chat_messages or refresh_search_index.

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