Skip to main content
Glama

modify_thread_labels

Destructive

Add and/or remove labels on EVERY message of a Gmail thread in a single call. Same label id rules as modify_message_labels. Pass account when more than one Gmail account is connected (see list_accounts). Needs gmail.modify — accounts connected before this feature get a reconnect hint. This actually changes the mailbox — confirm with the user before calling for anything beyond routine triage.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
accountNoAccount label the thread belongs to. Required when several Gmail accounts are connected.
thread_idYesGmail thread id (a search result's external_id, or from get_thread).
add_label_idsNoLabel ids to add (see list_labels for ids; system labels like STARRED/IMPORTANT/UNREAD also work).
remove_label_idsNoLabel ids to remove.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations only supply destructiveHint=true; the description adds meaningful context beyond that: the required gmail.modify scope, a reconnect hint for older connections, and an explicit confirmation warning ('This actually changes the mailbox'). It stops short of describing reversibility or partial-failure behavior, but goes well past the annotation.

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 action and scope are front-loaded in the first sentence, and each subsequent sentence carries distinct load (label rules, account routing, auth, confirmation). It is dense without obvious filler, though the four sentences stack several topics that could be tighter.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive multi-parameter mutation with no output schema, the description covers what an agent needs: scope, auth requirement, multi-account routing, operational prerequisites, and a confirmation caveat. Nothing critical to correct invocation is missing.

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%, and it already documents thread_id format, account conditions, and label-id conventions (including system labels), so the schema carries the parameter burden. The description only adds a cross-reference ('Same label id rules as modify_message_labels'), which is a pointer rather than new semantics, fitting the baseline 3.

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?

The description states a specific verb pair and resource ('Add and/or remove labels on EVERY message of a Gmail thread'), and the phrase 'EVERY message of a Gmail thread' explicitly scopes it apart from the message-level sibling modify_message_labels. An agent can distinguish it from siblings without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

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

It gives concrete contextual guidance: pass `account` only when multiple Gmail accounts are connected (routing to list_accounts), and confirm with the user for anything beyond routine triage. It does not, however, explicitly state when to prefer the message-level sibling, leaving that differentiation to inference from the scope phrase.

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.

Resources