Skip to main content
Glama
dipseth

google-workspace-unlimited

Modify Gmail Message Labels

modify_gmail_message_labels

Add or remove labels from a Gmail message by specifying label IDs to apply or delete.

Instructions

Add or remove labels from a Gmail message

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
message_idYesThe ID of the Gmail message to modify labels for
add_label_idsNoLabel IDs to add to the message. Single ID: 'Label_123', List: ['Label_1', 'Label_2'], or JSON string
remove_label_idsNoLabel IDs to remove from the message. Single ID: 'Label_123', List: ['Label_1', 'Label_2'], or JSON string
user_google_emailNoUse 'me' or 'myself' for auto-resolution to authenticated user, or provide specific email address. If None, uses current authenticated user (auto-injected by middleware).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
errorNo
successYes
userEmailYes
message_idYes
labels_addedYes
labels_removedYes
labels_added_namesNo
labels_removed_namesNo
Behavior2/5

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

Annotations indicate readOnlyHint=false and destructiveHint=false, but description adds no behavioral details (e.g., idempotence, effects of duplicate labels, or error handling). Largely relies on annotations.

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?

Single, well-structured sentence with no unnecessary words. Every word is relevant to the tool's core functionality.

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 4 parameters (1 required) and an output schema, the description is too brief. It lacks context on how to obtain label IDs, atomicity of the operation, or response details.

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 100% (all parameter descriptions present). Description adds no additional meaning beyond the schema, so baseline score of 3 is appropriate.

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 'Add or remove labels from a Gmail message' uses specific verbs and resources, clearly distinguishing it from sibling tools like 'manage_gmail_label' (which manages labels themselves) and 'list_gmail_labels'.

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?

No guidance on when to use this tool instead of alternatives, no prerequisites (e.g., needing label IDs), and no distinction between adding vs. removing labels.

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/dipseth/google_workspace_fastmcp2'

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