Create label
create_labelCreates a Gmail label or IMAP folder so messages can be organized and moved into it; supports nested names with "/" and returns existing items instead of duplicating them.
Instructions
Create a Gmail label or an IMAP folder, so update_messages and move_messages can use it. Nest with "/" ("Kunden/Acme"); on IMAP Dove uses the server's own separator. If a label or folder with this name already exists, it is returned with created: false. System names (INBOX, SENT, TRASH, ...) cannot be created. Counts as one change against the hourly organize budget. Not available for Gmail mailboxes connected over IMAP (create the label in Gmail there).
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": {
"account": "<account>",
"name": "<name>"
},
"name": "create_label"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Label or folder name, nested with "/". | |
| account | Yes | Mailbox alias or email address from list_accounts. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | No | ||
| account | No | ||
| created | No |