create_filter
Create a Gmail filter using custom match criteria and automated actions like labeling, removing labels, or forwarding.
Instructions
Create a new Gmail filter with custom criteria and actions.
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": "create_filter"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Actions to perform (addLabelIds, removeLabelIds, forward) | |
| criteria | Yes | Criteria for matching emails (from, to, subject, query, negatedQuery, hasAttachment, excludeChats, size, sizeComparison) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |