gmail_prepare_bulk_label_query
Preview a bulk Gmail label operation by specifying a query and label. Stages changes for confirmation before applying.
Instructions
Preview and stage a capped query-based bulk label operation. Nothing changes until gmail_confirm_bulk_label_operation.
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": {
"query": "<query>",
"label_name": "<label_name>"
},
"name": "gmail_prepare_bulk_label_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Gmail query selecting messages to label | |
| account | No | Email or alias (uses active account if omitted) | |
| archive | No | Whether to archive matched messages after labeling | |
| label_name | Yes | Label name to apply | |
| max_messages | No | ||
| create_missing_label | No |