Skip to main content
Glama

gmail.users.threads.delete

Permanently delete a Gmail thread and all its messages when irreversible removal is required; this action cannot be undone.

Instructions

Immediately and permanently deletes the specified thread. Any messages that belong to the thread are also deleted. This operation cannot be undone. Prefer threads.trash instead. For more information, see Manage threads [HTTP DELETE] — removes the resource; irreversible unless the API documents a trash/undo flow; refused under --readonly safety profiles. Returns the post-delete resource state (or empty) as JSON — request bodies are built from the typed parameters (typed flags win over the params map), or read whole from body_file Siblings over the same resource: get, list, modify, trash, untrash.

Input Schema

NameRequiredDescriptionDefault
idYes[URL path segment] ID of the Thread to delete.
queryNoExtra KEY=VALUE query pairs for endpoints whose parameters Discovery does not describe.
paramsNoParameter map merged into the request; typed parameters win.
userIdYes[URL path segment] The user's email address. The special value `me` can be used to indicate the authenticated user.me
dry_runNoReturn the request that would be sent, without sending it.
body_fileNoRead the request body from this file ('-' for stdin) instead of building one from the parameters.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / id / description
      Previous value: -"ID of the Thread to delete."New value: +"[URL path segment] ID of the Thread to delete."
    • addedInput schema / properties / userId / default
      Added value: +"me"
    • changedInput schema / properties / userId / description
      Previous value: -"The user's email address. The special value `me` can be used to indicate the authenticated user."New value: +"[URL path segment] The user's email address. The special value `me` can be used to indicate the authenticated user."
  2. First observed

TDQS

A4.3/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 well: it discloses cascade destruction ('any messages ... are also deleted'), irreversibility, refusal under --readonly safety profiles, and the shape of the response. The generic claim that it 'returns the post-delete resource state (or empty)' is hedged and partly boilerplate, which keeps it just short of a 5.

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 destructive-scope and prefer-trash guidance is front-loaded in the first three sentences, which is exactly right. The trailing [HTTP DELETE] block and the request-body construction notes are generic boilerplate that adds no value to a bodyless deletion endpoint.

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, non-recoverable operation with no annotations and no output schema, the description covers scope, reversibility, sibling alternatives, and the return value — everything an agent needs to decide and invoke safely. It stops short of stating required OAuth scope or quota, which a fully complete definition would mention.

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%, so both required path segments (userId, id) are already documented, and the description adds nothing about them. The only added semantics is the precedence rule that typed flags win over the `params` map and that `body_file` overrides body construction — useful but largely irrelevant for a bodyless DELETE.

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 ('permanently deletes the specified thread') and immediately extends the scope to cascading deletion of contained messages. It also names the sibling resource operations (get, list, modify, trash, untrash) at the end, so an agent can distinguish it from threads.trash and messages.delete 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 Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly routes the agent: 'Prefer `threads.trash` instead' names the alternative and the condition (recoverability) that selects it. The irreversibility warning supplies the when-not case, and the readonly-profile note tells the agent under what execution context the call will be refused.

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