Skip to main content
Glama

Batch Modify Gmail Message Labels

batch_modify_gmail_message_labels
Destructive

Apply or remove Gmail labels across multiple messages at once to organize inboxes efficiently. Streamlines bulk label management without individual message edits.

Instructions

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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
message_idsYesA list of message IDs to modify.
add_label_idsNoList of label IDs to add to the messages.
remove_label_idsNoList of label IDs to remove from the messages.
user_google_emailYesThe user's Google email address. Required.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Install Server

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already indicate this is a destructive, non-read-only operation, and the description matches that without contradicting it. The description adds the useful behavioral detail that this is a single batch request, but it does not disclose nuances like partial failure behavior or what happens if only message_ids are provided with no label changes.

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 a single sentence with no fluff or repetition of schema details. It front-loads the core action and the distinguishing batch characteristic efficiently.

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?

With full schema descriptions, an output schema, and annotations covering mutability/destructiveness, the description is minimally sufficient. However, it could be more complete by explicitly signaling the singular sibling tool and clarifying batch behavior when add and remove arrays are both supplied.

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

Parameters3/5

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

Schema description coverage is 100%, and each parameter already has a clear description. The tool description does not add additional meaning about parameter relationships, such as whether add_label_ids and remove_label_ids can be used simultaneously or whether at least one is expected.

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 states a specific verb ('Adds or removes'), a clear resource ('labels from multiple Gmail messages'), and a distinguishing mode ('in a single batch request'). This makes it easy to tell apart from the singular sibling tool 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 phrase 'multiple Gmail messages' and 'single batch request' imply that this tool is for bulk label modifications, but it does not explicitly say when to prefer it over modify_gmail_message_labels or mention any exclusions. Usage context is only implied, not stated.

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

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/WorldCentralKitchen/google_workspace_mcp'

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