Enable or disable custom rules
set_rules_enabledToggle existing custom DNS rules on or off without deleting them, preserving each rule's action and redirect target. Use it to pause filtering changes temporarily after confirming the request.
Instructions
Switch existing custom rules on or off without deleting them. The rule's action and redirect target are kept. Requires confirm=true.
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": {
"profile": "<profile>",
"hostnames": "<hostnames>",
"enabled": "<enabled>",
"confirm": "<confirm>"
},
"name": "set_rules_enabled"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | Yes | Must be exactly true after reviewing the requested change | |
| enabled | Yes | ||
| profile | Yes | Exact profile name or profile ID | |
| hostnames | Yes | Exact rule names as shown by list_profile_rules |