gmail_threads_modify
Modify Gmail thread labels to archive, mark read, or star messages by adding or removing label IDs such as INBOX, UNREAD, and STARRED.
Instructions
Modify a Gmail thread: add/remove labels. To archive, remove INBOX. To mark read, remove UNREAD. To star, add STARRED.
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": {
"userId": "<userId>",
"id": "<id>"
},
"name": "gmail_threads_modify"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Thread ID | |
| userId | Yes | User ID (use 'me') | |
| addLabelIds | No | JSON array of label IDs to add, e.g. ["STARRED"] | |
| removeLabelIds | No | JSON array of label IDs to remove, e.g. ["INBOX","UNREAD"] |