Enable/Disable Firewall Policy
unifi_set_firewall_policy_enabledEnable or disable an existing user-defined firewall policy to control live traffic filtering. System and predefined policies cannot be modified.
Instructions
Enable or disable an existing user-defined firewall policy (system/predefined policies cannot be modified). This changes live traffic filtering — confirm with the user before toggling a policy, and double-check WHICH policy with unifi_get_firewall_policy first.
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": {
"policyId": "<policyId>",
"enabled": "<enabled>"
},
"name": "unifi_set_firewall_policy_enabled"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| siteId | No | Site ID (UUID from unifi_list_sites). Optional — when the console has exactly one site it is used automatically. | |
| enabled | Yes | true to enable the policy, false to disable it | |
| policyId | Yes | Firewall policy ID (UUID from unifi_list_firewall_policies) |