gmail-labels-mcp-server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| GOOGLE_CLIENT_ID | Yes | OAuth2 client ID from Google Cloud Console | |
| GOOGLE_CLIENT_SECRET | Yes | OAuth2 client secret from Google Cloud Console |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| gmail_list_labelsA | List all labels (tags) in the Gmail account. Returns both system labels (INBOX, SENT, TRASH, etc.) and user-created labels. Use this to find label IDs needed for add/remove operations. Returns: List of labels with their IDs, names, types, and message counts. Examples:
|
| gmail_create_labelA | Create a new user label (tag) in Gmail. Args:
Returns: The created label with its ID, name, and visibility settings. Examples:
|
| gmail_delete_labelA | Delete a user-created label from Gmail. System labels cannot be deleted. Args:
Note: Deleting a label removes it from all messages but does not delete the messages. Examples:
|
| gmail_modify_message_labelsA | Add or remove labels (tags) on a specific Gmail message. Args:
Use gmail_list_labels to find label IDs. Common system label IDs:
Returns: Updated message with its current label IDs. Examples:
|
| gmail_modify_thread_labelsA | Add or remove labels on all messages in a Gmail thread at once. Args:
Returns: Updated thread with message count and affected message IDs. Examples:
|
| gmail_get_message_labelsA | Retrieve the current labels on a specific Gmail message. Args:
Returns: Message metadata including subject, snippet, and current label IDs. Examples:
|
| gmail_bulk_label_by_searchA | Search Gmail messages using a query and apply label changes to all matching messages. Args:
Common query examples:
Returns: Count of messages updated and their IDs. Examples:
|
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 7 tools
Each tool targets a distinct resource and action: label CRUD, message label operations, thread label operations, and bulk search modifications. There is no overlap between tools; even the three modifying tools differ by scope (single message, single thread, bulk search).
All tool names follow a consistent gmail_ prefix with a verb_noun pattern (e.g., list_labels, create_label, modify_message_labels). Even 'bulk_label_by_search' uses a clear action-object-modifier structure. The naming is uniform and predictable.
Seven tools is well-scoped for a Gmail label management server. It covers label administration and all common ways to apply/remove labels without excess overlap or missing essentials. The set feels neither sparse nor bloated.
The tool set provides label CRUD (list, create, delete) and comprehensive label modification via message, thread, and bulk search. The only notable gap is the lack of an update/rename label operation, which is a minor omission that agents can work around by creating a new label and migrating.