Skip to main content
Glama
flt-sudo

gmail-mcp-server

by flt-sudo

Trash Gmail message or thread

gmail_trash_message
DestructiveIdempotent

Move a Gmail message or thread to Trash, keeping it recoverable for 30 days. Specify message_id or thread_id; optionally target a non-default account.

Instructions

Move one message or one whole thread to Trash. RECOVERABLE — Gmail keeps trashed mail for ~30 days and it can be restored from the Trash folder; nothing is permanently deleted by this tool.

Args:

  • message_id OR thread_id (exactly one, required): target. Ids are account-specific.

  • account (string, optional): email or alias. Omit for the default account.

Returns: confirmation of what was trashed and in which account.

Examples:

  • {"message_id": "18c2f5a7b3d9e1f0"}

  • {"thread_id": "18c2f5a7b3d9e1f0", "account": "personal"}

Error Handling: a 404 usually means the id belongs to a different account — check the 'account' field on the search result that produced the id.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.8/5.0
Behavior5/5

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

The description adds significant behavioral context beyond the annotations: it explicitly states the action is recoverable for ~30 days, can be restored from Trash, and that nothing is permanently deleted. It also describes return values and error behavior, giving the agent a full picture of what happens when invoked.

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?

The description is well-structured with a leading purpose sentence, a highlighted recoverability note, a compact Args section, Returns, Examples, and Error Handling. Every section earns its place, and the most critical information (purpose and recoverability) is front-loaded.

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 moderate-complexity tool with no output schema, the description is complete: it covers the action, parameters, return value, examples, and error handling. It even addresses a common pitfall (id/account mismatch) with a concrete 404 explanation. Nothing an agent needs to invoke the tool 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?

The input schema is empty, so the description carries the full burden for parameter meaning. It clearly specifies that exactly one of message_id or thread_id is required, defines ids as account-specific, and explains the optional account parameter. Examples demonstrate valid payloads, fully covering parameter semantics despite the empty schema.

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 opens with a specific verb and resource: 'Move one message or one whole thread to Trash.' It also clarifies scope (one message or whole thread), which differentiates it from sibling tools like gmail_modify_labels or gmail_send_message. The purpose is unmistakable and distinct.

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?

The description provides clear context: trashing is recoverable and not permanent, and it explains the required message_id/thread_id pattern. It does not explicitly mention when not to use the tool or compare it to alternative siblings, but the intended use is obvious and no exclusions are needed for this specific action.

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