Skip to main content
Glama
apple-mail-mcp

apple-mail-mcp

by sweetrb

delete-message

Destructive

Delete one Apple Mail message by ID and move it to Trash. Search or list first to confirm the right ID, then require explicit user confirmation.

Instructions

Use when: deleting a single message by id (moves it to Trash). Returns: a confirmation that the message was deleted. Do not use when: deleting several at once (use batch-delete-messages) or just filing it away (use move-message). Safety: destructive — require explicit user confirmation, and search-messages/list-messages first to confirm you have the right id before deleting.

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": {
      "id": "<id>"
    },
    "name": "delete-message"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes

Output Schema

NameRequiredDescriptionDefault
idNo
okNo
countDeltaNo
verificationNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv2.16.1
    • changedOutput schema / properties / countDelta / items / properties / status / enum
      Previous value: -[
      -  "match",
      -  "over",
      -  "under",
      -  "unknown"
      -]New value: +[
      +  "match",
      +  "over",
      +  "unknown"
      +]
    • addedOutput schema / properties / countDelta / items / properties / unknownReason
      Added value: +{
      +  "enum": [
      +    "count-unreadable",
      +    "no-expectation",
      +    "count-did-not-move",
      +    "count-partial"
      +  ],
      +  "type": "string"
      +}
    • addedOutput schema / properties / verification
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "how": {
      +      "type": "string"
      +    },
      +    "verdict": {
      +      "enum": [
      +        "verified",
      +        "unverified"
      +      ],
      +      "type": "string"
      +    },
      +    "why": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "verdict"
      +  ],
      +  "type": "object"
      +}
  2. Changed3 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"
    • addedOutput schema / properties / countDelta
      Added value: +{
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "account": {
      +        "type": "string"
      +      },
      +      "after": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "before": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "expected": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "mailbox": {
      +        "type": "string"
      +      },
      +      "note": {
      +        "type": "string"
      +      },
      +      "observed": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "status": {
      +        "enum": [
      +          "match",
      +          "over",
      +          "under",
      +          "unknown"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
  3. Changed1 schema field changedv2.10.8
    • changedOutput schema / additionalProperties
      Previous value: -falseNew value: +true
  4. Addedv2.8.14
  5. Removedv2.8.10
  6. First observedv2.6.1

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the destructive signal itself is redundant. What the description genuinely adds is that deletion is a move-to-Trash rather than a permanent purge, plus the user-confirmation requirement and the id-verification precondition. Those are real additions, but the 'Safety: destructive' and 'Returns: a confirmation' lines largely restate what annotations and the output schema already convey.

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?

Well structured with labeled Use when / Returns / Do not use / Safety sections and the primary action front-loaded. The 'Returns' line is wasted effort given an output schema exists, and the safety line partially duplicates the annotations.

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 with annotations and an output schema, the description covers purpose, alternatives, preconditions, consequence, and confirmation policy. An agent has everything needed to decide and to call it correctly.

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 0% for the single id parameter, so the schema only carries a regex pattern ('^(\d+|imap:[A-Za-z0-9_-]+)$') with no prose. The description says 'by id' and points to search-messages as the way to obtain one, which helps, but it never explains the two accepted id forms (numeric vs imap: prefixed) that the pattern encodes.

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 with scope ('deleting a single message by id') and immediately pins the consequence ('moves it to Trash'). The 'single' qualifier plus the named siblings batch-delete-messages and move-message make it distinguishable from alternatives 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?

Explicit when-to-use, explicit when-not-to-use with two named alternatives that cover the two realistic confusions (bulk deletion and filing away). It also prescribes a precondition workflow — search-messages/list-messages first to confirm the id — which is actionable guidance rather than inference.

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