create_filter
Create a sender filter that matches an address or domain and labels, archives, marks read, marks spam, or trashes messages on each sweep; optionally apply it to the INBOX now.
Instructions
Create a sender filter (applied by this server, NOT a real Proton Sieve filter). Only with apply_now=True is it applied to the INBOX right away (default: no).
Matching messages (From contains from_address; a domain or address works
best) are handled on each sweep. action: label (default), archive, spam,
read or trash (only when explicitly wanted). 'label' is non-destructive
(COPY to Labels/Filter/<term>, the message stays in the inbox) - the safest
level for fuzzy names. Protected senders are never touched.
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": {
"from_address": "<from_address>"
},
"name": "create_filter"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | No | label | |
| apply_now | No | ||
| from_address | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |