Skip to main content
Glama
Timbre

Timbre

search_mail

Read-only

Find emails across every Apple Mail account using local full-text search or filters for sender, recipient, date, mailbox, unread, flagged, and attachments. Returns message IDs for read_mail.

Instructions

Search the user's email: every account in Apple Mail on this Mac (iCloud, Gmail, Outlook…), locally; use it before other mail connectors. Full-text over subject, people, body and attachment names, ranked by relevance and recency; or filter by sender, recipient, mailbox, account, dates, unread, flagged, attachments. Junk and Trash are skipped unless asked. Returns ids for read_mail.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "search_mail"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoA To/Cc recipient name or address contains this.
fromNoSender name or address contains this.
sortNo"relevance" (default with a query) or "newest" / "oldest".
afterNoOn or after this date (YYYY-MM-DD or ISO 8601).
limitNoResults per page, 1-50 (default 20). Use next_offset for more.
queryNoWords to find in subject, people, body and attachment names. Accent-insensitive. Supports "exact phrase", prefix*, a OR b, -exclude, and operators from: to: subject: in: is:unread is:flagged has:attachment after:YYYY-MM-DD before:YYYY-MM-DD.
savedNoA search kept with save_search, by its name; what else is given narrows it.
beforeNoBefore this date (YYYY-MM-DD or ISO 8601).
offsetNoSkip this many results (pagination).
unreadNo
accountNoAccount name (as in list_mailboxes), e.g. "iCloud".
flaggedNo
mailboxNoMailbox name or path ("Archive/2024"), or a role: inbox, sent, drafts, archive, junk, trash.
subjectNoSubject contains this.
group_threadsNoOne result per conversation (default true): thread_matches counts its other matching messages, get_thread shows them. false lists each message.
has_attachmentsNo
include_junk_and_trashNoJunk and Trash are skipped unless a mailbox is named or this is true.

Output Schema

NameRequiredDescriptionDefault
totalYes
engineYes"fulltext" or "metadata" (subjects and senders only).
noticeNo
resultsYes
took_msYes
next_offsetNo
timbre_updateNoA newer Timbre exists (said once per session).
total_is_lower_boundNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.7.2
    • addedInput schema / properties / saved
      Added value: +{
      +  "description": "A search kept with save_search, by its name; what else is given\nnarrows it.",
      +  "type": "string"
      +}
  2. First observedv0.6.5

TDQS

A4.1/5.0
Behavior4/5

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

Annotations establish readOnlyHint and openWorldHint=false, and the description adds real context beyond them: the index is local to this Mac, ranking is by relevance and recency, and Junk/Trash are skipped by default. It does not discuss result caps or latency, though pagination is covered by schema parameters.

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-loaded with the action and scope, then filters, then defaults, then the return contract — a logical order with no filler. The sentences are dense with parentheticals but each clause carries 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?

For a 17-parameter, open-world-false search tool with an output schema and rich parameter descriptions, the description supplies scope, precedence and default exclusion behavior. Only edge-case guidance (empty results, cross-account deduplication) is absent, which is acceptable given the schema.

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?

With 82% schema description coverage the schema already documents the filters, defaults and pagination, so the baseline applies. The description restates the filter axes and the junk/trash default without adding syntax or precedence rules beyond what the schema provides.

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?

States a specific verb (search) and resource (the user's email across every account in Apple Mail on this Mac), plus the search fields covered (subject, people, body, attachment names) and the filter dimensions. It is clearly distinguishable from siblings like list_mailboxes or read_mail because it names read_mail as the follow-up step.

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?

"Use it before other mail connectors" gives an explicit precedence rule, and "returns ids for read_mail" defines the handoff. It does not say when not to use it (e.g. when a message id is already known), so the routing guidance is clear but not complete.

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