Skip to main content
Glama

batch_modify_gmail_message_labels

Add or remove labels from multiple Gmail messages simultaneously to organize email efficiently. This tool processes batch requests for bulk label management.

Instructions

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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
user_google_emailYesThe user's Google email address. Required.
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.

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 carries full burden. It mentions batch modification but doesn't disclose critical behavioral traits: whether this requires specific Gmail permissions, if changes are reversible, rate limits for batch operations, error handling for invalid message IDs, or what the output contains. The description is minimal and lacks operational context.

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, efficient sentence that directly states the tool's purpose without unnecessary words. It's appropriately sized and front-loaded with the core functionality.

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 has an output schema (which handles return values) and 100% schema coverage, the description's minimalism is somewhat acceptable. However, as a mutation tool with no annotations, it should provide more behavioral context about permissions, idempotency, and error handling to be complete for safe agent use.

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%, with all parameters well-documented in the schema. The description adds no additional parameter semantics beyond implying batch processing of multiple messages. It doesn't explain label ID formats, message ID sources, or interaction between add/remove parameters. Baseline 3 is appropriate since the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('adds or removes labels') and resource ('multiple Gmail messages'), and specifies it's a batch operation. However, it doesn't explicitly differentiate from the sibling tool 'modify_gmail_message_labels' (singular vs. batch), which could cause confusion about when to use each.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description mentions 'in a single batch request' which implies efficiency for multiple messages, but provides no explicit guidance on when to use this vs. the singular 'modify_gmail_message_labels' tool or other Gmail-related tools. No prerequisites, alternatives, or exclusions are stated.

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/HuntsDesk/ve-gws'

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