Skip to main content
Glama
codefuturist

Email MCP Server

by codefuturist

delete_email

Destructive

Delete an email from any mailbox. Moves to Trash by default; set permanent=true for irreversible deletion.

Instructions

Delete an email. By default moves to Trash. Set permanent=true for permanent deletion (⚠️ irreversible). The mailbox must be a real folder. Use find_email_folder first if the email was found in a virtual folder.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
accountYesAccount name from list_accounts
emailIdYesEmail ID to delete (from list_emails)
mailboxNoMailbox containing the emailINBOX
permanentNo⚠️ Permanently delete (skip Trash)
Behavior5/5

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

Annotations already indicate destructiveHint=true. The description adds critical behavioral details: default behavior (move to Trash), permanent deletion option, and the requirement that the mailbox be a real folder. No contradictions with 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?

Four sentences, each necessary. Front-loaded with the primary action, followed by defaults, options, and a specific usage caveat. No redundant information.

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?

Given the action (delete) and the presence of annotations, the description sufficiently covers behavior and prerequisites. Lacks explicit mention of return value, but for a delete operation this is often trivial. Still, a slight gap for full completeness.

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%. The description adds value by explaining the effect of the `permanent` parameter (irreversible) and the context for `mailbox` (must be a real folder). It does not elaborate on `account` or `emailId`, but those are self-explanatory from the schema.

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 clearly states the tool deletes an email, distinguishes between moving to Trash (default) and permanent deletion, and uses specific verbs and resource. It effectively differentiates from sibling tools like send, reply, move, and mark.

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 explicitly advises when to use `find_email_folder` first for emails in virtual folders, and warns about the irreversibility of permanent deletion. This provides clear usage context and alternatives.

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/codefuturist/email-mcp'

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