remove_label
Removes a specified label from a Gmail message by message ID, returns the updated label list, and reports no error if the label is absent.
Instructions
Remove a label from an email.
Required:
message_id (str) — Gmail message ID.
label (str) — label name to remove.
Returns on success:
{"message_id": "...", "labels": ["INBOX", "IMPORTANT"]}}
(the label is removed from labels array)
Workflow note: Removes the label from the message's label set.
No error if the label was not present.
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": {
"message_id": "<message_id>",
"label": "<label>"
},
"name": "remove_label"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | Yes | ||
| message_id | Yes |