Skip to main content
Glama

Cancel or delete an unsent email

email_message_delete
Destructive

Cancel a scheduled email before it goes, or delete a draft or a failed send. id = latest_message_id from email_read threads (folder scheduled, drafts or outbox-failed). Sent and received mail cannot be deleted here. Confirm first.

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": "email_message_delete"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, so the destructive nature is known; the description adds value by scoping which message states are actually deletable and by requiring confirmation before invoking. It does not say whether deletion is permanent or what the tool returns on success or failure, which leaves some behavioral ground uncovered.

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 short sentences with zero padding; the primary action is front-loaded and each following sentence adds a distinct constraint (ID provenance, exclusion, confirmation).

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 no output schema, the description covers purpose, valid ID source, exclusions, and a safety prerequisite. Nothing an agent needs in order to select and invoke it correctly 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 0% and the single 'id' parameter has no description, so the description must carry the burden. It does so by defining id as 'latest_message_id from email_read threads' and listing the folders (scheduled, drafts, outbox-failed) that yield a valid value.

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 names a specific verb and three distinct target states (scheduled, draft, failed send) and explicitly excludes a fourth (sent/received mail). An agent can immediately tell this apart from email_send or email_draft_save 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 Guidelines4/5

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

It gives clear when-to-use conditions ('before it goes', draft, failed send) and an explicit when-not ('Sent and received mail cannot be deleted here'). It also adds the prerequisite 'Confirm first', though it does not name a sibling alternative for the excluded cases.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources