Skip to main content
Glama

trashThread

Move one or more Gmail threads to the trash or restore them by passing a single thread ID or an array of IDs to manage unwanted conversations.

Instructions

Move one or more threads to the trash or restore them. 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>",
      "action": "<action>"
    },
    "name": "trashThread"
  }
}

Input Schema

NameRequiredDescriptionDefault
idsYesThread ID or array of thread IDs
actionYes'trash' to move to trash, 'untrash' to restore

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.0.0-rc.1

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description must carry behavior itself. It does disclose that the operation is recoverable (an 'untrash' path exists) and that multiple threads can be affected at once, which is real value. It omits permissions/scope requirements, whether partial failures are possible when multiple ids are passed, and whether the operation is idempotent on already-trashed threads.

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, zero filler, with the core operation front-loaded and the input-form note second. Nothing redundant given the audience.

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 two-parameter mutation tool with no annotations and no output schema, the description covers the operations and input shape adequately. It leaves a meaningful gap around the delete-vs-trash distinction and multi-id failure semantics, which matter for a destructive-adjacent tool.

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 coverage is 100% and both parameters carry their own descriptions, including the enum meanings. The description's note about single id versus array restates what the anyOf already expresses, so it adds little beyond the schema. Baseline 3 applies when the schema does the heavy lifting.

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?

States a specific verb ('Move ... to the trash or restore') and resource ('threads'), plus the batch capability. It does not, however, distinguish itself from the sibling deleteThread, which is the operationally critical distinction (trash vs. permanent delete).

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

Usage Guidelines2/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 guidance. The presence of both 'trash' and 'untrash' modes implies the action choice, but nothing tells the agent how this differs from deleteThread or trashMessage, both of which appear as siblings.

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