Skip to main content
Glama
c0webster

Hardened Google Workspace MCP

by c0webster

batch_modify_gmail_message_labels

Add or remove labels from multiple Gmail messages simultaneously using batch processing. This tool helps organize email by applying consistent labeling across selected messages in one operation.

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

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

With no annotations provided, the description carries full burden. It discloses the batch nature and label modification behavior, but doesn't mention important aspects like whether this requires specific Gmail permissions, what happens if message_ids are invalid, whether changes are atomic, or any rate limits. The description adds some behavioral context but leaves significant gaps.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured with a clear purpose statement followed by organized parameter and return value sections. While efficient, the Args section could be slightly more concise by integrating parameter descriptions into the main text rather than separate bullet points.

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 modification tool with no annotations but with output schema (implied by Returns section), the description provides good coverage. It explains the tool's purpose, parameters, and return value. However, it lacks information about error conditions, authentication requirements, and batch size limitations that would be important for safe usage.

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?

With 50% schema description coverage (only add_label_ids and remove_label_ids have descriptions), the description compensates well by providing clear parameter documentation in the Args section. It explains all four parameters with their types and purposes, adding meaningful context beyond what the bare schema provides for user_google_email and message_ids.

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 specific action ('adds or removes labels'), resource ('multiple Gmail messages'), and scope ('in a single batch request'). It distinguishes from the sibling tool 'modify_gmail_message_labels' by emphasizing batch processing rather than single-message modification.

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?

The description implies usage context through 'batch request' and the parameter descriptions suggest when to use add_label_ids vs remove_label_ids. However, it doesn't explicitly state when to choose this tool over the single-message sibling 'modify_gmail_message_labels' or mention any prerequisites like authentication requirements.

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/c0webster/hardened-google-workspace-mcp'

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