Skip to main content
Glama
apple-mail-mcp

apple-mail-mcp

by sweetrb

delete-mailbox

Destructive

Deletes a specified mailbox or folder from an Apple Mail account and removes all messages it contains. Verify the exact mailbox name and require explicit confirmation before use.

Instructions

Use when: deleting a mailbox/folder from an account. Returns: a confirmation that the mailbox was deleted. Do not use when: renaming it (use rename-mailbox) or deleting messages within it (use delete-message / batch-delete-messages). Safety: destructive — deleting a mailbox removes the folder and any messages it contains. Require explicit user confirmation and use list-mailboxes first to confirm the exact name.

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

Input Schema

NameRequiredDescriptionDefault
nameYes
accountNoAccount containing the mailbox

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.8.14
  4. Removedv2.8.10
  5. First observedv2.6.1

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true, but the description adds context the annotations cannot: that deletion removes the folder *and any messages it contains* (a cascade effect), that explicit user confirmation should be obtained, and that list-mailboxes should be called first to verify the exact name. It also notes the confirmation return, which is the kind of operational detail annotations never carry.

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?

The labeled blocks ('Use when' / 'Returns' / 'Do not use when' / 'Safety') make it easy to scan and front-load the decision-relevant content. The 'Returns:' line is somewhat wasted since an output schema already exists, keeping it just short of a 5.

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 two-parameter destructive tool with annotations and an output schema, the description covers selection, alternatives, cascade consequences, and a pre-flight verification step. Nothing an agent needs to invoke it safely is missing.

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 coverage is 50% — 'account' is described in the schema while 'name' is not. The instruction to 'use list-mailboxes first to confirm the exact name' implicitly tells the agent that `name` is an exact mailbox identifier, which is genuine added meaning, but format/case sensitivity and multi-account ambiguity remain unstated.

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?

States a specific verb and resource ('deleting a mailbox/folder from an account') and explicitly distinguishes the action from renaming (rename-mailbox) and from deleting contents (delete-message / batch-delete-messages). An agent can select this tool without inspecting any sibling 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?

Gives an explicit 'Use when' condition, an explicit 'Do not use when' condition, and names the exact sibling tools to use instead for each alternative case. This is the strongest possible routing guidance.

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