Skip to main content
Glama

Google Workspace MCP Server

MIT License
105
  • Apple
  • Linux

modify_gmail_message_labels

Add or remove Gmail message labels to organize emails efficiently. Specify email address and message ID to update labels dynamically.

Instructions

Adds or removes labels from a Gmail message. 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. Returns: str: Confirmation message of the label changes applied to the message.

Input Schema

NameRequiredDescriptionDefault
add_label_idsNo
message_idYes
remove_label_idsNo
serviceYes
user_google_emailYes

Input Schema (JSON Schema)

{ "properties": { "add_label_ids": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Add Label Ids" }, "message_id": { "title": "Message Id", "type": "string" }, "remove_label_ids": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Remove Label Ids" }, "service": { "title": "service", "type": "string" }, "user_google_email": { "title": "User Google Email", "type": "string" } }, "required": [ "service", "user_google_email", "message_id" ], "title": "modify_gmail_message_labelsArguments", "type": "object" }

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/taylorwilsdon/google_workspace_mcp'

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