Skip to main content
Glama
Skeptomenos

google-workspace-mcp-advanced

by Skeptomenos

modify_gmail_message_labels

Add or remove Gmail message labels to archive, delete, or organize emails.

Instructions

Adds or removes labels from a Gmail message. To archive an email, remove the INBOX label. To delete an email, add the TRASH label.

Args: user_google_email (str): The user's Google email address. Required. message_id (str): The ID of the message to modify. add_label_ids (Optional[List[str]]): List of label IDs to add to the message. remove_label_ids (Optional[List[str]]): List of label IDs to remove from the message. dry_run (bool): If True, preview label changes without mutating the message.

Returns: str: Confirmation message of the label changes applied to the message.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
user_google_emailYes
message_idYes
add_label_idsNoLabel IDs to add to the message.
remove_label_idsNoLabel IDs to remove from the message.
dry_runNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It mentions mutation and provides dry_run for safe preview, but does not detail side effects, permissions required, or irreversibility of actions like adding TRASH. This is adequate but lacks depth on consequences.

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 concise and well-structured, with a clear opening sentence, examples, and a detailed Args section. Every sentence adds value, and the information is front-loaded.

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

Completeness5/5

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

The description covers the main operations, return value (confirmation string), and includes examples. Given the output schema exists, it appropriately explains the return. It is complete for the complexity of the tool.

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

Parameters4/5

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

The description includes an 'Args' section that explains each parameter, including add_label_ids and remove_label_ids which have minimal schema descriptions. This compensates for the 40% schema coverage. The dry_run parameter is clearly explained as a preview without mutation.

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 a Gmail message' with specific verbs and resource. It provides concrete examples for archiving and deleting, and implicitly differentiates from batch_modify_gmail_message_labels by focusing on a 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 Guidelines4/5

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

The description gives explicit usage cases like archiving (remove INBOX) and deleting (add TRASH). It also mentions dry_run for previewing. However, it does not explicitly compare to similar tools like batch_modify_gmail_message_labels or manage_gmail_label, or state when not to use.

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