Skip to main content
Glama
gmail-mcp

gmail-mcp

gmail_delete_email

Delete a Gmail message by ID: move it to trash by default or permanently delete it when needed. Verify the message ID first before removal.

Instructions

Delete an email (move to trash or permanently delete).

Args: message_id: The ID of the message to delete permanent: If True, permanently delete (cannot be undone). If False, move to trash (default)

Discovery: use gmail_list_inbox, gmail_search_email, or gmail_read_email first to verify the message_id before deleting.

Sibling tool: gmail_delete_filter deletes a filter definition, not a message.

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": {
      "message_id": "<message_id>"
    },
    "name": "gmail_delete_email"
  }
}

Input Schema

NameRequiredDescriptionDefault
permanentNo
message_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full burden, and it does disclose the key trait: permanent=True 'cannot be undone' while False moves to trash (implying recoverability). It doesn't mention permission requirements, whether a trashed message counts against quota, or rate limits, but the irreversibility warning is the critical disclosure for a delete tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loads the one-line purpose, then an Args block, then a Discovery note, then sibling disambiguation. Every section earns its place, though the labels ('Args:', 'Discovery:', 'Sibling tool:') make it slightly longer than a tight prose version would be.

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?

The tool is simple (two params, one required) and has an output schema, so return values need no explanation. Given that, the description covers purpose, both parameters with defaults and consequences, preconditions for obtaining a valid ID, and sibling confusion — nothing an agent needs in order to call it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate, and it does: message_id is identified as 'the ID of the message to delete' and permanent is explained including its default (False) and its consequence (irreversible). Both parameters gain meaning that the bare boolean/string schema types do not convey.

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') plus its two operating modes (trash vs permanent), and explicitly distinguishes itself from the sibling gmail_delete_filter, which 'deletes a filter definition, not a message.' An agent can tell exactly what this does and what it does not do.

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 concrete preconditions: verify the message_id via gmail_list_inbox, gmail_search_email, or gmail_read_email before deleting, which is real when-to-use guidance for a destructive operation. It stops short of stating when to choose permanent=true over the default trash mode, leaving that judgment to the caller.

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