Skip to main content
Glama

patch_label

Update specific properties of existing Gmail labels, including name, visibility settings, and color customization, without replacing the entire label configuration.

Instructions

Patch an existing label (partial update)

Input Schema

NameRequiredDescriptionDefault
idYesThe ID of the label to patch
nameNoThe display name of the label
messageListVisibilityNoThe visibility of messages with this label in the message list
labelListVisibilityNoThe visibility of the label in the label list
colorNoThe color settings for the label

Input Schema (JSON Schema)

{ "properties": { "color": { "additionalProperties": false, "description": "The color settings for the label", "properties": { "backgroundColor": { "description": "The background color of the label as hex string", "type": "string" }, "textColor": { "description": "The text color of the label as hex string", "type": "string" } }, "required": [ "textColor", "backgroundColor" ], "type": "object" }, "id": { "description": "The ID of the label to patch", "type": "string" }, "labelListVisibility": { "description": "The visibility of the label in the label list", "enum": [ "labelShow", "labelShowIfUnread", "labelHide" ], "type": "string" }, "messageListVisibility": { "description": "The visibility of messages with this label in the message list", "enum": [ "show", "hide" ], "type": "string" }, "name": { "description": "The display name of the label", "type": "string" } }, "required": [ "id" ], "type": "object" }

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/HitmanLy007/gmail-mcp'

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