gmail_create_filter
Creates a Gmail filter to match incoming messages by sender, subject, size, or query and automatically apply actions like labeling or forwarding.
Instructions
Create a Gmail filter to automatically process incoming messages. Criteria define which messages match; actions define what happens to them. Requires settings scope and confirmation.
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": {
"accountId": "<accountId>",
"criteria": "<criteria>",
"action": "<action>",
"confirm": "<confirm>"
},
"name": "gmail_create_filter"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Actions to perform on matched messages | |
| confirm | Yes | Must be true to create the filter. This is a safety gate. | |
| criteria | Yes | Criteria for matching messages | |
| accountId | Yes | The Google account ID, alias, or email |