Skip to main content
Glama

modify_gmail_labels_tool

Add or remove labels from Gmail messages to organize email, mark as read/unread, star, archive, or move to trash.

Instructions

Modify labels on a Gmail message.

Common label IDs:

  • INBOX - Message in inbox

  • UNREAD - Message is unread

  • STARRED - Message is starred

  • TRASH - Message in trash

  • SPAM - Message in spam

  • IMPORTANT - Message marked important

Args: user_google_email: The user's Google email address message_id: The message ID to modify add_labels: List of label IDs to add (e.g., ["STARRED", "IMPORTANT"]) remove_labels: List of label IDs to remove (e.g., ["UNREAD", "INBOX"])

Examples: - Archive: remove_labels=["INBOX"] - Mark read: remove_labels=["UNREAD"] - Mark unread: add_labels=["UNREAD"] - Star: add_labels=["STARRED"] - Move to trash: add_labels=["TRASH"]

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
user_google_emailYes
message_idYes
add_labelsNo
remove_labelsNo

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/sam-ent/appscript-mcp'

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