Skip to main content
Glama
mail-mcp

mail-mcp

by honest-magic

delete_email

Destructive

Permanently deletes a single email by UID over IMAP across providers. Irreversible, so use move_email to Trash when recovery is needed.

Instructions

Permanently delete a single email by UID via IMAP — works with any provider (Gmail, Outlook, custom domains). This is irreversible; prefer move_email to Trash if you want recovery.

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": {
      "accountId": "<accountId>",
      "uid": "<uid>"
    },
    "name": "delete_email"
  }
}

Input Schema

NameRequiredDescriptionDefault
uidYesThe UID of the email to delete
folderNoThe folder containing the email (default: INBOX)
accountIdYesThe ID of the account to use
confirmationIdNoConfirmation token from a prior confirmation-required response. Required to execute write operations when server is in --confirm mode.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.4.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the safety profile is known; the description still adds value by emphasizing permanence and irreversibility and noting provider-agnostic IMAP support. It does not mention the --confirm/confirmationId gate, but that is documented in the schema.

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?

Two sentences, zero waste, with the destructive nature front-loaded and the safer alternative immediately after. Nothing redundant with the title or schema.

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

Completeness4/5

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

For a destructive mutation with annotations and full schema coverage, the description covers consequence, alternative, and provider compatibility. Minor gaps remain on post-delete behavior (expunge/Trash bypass) and the confirmation flow, but nothing blocking.

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 100%, so the schema already documents all four parameters; the description only adds the 'by UID' targeting hint and 'single email' cardinality. Baseline 3 is met and the cardinality detail nudges it slightly higher.

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 ('Permanently delete a single email'), the addressing key ('by UID'), and the transport ('via IMAP'). The contrast with move_email makes the scope unambiguous against the closest sibling.

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?

Explicitly states the irreversible consequence and names the preferred alternative ('prefer move_email to Trash if you want recovery'), so the agent has both a when-to-use and a when-not-to-use condition.

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