label_messages
Add label IDs to specific Gmail messages in an account, targeting message IDs only rather than whole threads. Use IDs from get_labels; results are verified.
Instructions
Add one or more labels to specific MESSAGES in one account. Message-level only — a Gmail thread id usually equals the id of the thread's first message, so passing a thread id here labels just that one message; use label_thread to label the whole conversation. label_ids must be label IDs from get_labels for this same account (e.g. "Label_5459..." or a system label such as STARRED/IMPORTANT), 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": "label_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | Yes | Account id ("personal", "tamu"). | |
| label_ids | Yes | Label IDs (from get_labels) to add. Not display names. | |
| message_ids | Yes | Gmail message ids to update. |