Skip to main content
Glama
sweetrb

apple-mail-mcp

by sweetrb

delete-smart-mailbox

Delete an Apple Mail smart mailbox by name. Removes the virtual view permanently while preserving other smart mailboxes. Confirm the name first with list-smart-mailboxes.

Instructions

Use when: deleting an Apple Mail smart mailbox (virtual view) by name. Returns: confirmation of deletion. Do not use when: deleting a real folder (use delete-mailbox) or messages (use delete-message / batch-delete-messages). Safety: destructive — removes the smart mailbox from Apple Mail's SyncedSmartMailboxes.plist. It backs the file up (.bak) and writes atomically, preserving every other smart mailbox, but the removal is not undoable in-app. Confirm the exact name with list-smart-mailboxes first, and quit Mail first for reliable results.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okNo
nameNo
Behavior5/5

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

With no annotations, the description carries the full burden. It discloses the destructive nature, specifics about modifying SyncedSmartMailboxes.plist, backing up .bak, atomic writes, preserving other smart mailboxes, and non-reversibility in-app. It also advises confirmation and quitting Mail, adding practical operational context.

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 well-structured with labels (Use when, Returns, Do not use when, Safety) and packs substantial guidance into a compact format under 80 words. Every sentence serves a purpose with no filler.

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?

For a single-parameter destructive tool with an output schema, the description covers use case, return confirmation, safety mechanism, preconditions, and alternatives. It is self-sufficient for an agent to invoke correctly without additional context.

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?

The schema has no parameter descriptions (0% coverage), so the description compensates by clarifying the 'name' parameter is the smart mailbox name and instructing to use the exact name. This adds practical semantics beyond the raw schema field.

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: deleting an Apple Mail smart mailbox (virtual view) by name,' which is a specific verb+resource statement. It also distinguishes from siblings by explicitly directing to delete-mailbox for real folders and delete-message/batch-delete-messages for messages.

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?

It explicitly states when to use ('deleting an Apple Mail smart mailbox') and when not to use, naming alternatives such as delete-mailbox and delete-message/batch-delete-messages. It also provides actionable preconditions: confirm the exact name with list-smart-mailboxes first and quit Mail first for reliable results.

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

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