Skip to main content
Glama

gmail_trash_messages

Destructive

Move 1 to 50 specific Gmail messages to Trash. Leash records confirmed items so the user can restore them with Undo. Supply a concise reason and context for the user's activity record. These explanations do not grant permission. Listed tools may require an account connection or permission change in Leash; follow any access guidance returned by the tool and never bypass a denial.

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": {
      "reason": "<reason>",
      "context": "<context>",
      "input": "<input>"
    },
    "name": "gmail_trash_messages"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputYes
reasonYesWhy this access is necessary to fulfill the user's request
contextYesThe user request or task that prompted this action; omit unnecessary private details

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, but the description adds real context beyond them: items are recorded so the user can restore them via Undo, the action is written to the user's activity record with a reason and context, and those explanations explicitly do not grant permission. It does not say what happens when an ID is already trashed or whether partial success is possible, which would have completed the picture.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core operation and batch limit are front-loaded in the first sentence, and each following sentence carries a distinct point (restore path, activity record, permission model). The final sentence about account connection and access guidance is generic Leash boilerplate that is not specific to trashing messages, which is minor waste.

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 mutation with no output schema and a nested input object, the definition covers the essentials: scope, batch limit, recoverability, required explanatory fields, and denial handling. It leaves out result behavior on invalid or already-trashed IDs, which is the main remaining gap.

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 67%, and the description compensates meaningfully: it explains that reason and context feed the user's activity record, that they should be concise, and that supplying them does not authorize the action. It also restates the 1-to-50 bound on the ids array, reinforcing the schema constraint in prose.

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 and resource ("Move ... Gmail messages to Trash") and adds a concrete batch bound of 1 to 50, so the operation is unambiguous. It never names or contrasts with near-identical siblings such as gmail_users_messages_trash or gmail_delete_messages, so an agent cannot use the description alone to pick between them.

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 statement and no named alternative (trash vs. permanent delete vs. batch_delete). The closest thing to guidance is the mention that items can be restored with Undo, which only weakly implies this is the recoverable option.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.