Skip to main content
Glama

gmail_threads_modify

Update labels on a Gmail thread to apply changes to every message it contains. Add or remove up to 100 label IDs per update to organize support conversations.

Instructions

Modify the labels on a thread, and so on every message in it.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesThe ID of the thread to modify.
bodyYesThe modify request body.
userIdNoThe user's email address. The special value 'me' can be used to indicate the authenticated user.me

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations declare readOnlyHint=false and openWorldHint=true, so the mutation nature is already signaled. The description usefully discloses the cascade side effect (label changes propagate to every message), which is real added context, but it omits permission/auth requirements and any reversal or rate-limit details.

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?

A single front-loaded sentence with no filler, though the phrasing 'and so on every message in it' is slightly awkward. It stays tight and readable.

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 mutation tool whose params are fully documented and whose safety profile is covered by annotations, the definition is adequate for correct invocation. However, with no output schema and no usage guidance, it stops short of fully equipping the agent to choose between thread- and message-level operations.

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%, with addLabelIds/removeLabelIds, id, and userId all documented in the schema including the 100-label cap. The description adds nothing beyond that, so the baseline 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?

The description states a specific verb and resource ('Modify the labels on a thread') and clarifies scope with the cascade note that it applies to every message in the thread. It is clearly distinguishable from read siblings like gmail_threads_get and gmail_threads_list, though it does not name them explicitly.

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 guidance on when to use this tool versus alternatives such as gmail_messages_get or other thread operations, nor any prerequisites or exclusions. The agent must infer usage from the purpose statement alone.

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