Skip to main content
Glama
sweetrb

apple-mail-mcp

by sweetrb

create-smart-mailbox

Create a smart mailbox in Apple Mail by sender, subject, or body text, with support for German-localized macOS. Returns confirmation or existing-mailbox notice.

Instructions

Use when: creating an Apple Mail smart mailbox (a criteria-based virtual view) that matches a sender, subject, or body substring — works on German-localized macOS where AppleScript's smart-mailbox terms fail. Returns: confirmation of creation, or a note that a smart mailbox with that name already existed. Do not use when: creating a real folder (use create-mailbox). Safety: edits Apple Mail's SyncedSmartMailboxes.plist directly. It backs the file up (.bak) and writes atomically, and never rewrites your existing smart mailboxes. It does not quit Mail — quit Mail first for reliable results, since a running Mail may not show the new smart mailbox until relaunched and can overwrite plist edits it did not make.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes
bodyContainsNoMatch body (contains)
fromContainsNoMatch sender (From contains)
subjectContainsNoMatch subject (contains)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okNo
nameNo
alreadyExistedNo
Install Server

TDQS

A4.9/5.0
Behavior5/5

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

No annotations are provided, so the description carries the full burden, and it delivers: it discloses direct plist editing, backup creation (.bak), atomic writes, that existing smart mailboxes are not rewritten, and that Mail is not quit automatically. It also warns about Mail overwriting plist edits if running, which is valuable behavioral transparency.

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?

The description is structured with clear labeled sections: use when, returns, do not use, and safety. It is front-loaded with the core purpose, and every sentence adds distinct, useful information without redundancy.

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

Completeness5/5

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

The description fully covers invocation context, return behavior, exclusions, safety mechanisms, and operational prerequisites (quitting Mail). An output schema exists, so return-value detail is not required; remaining minor gaps like combined-criteria semantics do not undermine completeness.

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

Parameters4/5

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

Schema describes three of four params with 'contains' phrasing (75% coverage); the description adds the concept of 'substring' and groups them as sender/subject/body criteria. This provides some semantic clarification beyond the schema, though it does not give deep per-parameter details.

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?

The description opens with 'Use when: creating an Apple Mail smart mailbox (a criteria-based virtual view)' and names the specific action and resource. It clearly distinguishes from 'create-mailbox' for real folders, and specifies the matching criteria (sender, subject, body substring).

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

Usage Guidelines5/5

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

The description includes explicit 'Use when' and 'Do not use when' instructions, citing 'create-mailbox' as the alternative for real folders. It also adds actionable context like German-localized macOS compatibility and the instruction to quit Mail first, giving the agent clear conditions for appropriate use.

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

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/sweetrb/apple-mail-mcp'

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