Skip to main content
Glama

trash_emails

Destructive

Move specified Gmail messages to Trash, where they remain recoverable for 30 days, and confirm each action with verified counts and missing IDs.

Instructions

Move specific MESSAGES to Gmail's Trash, where they are recoverable for 30 days before permanent deletion. Message-level only. Each message is trashed individually and confirmed, so the response reports the verified count and names any id that does not exist.

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": {
      "account": "<account>",
      "message_ids": "<message_ids>"
    },
    "name": "trash_emails"
  }
}

Input Schema

NameRequiredDescriptionDefault
accountYesAccount id ("personal", "tamu").
message_idsYesGmail message ids to trash.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.6.2

TDQS

A4.3/5.0
Behavior4/5

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

Goes well beyond the annotations (destructiveHint=true) by disclosing the 30-day recoverability window, that messages are trashed individually with confirmation, and that the response reports a verified count and names nonexistent ids. Missing only operational context such as permission requirements or behavior on a partially failing batch beyond the implied per-id confirmation.

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?

Three short sentences, front-loaded with the action and the recoverability constraint, then the granularity, then the response behavior. No redundant restatement of the tool name or 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 two-parameter destructive tool with annotations covering the safety profile and no output schema, the description explains both the effect and the response shape, which is most of what an agent needs. It stops short of stating account-related preconditions or auth expectations.

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?

Schema coverage is 100% and both parameters are documented in-schema; the description adds useful framing about what message_ids represent (specific individual messages, not threads) and what happens to ids that don't resolve, which is meaning the schema does not carry.

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?

States a specific verb and resource — moving messages to Gmail's Trash — and adds the scope qualifier 'Message-level only,' which separates it from thread-level siblings such as label_thread or mute_thread without needing 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 by the scope note ('specific MESSAGES', 'Message-level only'), but there is no explicit when-to-use versus when-not guidance and no named alternative (e.g., archive_emails for non-destructive removal, delete_drafts for drafts). The agent must infer selection criteria.

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