Skip to main content
Glama
tom275275

Google Workspace MCP Server

by tom275275

batch_modify_gmail_message_labels

Adds or removes Gmail labels across multiple messages in one batch request. Provide message IDs and label IDs to organize or update many emails without repeated individual calls.

Instructions

Adds or removes labels from multiple Gmail messages in a single batch request.

Args: user_google_email (str): The user's Google email address. Required. message_ids (List[str]): A list of message IDs to modify. add_label_ids (Optional[List[str]]): List of label IDs to add to the messages. remove_label_ids (Optional[List[str]]): List of label IDs to remove from the messages.

Returns: str: Confirmation message of the label changes applied to the messages.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
message_idsYes
add_label_idsNo
remove_label_idsNo
user_google_emailYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.14.3

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations, the description carries the burden of explaining behavior. It clearly states the mutating action and the confirmation return, but it does not disclose prerequisites like authentication, partial-failure behavior in batch operations, or whether both add and remove can be supplied together.

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?

The description is tightly structured: a clear one-sentence purpose, followed by a compact Args section and a Returns line. Every sentence adds necessary information without redundancy.

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?

The definition covers the core operation, parameters, and return value, but it omits context that would help an agent use it safely: no mention of authentication needs, batch size limits, partial failures, or how to choose between this and modify_gmail_message_labels. It is adequate but not complete for a mutation tool with no annotations.

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 description coverage is 0%, so the description must compensate. It provides a meaningful explanation for all four parameters, including which are required and what each list represents. It stops short of clarifying whether at least one of add_label_ids or remove_label_ids should be provided, but it is largely sufficient.

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 opens with a specific verb and resource: 'Adds or removes labels from multiple Gmail messages in a single batch request.' It clearly identifies the batch nature and distinguishes itself from the singular sibling modify_gmail_message_labels.

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?

The batch and 'multiple messages' wording implies when to use this tool, but it never explicitly says to prefer it when modifying many messages or points to modify_gmail_message_labels for single-message changes. Usage context is inferable, not explicitly stated.

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

Deploy Server

Other Tools