Skip to main content
Glama

unlabel_thread

Remove labels from every message in a Gmail conversation to archive a thread or mark it read. Apply label IDs like INBOX or UNREAD to update the whole thread at once.

Instructions

Remove labels from EVERY message in a conversation (users.threads.modify). Pass label_ids=["INBOX"] to archive an entire thread, or ["UNREAD"] to mark the whole conversation read.

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>",
      "thread_id": "<thread_id>",
      "label_ids": "<label_ids>"
    },
    "name": "unlabel_thread"
  }
}

Input Schema

NameRequiredDescriptionDefault
accountYesAccount id ("personal", "tamu").
label_idsYesLabel IDs to remove from every message in the thread.
thread_idYesGmail thread id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.6.2

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false and destructiveHint=false, so the description's main added value is scoping (all messages in the thread) and the archive/mark-read recipes. It does not say whether the operation is reversible, what happens when a label is absent, or what the response contains, and removing labels with destructiveHint=false is consistent rather than contradictory.

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?

Two tight sentences with the scope statement and API reference front-loaded, followed by the two most common invocations. Nothing is wasted and no sentence is redundant.

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?

With no output schema, three fully documented required parameters and annotations covering the safety profile, the description supplies everything needed to call it correctly. The only omission is edge-case behavior such as removing a label the thread does not carry.

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 100%, so the baseline is 3, but the description goes beyond the schema by giving concrete label_ids values and explaining the real-world effect of each (archive, mark read), plus clarifying thread_id's granularity as an entire conversation.

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 ('Remove labels from EVERY message in a conversation'), names the underlying API (users.threads.modify), and the emphasis on EVERY distinguishes it from the sibling unlabel_messages, which presumably targets individual messages.

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?

Gives two concrete usage recipes: label_ids=["INBOX"] to archive a whole thread and ["UNREAD"] to mark it read, which tells the agent exactly when this tool is the right pick. It stops short of an explicit when-not or a named alternative for single-message unlabeling, relying on 'EVERY message' to imply the split.

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