Skip to main content
Glama

trash_message

Destructive

Moves a Gmail message to Trash so it can be recovered later, avoiding permanent deletion. Use it to remove a specific email without erasing it.

Instructions

Move a message to trash (recoverable).

Permanent delete is intentionally not exposed — it requires the full https://mail.google.com/ scope, which this server does not request.

Args: message_id: The Gmail message ID to trash.

Returns: Message id, thread_id, label_ids, and action 'trashed'. On failure, {"error": "..."}.

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

Input Schema

NameRequiredDescriptionDefault
message_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.9.6

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, so the safety profile is partly covered; the description adds the key nuance that the operation is recoverable rather than permanent, plus the auth-scope rationale for the missing delete. It also documents the failure shape ({"error": "..."}). Minor gaps remain, e.g. behavior when the message is already trashed or whether label_ids are affected beyond the trash label.

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 primary action is front-loaded in the first line, followed by a short justification for the missing delete capability and a compact Args/Returns block. Every sentence carries information; nothing is redundant padding.

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 one-parameter mutation the definition covers purpose, reversibility, authorization rationale, success payload, and error shape. The Returns section is largely redundant given an output schema exists, and edge-case behavior is unstated, but nothing an agent needs to 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% for the single parameter, so the description must compensate, and it does by naming message_id as 'The Gmail message ID to trash', establishing the domain and identifier type. It does not add format or sourcing detail (e.g. where to obtain the ID), but the essential meaning is conveyed.

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 states a specific verb and resource ('Move a message to trash') plus the critical qualifier '(recoverable)', and explicitly clarifies that permanent deletion is not available. An agent can immediately distinguish this from empty_trash or other deletion paths without opening the schema.

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?

Usage is implied rather than stated: an agent can infer 'use this when you want to remove a message but keep it recoverable'. The note that permanent delete is intentionally not exposed removes one wrong path, but no sibling alternative (e.g. empty_trash for irreversible purging) is named or conditionally routed to.

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