Apply a Gmail label
gmail_apply_labelAssign a label to selected Gmail messages, creating the label automatically if it does not exist. Simplify inbox triage by categorizing messages such as Newsletters or Receipts.
Instructions
Apply a label to the given messages. The label is created if it does not exist yet (e.g. 'Newsletters', 'Receipts', 'To Review').
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": {
"ids": "<ids>",
"label": "<label>"
},
"name": "gmail_apply_label"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | Yes | Message ids to label. | |
| label | Yes | Label name, e.g. 'Receipts'. |