Skip to main content
Glama
Skeptomenos

google-workspace-mcp-advanced

by Skeptomenos

batch_modify_gmail_message_labels

Batch add or remove labels from multiple Gmail messages in a single request. Preview changes with a dry run option.

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. dry_run (bool): If True, preview batch label changes without mutating 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.
dry_runNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

No annotations exist, so the description carries full burden. It discloses that the tool modifies messages (dry_run prevents mutation) and returns a confirmation string. It does not mention authorization needs, rate limits, or thread implications, but the core behavior is adequately described.

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 structured as a Python docstring with a one-line summary followed by Args and Returns sections. It is concise, front-loads the purpose, and contains no unnecessary words.

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?

Given no output schema and 5 parameters, the description covers inputs well and notes a confirmation string return. It lacks details on error handling, partial failures, or quotas, but for a batch mutation tool, it is reasonably complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description explains all five parameters beyond the schema: user_google_email ('The user's Google email address'), message_ids ('list of message IDs'), and dry_run ('preview batch label changes without mutating messages'). Schema coverage is only 40%, but the description compensates fully.

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: 'Adds or removes labels from multiple Gmail messages in a single batch request.' It specifies the action (adds/removes), resource (labels on Gmail messages), and batch scope, distinguishing it from sibling tools like manage_gmail_label (label CRUD) and modify_gmail_message_labels (likely single message).

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 mentions a dry_run parameter to preview changes without mutation, providing a safety guideline. However, it does not explicitly state when to use this batch tool over alternatives like modify_gmail_message_labels for single messages, nor does it provide exclusions or prerequisites.

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/Skeptomenos/google-workspace-mcp-advanced'

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