Skip to main content
Glama
apple-mail-mcp

apple-mail-mcp

by sweetrb

delete-smart-mailbox

Destructive

Delete an Apple Mail smart mailbox by name, removing the virtual view while preserving other smart mailboxes. Use for smart mailboxes only, not real folders or messages.

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.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "name": "<name>"
    },
    "name": "delete-smart-mailbox"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes

Output Schema

NameRequiredDescriptionDefault
okNo
nameNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv2.10.24
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. Changed1 schema field changedv2.10.8
    • changedOutput schema / additionalProperties
      Previous value: -falseNew value: +true
  3. Addedv2.9.0

TDQS

A4.9/5.0
Behavior5/5

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

The annotations already declare destructiveHint=true and readOnlyHint=false, and the description goes well beyond them by naming the file it mutates (SyncedSmartMailboxes.plist), the .bak backup, the atomic write, the guarantee that every other smart mailbox is preserved, and the fact that the removal is not undoable in-app. It also flags the operational caveat that Mail should be quit, which is behavior an agent cannot infer from annotations.

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?

Labeled sections (Use when / Returns / Do not use when / Safety) put the decision-critical information first and each sentence carries unique content. The "Returns: confirmation of deletion" line is slightly redundant with the output schema, but it is a single clause and does not bloat the definition.

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 one-parameter destructive tool this covers everything an agent needs: selection criteria, alternatives, prerequisites, exact file-level effect, irreversibility, and a reliability caveat. Since an output schema exists, the description is not obliged to detail the return payload, and it correctly doesn't.

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 coverage is 0% and the single parameter is otherwise just a bare string with minLength, so the description must carry the meaning. It does so by specifying that the mailbox is identified "by name" and by warning that the exact name must be confirmed with list-smart-mailboxes first, which is meaningful guidance about matching semantics, though it doesn't state what happens on a name miss.

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 opening line states a specific verb and resource ("deleting an Apple Mail smart mailbox (virtual view) by name") and clarifies that the target is a virtual view rather than a real folder or message. It explicitly names the siblings it is not (delete-mailbox, delete-message, batch-delete-messages), so an agent can distinguish it without opening any schema.

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 is structured as an explicit when-to-use, when-not-to-use, and which-alternative block, naming all three competing tools. It also states prerequisites: verify the exact name with list-smart-mailboxes 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.