Skip to main content
Glama

Delete email

delete-email

Deletes an email by moving it to Deleted Items, or permanently removes it when permanent is set to true.

Instructions

Deletes an email by moving it to Deleted Items (trash). Use permanent=true to hard delete.

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

Input Schema

NameRequiredDescriptionDefault
idYesMessage id
permanentNoPermanently delete instead of trashing

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations only supply readOnlyHint=false, confirming mutation but nothing about consequences. The description fills that gap well by disclosing that the default is a recoverable move to Deleted Items whereas permanent=true performs an irreversible hard delete — the single most important behavioral fact for this tool. It does not mention permission requirements or what happens when the id is invalid, keeping it short of 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?

Two short sentences, front-loaded with the default behavior and followed by the one flag that changes it. Nothing is redundant or padded.

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 two-parameter tool with an output schema and adequate annotations, the description covers what an agent needs to call it correctly and anticipate the destructive variant. Minor gaps remain around permissions and failure cases, but these are not blocking for selection or invocation.

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 100%, with both 'id' and 'permanent' fully described, so the baseline is 3. The description reinforces the permanent flag's effect ('hard delete') and names the trash folder, adding slight framing value but no syntax, format, or edge-case detail beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (deletes) plus resource (an email) and immediately explains the mechanism (moving to Deleted Items) and the hard-delete variant. It is clearly distinguishable from siblings like move-emails because it names the destination as trash, but it never explicitly contrasts itself with move-emails, so an agent must infer the boundary.

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?

Provides clear operational context: default behavior is soft delete to trash, and 'permanent=true' switches to hard delete. There is no explicit 'when not to use' guidance (e.g., when to prefer move-emails or when deletion should be avoided), but the mode-selection guidance for the one behavioral flag is unambiguous.

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