unlabel_messages
Remove one or more labels from specific Gmail messages in one account. Verifies each label ID afterward and reports the confirmed count plus any IDs that don't exist.
Instructions
Remove one or more labels from specific MESSAGES in one account. Message-level only — use unlabel_thread for a whole conversation. label_ids must be label IDs from get_labels for this same account, not display names. Every id is read back afterwards, so the response reports the verified count and names any id that does not exist.
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>",
"message_ids": "<message_ids>",
"label_ids": "<label_ids>"
},
"name": "unlabel_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | Yes | Account id ("personal", "tamu"). | |
| label_ids | Yes | Label IDs (from get_labels) to remove. Not display names. | |
| message_ids | Yes | Gmail message ids to update. |