Skip to main content
Glama
redesignhealth

Google Workspace MCP Server

manage_gmail_label

Manage Gmail labels by creating, updating, or deleting them, with control over label and message list visibility.

Instructions

Manages Gmail labels: create, update, or delete labels.

Args: user_google_email (str): The user's Google email address. Required. action (Literal["create", "update", "delete"]): Action to perform on the label. name (Optional[str]): Label name. Required for create, optional for update. label_id (Optional[str]): Label ID. Required for update and delete operations. label_list_visibility (Literal["labelShow", "labelHide"]): Whether the label is shown in the label list. message_list_visibility (Literal["show", "hide"]): Whether the label is shown in the message list.

Returns: str: Confirmation message of the label operation.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNo
actionYes
label_idNo
user_google_emailYes
label_list_visibilityNolabelShow
message_list_visibilityNoshow

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

With no annotations provided, the description must carry the burden of behavioral disclosure. It explains parameter requirements per action and the return type, which is helpful. However, it does not disclose potential side effects, such as what happens to messages when a label is deleted, whether updates are reversible, or if any specific permissions are needed beyond providing the user email. This leaves room for ambiguity in 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?

The description is well-structured and front-loaded: a one-sentence summary, followed by a clean Args block with each parameter on its own line, and a Returns line. There is no fluff or repetition; every sentence earns its place. The format is easy to scan and directly supports parameter understanding.

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

Completeness4/5

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

Given the tool's complexity (6 parameters, 3 enums, three distinct actions) and the lack of annotations or schema descriptions, the description covers all essential aspects: action semantics, parameter requirements per action, and the return type. It does not include examples or error scenarios, but for a straightforward CRUD tool this is a minor gap. Overall, it provides sufficient context for an agent to use it correctly.

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

Parameters5/5

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

The schema has 0% description coverage for parameters, so the description's Args section is essential. It provides a clear explanation for each parameter, including the role of user_google_email, the action-dependent requirements for name and label_id, and the meaning of the visibility flags. This goes well beyond the bare type/enum info in the schema, making it highly informative for correct invocation.

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 opens with 'Manages Gmail labels: create, update, or delete labels,' which clearly identifies the resource (Gmail labels) and the specific actions (create, update, delete). This distinguishes it from sibling tools like list_gmail_labels, which only lists labels, and modify_gmail_message_labels, which acts on message labels rather than the label definitions themselves.

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 for when to use the tool (when needing to create, update, or delete labels) and clarifies which parameters are required for each action. However, it does not explicitly mention alternatives or state when not to use this tool, such as pointing out that list_gmail_labels is for read-only listing. This is a minor gap, but the context is strong enough to guide an agent.

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/redesignhealth/google-mcp-unofficial'

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