Create, rename or delete a label
manage_labelsCreate, update, or delete Gmail user labels. Deleting removes the label from all messages while keeping messages intact; system labels can't be changed.
Instructions
Manages user labels. action=create needs name (nest with "/", e.g. "Clients/Acme" — the parent must already exist). action=update needs label_id plus at least one of name, label_list_visibility (show | show_if_unread | hide — the label in the sidebar) or message_list_visibility (show | hide — its messages in the list); only the provided fields change. action=delete needs label_id and removes the label from EVERY message it was applied to — the messages survive, the label and its message-associations do not; this cannot be undone. System labels (INBOX, STARRED, ...) cannot be created, renamed or deleted. To apply/remove labels on mail, use modify_message or modify_thread, not this tool.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | create (required) / update: the label name, e.g. "Invoices" or nested "Clients/Acme". | |
| action | Yes | What to do with the label. | |
| label_id | No | update/delete: the user label to target. | |
| label_list_visibility | No | Sidebar visibility of the label itself. | |
| message_list_visibility | No | Whether the label's messages show in the message list. |