Skip to main content
Glama
Apple Mail MCP Server

Apple Mail MCP Server

by tamm

search_emails

Search emails by subject or sender, filter by date, mailbox, account, unread status, sort order, and limit to find specific messages.

Instructions

Search or list emails by subject/sender.

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

Input Schema

NameRequiredDescriptionDefault
sortNoSort by date: desc (default) or asc (oldest first).
afterNoOnly emails after this date (YYYY-MM-DD).
limitNoMax results (default 10).
queryNoSearch subject/sender. Omit for recent.
beforeNoOnly emails before this date (YYYY-MM-DD).
accountNoAccount. Omit for all.
mailboxNoMailbox (default: INBOX).
unread_onlyNoOnly return unread emails.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It never states that this is a read-only operation, says nothing about result ordering, pagination, or what the response looks like, and gives no context on what happens when all filters are omitted beyond the single word "recent".

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?

It is a single front-loaded sentence with zero filler, which is efficient. The terseness, however, edges toward under-specification rather than well-structured guidance.

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

Completeness2/5

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

With 8 parameters, no annotations, and no output schema, the definition should explain at least the return shape and whether results are limited or paginated. The schema covers inputs well, but an agent gets no information about what comes back or how to page through results.

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 every one of the 8 parameters already documents its own meaning, format, and defaults (dates as YYYY-MM-DD, default limit 10, INBOX default). The description only reinforces that query targets subject/sender, adding no meaning beyond the schema, 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 states a specific verb pair and resource ("Search or list emails") plus the searchable fields (subject/sender), which implicitly separates it from search_body and get_email. It does not name any sibling explicitly, so an agent must infer the boundary between searching subject/sender versus body content.

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 only implied: "Search or list" plus the schema note "Omit for recent" hints at list-vs-search behavior. There is no explicit when-to-use guidance, no exclusion telling the agent to use search_body for body text or get_email for a single message, and no prerequisites stated.

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