create_label
Creates Gmail user labels, including nested labels via '/' and missing parent labels; existing labels are returned unchanged and system labels are rejected.
Instructions
Create a user label; 'Projects/2026' is a sub-label of 'Projects'. A label that already exists is returned as it is (nothing created). System labels (INBOX, SPAM, TRASH...) are refused.
Args: displayName: label name; '/' separates nested labels. autoCreateParentLabels: also create missing parent labels (default true).
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": {
"displayName": "<displayName>"
},
"name": "create_label"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| displayName | Yes | ||
| autoCreateParentLabels | No |