Skip to main content
Glama
p-l-ta

mail-mcp

by p-l-ta

search_emails

Read-only

Search Mail.app messages by sender, subject, date, or free-text query. Returns detailed metadata including RFC message-id for further actions.

Instructions

Search Mail.app messages via the Envelope Index database. Returns rich metadata including RFC message-id (usable with read_email, reply_to_email, set_message_flags).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fromNoSubstring match on sender address or display name
limitNo
queryNoFree-text search across subject, sender, and body summary. Omit to list-only by other filters.
sinceNoISO date — only messages on or after this date
accountNoSubstring match against the full mailbox URL (host and path). Use the account hostname to target an account (e.g. 'icloud'), or a mailbox path segment to target a specific folder (e.g. 'INBOX', 'Amtrak').
subjectNoSubstring match on subject
include_deletedNo
Behavior4/5

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

Annotations indicate readOnlyHint=true and destructiveHint=false, which the description aligns with by stating 'Search'. It adds value by specifying the data source (Envelope Index database) and the rich metadata returned, including RFC message-id.

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?

Two sentences, front-loaded with the purpose, and every word adds value. Efficient and clear.

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

Completeness3/5

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

With 7 parameters and no output schema, the description covers the core function and integration hints but lacks details on search behavior (e.g., case sensitivity, pagination, performance) that could be relevant for an AI agent.

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 71%, so the baseline is 3. The description provides no additional parameter-specific meaning beyond the schema, but offers context on the return value which aids understanding.

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 clearly states it searches Mail.app messages and returns metadata, including RFC message-id. It differentiates from siblings by highlighting the metadata return, but does not explicitly distinguish when to use this over list_recent or list_senders.

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

Usage Guidelines2/5

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

No explicit guidance on when to use this tool vs alternatives. The description mentions that RFC message-id is usable with other tools, but does not specify conditions for use or exclusions.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/p-l-ta/mail-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server