Manage Gmail Label
manage_gmail_labelCreate, update, or delete Gmail labels, including names, visibility, and colors, to organize messages and keep inbox structure current.
Instructions
Manages Gmail labels: create, update, or delete labels.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"user_google_email": "<user_google_email>",
"action": "<action>"
},
"name": "manage_gmail_label"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Label name. Required for create, optional for update. | |
| action | Yes | Action to perform on the label. | |
| label_id | No | Label ID. Required for update and delete operations. | |
| text_color | No | Label text color as a hex string, e.g. "#ffffff". Set together with background_color. Same palette. On update, omitting both keeps the label's current color. | |
| clear_color | No | On update, remove the label's current color. Cannot be combined with background_color or text_color. | |
| background_color | No | Label background color as a hex string, e.g. "#fb4c2f". Set together with text_color; Gmail requires both. Gmail accepts only its own palette, and an unsupported value is rejected before the request. Colors apply to user labels, not system labels. | |
| user_google_email | Yes | The user's Google email address. Required. | |
| label_list_visibility | No | Whether the label is shown in the label list. Defaults to "labelShow" on create. On update, omitting it keeps the label's current setting. | |
| message_list_visibility | No | Whether the label's messages are shown in the message list. Defaults to "show" on create. On update, omitting it keeps the label's current setting. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |