Skip to main content
Glama
gmail-mcp

gmail-mcp

gmail_manage_labels_bulk

Add or remove labels across multiple Gmail messages at once, returning per-message results and restore tokens for reverting successful changes.

Instructions

Add or remove labels on multiple emails with per-message results.

Each item accepts message_id, add_labels, and remove_labels using the same label syntax as gmail_manage_labels. Successful items include their own restore_token for gmail_restore_email.

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": {
      "items": "<items>"
    },
    "name": "gmail_manage_labels_bulk"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden and does disclose meaningful behavior: per-message results, partial-success semantics, and a per-item restore_token enabling reversal, which signals this is a mutating operation. It never states what requires permissions, what happens to failed items, or whether partial application is all-or-nothing, leaving key mutation risks undisclosed.

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 short sentences, front-loaded with purpose and scope before the item-shape and restore-token details. No filler, and the delegation to sibling tools is stated compactly rather than re-explained.

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 batch mutation tool with no annotations and no output schema, the description covers the essentials: throughput model (multiple messages), result model (per-message), and the recovery mechanism (restore_token). What is missing is the failure/partial-success contract and any note that removed labels are a destructive change, which matters given the absent destructiveHint.

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 0% and the item object is completely untyped (additionalProperties: true), so the description is the only source of item structure. It names the three item fields (message_id, add_labels, remove_labels) and delegates label value syntax to gmail_manage_labels, which is substantial compensation. Gaps remain: field types, required vs optional per item, and the semantics of combining add and remove in one item are undocumented.

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?

Starts with a specific verb+resource ('Add or remove labels on multiple emails') and immediately scopes it as a batch operation with per-message results, which distinguishes it from the singular gmail_manage_labels. It stops short of an explicit 'use gmail_manage_labels for a single message' statement, so differentiation is implied by the plural/bulk framing rather than spelled out.

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

Usage Guidelines3/5

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

Guidance is implied rather than stated: it delegates label syntax to gmail_manage_labels and points at gmail_restore_email as the recovery path for returned restore_tokens. There is no explicit when-to-use-this-vs-single-message rule and no note about batch size limits or when partial failure is likely, so an agent must infer the selection criteria.

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