Skip to main content
Glama

unlabel_messages

Remove one or more labels from specific Gmail messages in one account. Verifies each label ID afterward and reports the confirmed count plus any IDs that don't exist.

Instructions

Remove one or more labels from specific MESSAGES in one account. Message-level only — use unlabel_thread for a whole conversation. label_ids must be label IDs from get_labels for this same account, not display names. Every id is read back afterwards, 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>",
      "label_ids": "<label_ids>"
    },
    "name": "unlabel_messages"
  }
}

Input Schema

NameRequiredDescriptionDefault
accountYesAccount id ("personal", "tamu").
label_idsYesLabel IDs (from get_labels) to remove. Not display names.
message_idsYesGmail message ids to update.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.6.2

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false and destructiveHint=false, but the description adds genuinely new behavior: every id is read back after the write, so the response reports a verified count and names any id that does not exist. It doesn't say whether removal is reversible or what happens if message_ids contain invalid ids, but the verification disclosure is substantive.

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, each carrying distinct information: scope, sibling routing, parameter provenance, and post-call verification. Front-loaded with the action and nothing redundant.

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 three-parameter mutation tool with no output schema, the description covers what it does, which sibling to use instead, where the IDs must come from, and what the response reports. Nothing an agent needs in order to call it correctly 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 coverage is 100% and the schema already documents all three parameters, including that label_ids are IDs from get_labels and not display names. The description only adds the 'same account' constraint on label_ids, which is useful but marginal beyond what the structured fields provide.

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 one or more labels from specific MESSAGES') with explicit scope, then immediately distinguishes itself from the sibling unlabel_thread by scope (message vs whole conversation). An agent can pick correctly without opening a 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?

Names the alternative tool explicitly and the condition that selects it ('Message-level only — use unlabel_thread for a whole conversation'), and adds the prerequisite that label_ids must come from get_labels for the same account.

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