create_label
Creates a Gmail label with optional nested path and color settings, automatically adding missing parent labels unless disabled.
Instructions
Create a label. Nested labels use "/" (Projects/Alpha); missing parents are created unless autoCreateParents is false. Color by preset name or by hex pair from Gmail's palette.
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": {
"name": "<name>"
},
"name": "create_label"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| textColor | No | ||
| colorPreset | No | One of: BLACK, DARK_GRAY, GRAY, LIGHT_GRAY, WHITE, RED, ORANGE, YELLOW, GREEN, MINT, TEAL, BLUE, PURPLE, PINK, DARK_RED, DARK_ORANGE, DARK_GREEN, DARK_BLUE, DARK_PURPLE, DARK_PINK, BROWN (LABEL_COLOR_PRESET_ prefix accepted). | |
| backgroundColor | No | Hex color from Gmail's label palette, e.g. #fb4c2f. Arbitrary colors are rejected by Gmail. | |
| autoCreateParents | No | ||
| labelListVisibility | No | Default labelShow. | |
| messageListVisibility | No | Default show. |