create_label
Create a new Gmail label. Labels can be used to organize emails. After creation, use add_labels to apply the label to messages.
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 | Name for the new label (e.g., 'Projects/Alpha' for nested labels) | |
| labelListVisibility | No | Whether to show the label in the label list: labelShow (default), labelShowIfUnread, or labelHide | |
| messageListVisibility | No | Whether to show the label in the message list: show (default) or hide |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| name | Yes | ||
| type | No | ||
| message | Yes |