Create label
create_labelCreate a new Proton Mail label to organize messages as non-exclusive tags; it succeeds silently if the label already exists.
Instructions
Create a new Proton label. Pass the label name (e.g. "Important"); the tool puts it under "Labels/". If it exists in another case, the result gives its real name. Labels are non-exclusive tags: a message can carry many labels in addition to living in one folder. Apply or remove labels on messages with update_message_labels. Idempotent — succeeds silently if the label already exists.
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 | Label name (e.g. "Important"); a "Labels/" prefix is accepted and ignored. Labels can't be nested, so no other "/". |