Skip to main content
Glama

gmail_trash

Moves Gmail conversations to Trash after explicit confirmation; supports bulk, query, folder, index, or subject-match selection and restorable via restore/undo.

Instructions

Delete conversations (move them to the Trash; gmail.restore or gmail.undo bring them back).

Requires confirm=true (outward-facing or destructive).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
allNoAct on EVERY conversation of the query/folder list (Gmail's 'Select all' after loading the whole list; repeated until the list is empty for actions that remove conversations from it). Needs query or folder; no index/indexes/match.
indexNoRow index from gmail.list / gmail.search (0 = first row).
matchNoSelect every row whose subject contains this text (case-insensitive).
queryNoRun this Gmail search first and take the rows from its results.
folderNoOpen this folder/label first and take the rows from it.
confirmNoMust be true: this action is outward-facing or destructive.
indexesNoSeveral row indexes (multi-selection).
max_rowsNoWith match, look at most at this many rows from the top.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden and does disclose the key traits: the operation is non-destructive in practice (Trash), reversible via gmail.restore/gmail.undo, and gated by confirm=true. What it omits is batch behavior — whether a bare call with no selector targets everything — which matters given the `all` parameter.

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 sentences, no waste, and the most important fact — this is a Trash move, not a permanent delete — is front-loaded in the parenthetical before the precondition.

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 destructive-category tool with no annotations and no output schema, the description covers reversibility and the confirm gate, which are the two things an agent most needs. It leaves the selection-mode interaction (`all` vs `index`/`indexes`/`match`) entirely to the schema, which is acceptable at 100% coverage.

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% across all 8 parameters, so the schema already explains `all`, `index`, `match`, `query`, `folder`, `indexes`, and `max_rows`. The description's only parameter-level contribution is restating the confirm requirement, so the baseline of 3 applies.

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?

"Delete conversations (move them to the Trash)" gives a specific verb plus resource and immediately disambiguates the kind of delete — soft/trash, not permanent. It does not name gmail_delete_forever as the sibling for irreversible removal, but naming gmail_restore/gmail_undo establishes the reversibility boundary.

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?

The description states a hard precondition ("Requires confirm=true"), which is genuinely useful invocation guidance. However, it never says when to choose this over gmail_archive, gmail_spam, or gmail_delete_forever — the selection logic is only implied by "move them to the Trash."

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