gmail_create_filter
Create a Gmail filter to automatically organize, forward, or label incoming emails based on criteria like sender, subject, size, or attachments.
Instructions
Create a Gmail filter (automatic message rule)
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "gmail_create_filter"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Match recipient | |
| from | No | Match sender | |
| size | No | Message size in bytes for comparison | |
| star | No | Star matching messages | |
| query | No | Match Gmail search query | |
| forward | No | Email to forward matching messages to | |
| subject | No | Match subject | |
| categorize | No | Categorize into tab | |
| addLabelIds | No | Comma-separated label IDs to add | |
| excludeChats | No | Exclude chat messages | |
| negatedQuery | No | Exclude messages matching this query | |
| hasAttachment | No | Match messages with attachments | |
| markImportant | No | Mark as important (true) or not important (false) | |
| removeLabelIds | No | Comma-separated label IDs to remove | |
| sizeComparison | No | Size comparison operator |