Skip to main content
Glama
codefuturist

Email MCP Server

by codefuturist

Delete email

delete_email
Destructive

Delete an email by moving it to Trash, or set permanent=true to skip Trash and delete it irreversibly. Use a real mailbox folder; if the email is in a virtual folder, locate the real folder first.

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)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.6.0
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. First observedv0.2.3

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, but the description adds materially: the default is a recoverable move to Trash, permanent=true is irreversible (flagged with a warning glyph), and the target mailbox must be a real folder. It does not cover auth/permission needs or success return, keeping it below a 5.

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?

Three short sentences, zero filler, with the default behavior stated first and the destructive escalation second. Every sentence carries information an agent needs to call the tool safely.

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 4-parameter mutation with annotations and no output schema, the description covers reversibility, the destructive option, and the folder prerequisite. It is slightly thin on what a successful deletion returns and on account/emailId sourcing, but nothing critical to correct invocation is missing.

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 3 is the baseline, but the description adds semantics not in the schema: the mailbox must be a real (non-virtual) folder, which explains why find_email_folder may be needed. It also reinforces the irreversible nature of the permanent flag beyond the schema's brief note.

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 ("Delete an email") and immediately qualifies the operation's scope: default soft-delete to Trash versus permanent removal. This distinguishes it from siblings like delete_label, delete_mailbox, and bulk_action, which operate on different resources.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives a concrete prerequisite and routes the agent to a sibling tool ("Use find_email_folder first if the email was found in a virtual folder") and explains the condition that selects the permanent path. It does not mention when to prefer bulk_action for multiple messages, so it stops short of full alternative coverage.

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