Skip to main content
Glama
arkaigrowth

Gmail MCP Server

by arkaigrowth

gmail_apply_labels_to_messages

Apply or remove Gmail labels on specific message IDs. Specify add_label_names, remove_label_names, and optionally create_missing_labels.

Instructions

Apply or remove Gmail labels on explicit message IDs. Does not accept queries.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
accountNoEmail or alias (uses active account if omitted)
message_idsYesGmail message IDs returned by search/read tools
add_label_namesNo
remove_label_namesNo
create_missing_labelsNo
Behavior2/5

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

With no annotations provided, the description must carry the full burden of behavioral disclosure. It fails to mention side effects, permission requirements, idempotency, or behavior for missing labels. Only the basic action and query restriction are stated.

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 extremely concise, consisting of two short sentences with no redundant information. The key details are front-loaded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool mutates state with 5 parameters and no output schema, the description is too minimal. It lacks details on return values, effect on labels, and how parameters interact, making it incomplete for an agent to use correctly.

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

Parameters2/5

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

Schema description coverage is low (40%), and the description does not compensate. It does not explain the add_label_names, remove_label_names, or create_missing_labels parameters beyond the general action, leaving their semantics unclear.

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 tool applies or removes Gmail labels on explicit message IDs. It distinguishes from query-based tools by explicitly saying 'Does not accept queries.', making the purpose unambiguous.

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 indicates the tool should not be used with queries, providing a usage constraint. However, it does not explicitly name alternatives like gmail_search_messages or gmail_prepare_bulk_label_query, leaving the agent to infer when to use this vs. siblings.

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