gmail_create_filter
Create Gmail filters to automatically label, remove labels, or forward emails based on sender, recipient, subject, query, or attachment presence.
Instructions
Create a Gmail filter. criteria: {from, to, subject, query, hasAttachment}. action: {addLabelIds, removeLabelIds, forward}.
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 | ||
| criteria | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |