label_thread
Adds labels to every message in a Gmail thread by thread ID, enabling whole-conversation labeling in one call.
Instructions
Add labels to EVERY message in a conversation (users.threads.modify), which is what Gmail's UI does when you label a thread. Use this rather than label_messages whenever you have a Thread ID and mean the whole conversation. Reversible with unlabel_thread.
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>",
"thread_id": "<thread_id>",
"label_ids": "<label_ids>"
},
"name": "label_thread"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | Yes | Account id ("personal", "tamu"). | |
| label_ids | Yes | Label IDs (from get_labels) to add to every message in the thread. | |
| thread_id | Yes | Gmail thread id. |