unifi_update_firewall_rule
Updates a UniFi firewall rule by merging specified changes (enabled, action, name) with its current state using rule ID and optional site ID.
Instructions
Update a firewall rule by its _id. Fetches current state and merges your changes.
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": {
"rule_id": "<rule_id>"
},
"name": "unifi_update_firewall_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rule_id | Yes | ||
| site_id | No | default | |
| enabled | No | ||
| action | No | ||
| name | No |