Skip to main content
Glama
redesignhealth

Google Workspace MCP Server

batch_modify_gmail_message_labels

Batch add or remove labels from multiple Gmail messages at once, streamlining label management for efficient inbox organization.

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_idsNoLabel IDs to add to messages.
remove_label_idsNoLabel IDs to remove from messages.
user_google_emailYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

No annotations are provided, so the description must carry the behavioral disclosure burden. It states the core action and return type but does not discuss permissions, error handling, partial failures, or the destructive nature of removing labels. It also does not mention authentication requirements, which are likely necessary.

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 well-structured as a docstring with Args and Returns sections. It is concise, with each line serving a purpose, and no extraneous text.

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?

Given the tool's moderate complexity and the absence of annotations, the description provides adequate but not exhaustive context. It covers all parameters and the return value, but lacks prerequisites, error handling, or batch-specific behaviors. The output schema is noted as present, so return description is redundant, but the overall context is slightly thin.

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?

The input schema covers 50% of parameters, leaving user_google_email and message_ids undocumented in the schema. The description compensates by clearly explaining these two parameters, noting 'Required' and providing a concise purpose. It also confirms the optional nature of add/remove lists.

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 clearly states the tool's function: 'Adds or removes labels from multiple Gmail messages in a single batch request.' It uses a specific verb and resource, and the scope 'multiple' and 'batch' differentiates it from the 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 description implies batch usage but does not explicitly state when to use this tool over the singular modify_gmail_message_labels or other alternatives. It mentions 'single batch request' but no explicit exclusions or alternative references.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/redesignhealth/google-mcp-unofficial'

If you have feedback or need assistance with the MCP directory API, please join our Discord server