set_filter
Create or replace a SIEVE filter script on a self-hosted mail server via ManageSieve to set up server-side email filtering with valid SIEVE syntax.
Instructions
Create or replace a SIEVE filter script on the server via ManageSieve. The script content should be valid SIEVE syntax. Only available on self-hosted mail servers — Gmail and Outlook do not support ManageSieve.
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": {
"accountId": "<accountId>",
"name": "<name>",
"content": "<content>"
},
"name": "set_filter"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The name for the SIEVE script (e.g. "spam-filter") | |
| content | Yes | Valid SIEVE script content | |
| accountId | Yes | The ID of the account to use | |
| confirmationId | No | Confirmation token from a prior confirmation-required response. Required to execute write operations when server is in --confirm mode. |