gmail_create_filter
Create Gmail filters with conditions (from, to, subject, attachment) and actions (add/remove labels) to automatically organize incoming emails.
Instructions
Create a Gmail filter. Label names must already exist and are resolved to label IDs.
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": {
"criteria": "<criteria>",
"action": "<action>"
},
"name": "gmail_create_filter"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | ||
| account | No | Email or alias (uses active account if omitted) | |
| criteria | Yes |