gmail_create_filter
Create an idempotent Gmail filter from criteria like query, sender, subject, or attachments and apply actions such as adding/removing labels, marking read, starring, or skipping inbox.
Instructions
Create an idempotent Gmail filter from criteria and label actions.
Label names in add_labels and remove_labels are comma-separated. Missing add labels are created after validation; remove labels must already exist.
Sibling tools: use gmail_create_label to configure label visibility first, gmail_list_filters to inspect definitions, and gmail_delete_filter to remove one.
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 |
|---|---|---|---|
| star | No | ||
| query | No | ||
| subject | No | ||
| mark_read | No | ||
| add_labels | No | ||
| never_spam | No | ||
| skip_inbox | No | ||
| to_address | No | ||
| from_address | No | ||
| exclude_chats | No | ||
| negated_query | No | ||
| remove_labels | No | ||
| has_attachment | No | ||
| mark_important | No |