Gmail MCP

by shinzo-labs
Verified
MIT License
126
1
  • Apple
  • Linux

patch_label

Update specific attributes of an existing Gmail label, such as color, visibility, or name, using the label ID. Simplify email organization with partial label modifications.

Instructions

Patch an existing label (partial update)

Input Schema

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

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "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" }
ID: 1je9b8hapn