Merge duplicate Gmail labels
merge_duplicate_gmail_labelsRe-label every message carrying any of a set of duplicate labels with one label to keep, then delete the emptied duplicates. Ask the user to confirm before calling this.
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": {
"mailbox": "<mailbox>",
"labelIds": "<labelIds>",
"keepLabelId": "<keepLabelId>"
},
"name": "merge_duplicate_gmail_labels"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mailbox | Yes | Email address of the connected Gmail/Google Workspace mailbox to act on. Call list_authorized_mailboxes to see available options. | |
| labelIds | Yes | All label IDs in the duplicate group, including the one to keep | |
| keepLabelId | Yes | The label ID that should survive; the rest are relabeled away and deleted |