gmail_manage_labels
Add or remove labels from an email by message ID to organize, archive, mark read or unread, star, or flag it.
Instructions
Add or remove labels from an email.
Args: message_id: The ID of the message to modify add_labels: Comma-separated labels to add (e.g., "STARRED,IMPORTANT" or "Work,Urgent") remove_labels: Comma-separated labels to remove (e.g., "INBOX,UNREAD")
Common labels: - STARRED: Star the message - IMPORTANT: Mark as important - UNREAD: Mark as unread (remove to mark as read) - INBOX: In inbox (remove to archive) - TRASH: In trash - SPAM: In spam
Discovery: use gmail_list_inbox or gmail_search_email first to find the message_id, and gmail_list_labels to verify custom label names.
Sibling tools: use gmail_manage_labels_bulk for multiple messages.
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>"
},
"name": "gmail_manage_labels"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| add_labels | No | ||
| message_id | Yes | ||
| remove_labels | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |