Skip to main content
Glama

deleteMessage

Permanently delete one or more Gmail messages by passing a single message ID or an array of IDs.

Instructions

Immediately and permanently delete one or more messages. Pass a single id or an array of ids.

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": {
      "ids": "<ids>"
    },
    "name": "deleteMessage"
  }
}

Input Schema

NameRequiredDescriptionDefault
idsYesMessage ID or array of message IDs to delete

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.0.0-rc.1

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations provided, the description carries the full behavioral burden, and it does disclose the single most important trait: the deletion is immediate and permanent. It says nothing about required permissions, whether permanent deletion affects attachments or threads, batch size limits, or whether any recovery window exists at the account level.

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 with zero waste, and the permanence warning is front-loaded before the parameter note. Every sentence earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a one-parameter tool with no output schema, the definition covers the essentials of what it does and how destructive it is. However, as an unannotated destructive mutation, it leaves out permission requirements and any limit on the number of ids, which an agent would want before issuing a bulk delete.

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 description coverage is 100% and there is only one parameter, so the schema already documents `ids` completely. The description restates that a single id or an array is accepted, which is mildly useful convenience but adds no meaning beyond the schema's anyOf definition.

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?

The description names a specific verb and resource ('delete ... messages') and sharpens it with the scope qualifiers 'immediately and permanently,' so an agent knows this is an irreversible removal rather than a soft delete. It stops short of explicitly contrasting with the sibling trashMessage, which is the closest alternative, so it is clear but not fully differentiated.

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

Usage Guidelines3/5

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

There is no explicit when-to-use or when-not-to-use statement and no named alternative, but 'immediately and permanently' implicitly signals this is the hard-delete path as opposed to a recoverable trash operation. The agent must infer that routing decision rather than being told it.

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

Deploy Server

Other Tools