Skip to main content
Glama

Google Workspace MCP Server

by ZatesloFL

batch_modify_gmail_message_labels

Add or remove Gmail labels for multiple messages in a single batch operation. Simplify organizing and categorizing emails efficiently using user-specified label IDs and message IDs.

Instructions

Adds or removes labels from multiple Gmail messages in a single batch request.

Args: user_google_email (str): The user's Google email address. Required. message_ids (List[str]): A list of message IDs to modify. add_label_ids (Optional[List[str]]): List of label IDs to add to the messages. remove_label_ids (Optional[List[str]]): List of label IDs to remove from the messages.

Returns: str: Confirmation message of the label changes applied to the messages.

Input Schema

NameRequiredDescriptionDefault
add_label_idsNoLabel IDs to add to messages.
message_idsYes
remove_label_idsNoLabel IDs to remove from messages.
user_google_emailYes

Input Schema (JSON Schema)

{ "properties": { "add_label_ids": { "default": [], "description": "Label IDs to add to messages.", "items": { "type": "string" }, "title": "Add Label Ids", "type": "array" }, "message_ids": { "items": { "type": "string" }, "title": "Message Ids", "type": "array" }, "remove_label_ids": { "default": [], "description": "Label IDs to remove from messages.", "items": { "type": "string" }, "title": "Remove Label Ids", "type": "array" }, "user_google_email": { "title": "User Google Email", "type": "string" } }, "required": [ "user_google_email", "message_ids" ], "type": "object" }

Other Tools from Google Workspace MCP Server

Related Tools

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

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