gmail_create_label
Create a new Gmail label with optional color and visibility settings, supporting nested names using slashes. Works across multiple Google accounts.
Instructions
Create a new Gmail label with optional color and visibility settings. Requires full scope.
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": {
"accountId": "<accountId>",
"name": "<name>"
},
"name": "gmail_create_label"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Label name (use "/" for nesting, e.g., "Work/Projects") | |
| accountId | Yes | The Google account ID, alias, or email | |
| textColor | No | Text color hex (e.g., "#ffffff") | |
| backgroundColor | No | Background color hex (e.g., "#16a765") | |
| labelListVisibility | No | Whether to show label in label list | |
| messageListVisibility | No | Whether to show label in message list |