gmail_create_label
Idempotently create a Gmail label, including nested Parent/Child names, and set visibility when the label is first created. Use it to organize messages and enable automatic labeling with filters.
Instructions
Idempotently create a Gmail label, including nested names such as Parent/Child.
Visibility is applied only when a new label is created. Allowed message_list_visibility values are show and hide; allowed label_list_visibility values are labelShow, labelShowIfUnread, and labelHide.
Discovery: use gmail_list_labels to inspect names before supplying required name.
Sibling tools: use gmail_create_filter to apply the label automatically, or gmail_list_labels to inspect existing 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": {
"name": "<name>"
},
"name": "gmail_create_label"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| label_list_visibility | No | labelShow | |
| message_list_visibility | No | show |