Skip to main content
Glama
arkaigrowth

Gmail MCP Server

by arkaigrowth

gmail_prepare_bulk_label_query

Preview a bulk Gmail label operation by specifying a query and label. Stages changes for confirmation before applying.

Instructions

Preview and stage a capped query-based bulk label operation. Nothing changes until gmail_confirm_bulk_label_operation.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesGmail query selecting messages to label
accountNoEmail or alias (uses active account if omitted)
archiveNoWhether to archive matched messages after labeling
label_nameYesLabel name to apply
max_messagesNo
create_missing_labelNo
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 operation is a preview/stage and that nothing changes until confirmation, indicating nondestructive behavior. However, it does not mention authentication, rate limits, or edge cases.

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?

Two brief sentences, front-loaded with purpose. No redundant information.

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?

No output schema is provided, and the description lacks any mention of return values (e.g., count of matched messages). Additionally, two parameters (max_messages, create_missing_label) lack schema descriptions and are not elaborated in the description. For a preview tool, more detail on output is expected.

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 coverage is 67%, with 4 of 6 parameters having descriptions. The description adds the context of 'capped', but does not explain parameters like create_missing_label or max_messages beyond what the schema provides. Baseline is 3 due to moderate coverage.

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 verb (preview and stage), resource (capped query-based bulk label operation), and distinguishes from siblings like gmail_apply_labels_to_messages which applies immediately. It also emphasizes that nothing changes until confirmation.

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 provides clear context: use this to prepare a bulk label operation, then confirm with gmail_confirm_bulk_label_operation. It implies when not to use (e.g., for immediate application), but does not explicitly list alternatives or exclusions.

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/arkaigrowth/gmail-mcp-server'

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