List firewall rules (legacy)
unifi_list_firewall_rulesLists classic UniFi firewall rules by ruleset and index with action, protocol, source, and destination. Use for legacy networks; on Network 11+ or zone-based sites, list firewall policies instead.
Instructions
List classic firewall rules, sorted by ruleset (WAN_IN, LAN_IN, ...) and rule_index, with action, protocol, source and destination. Not available on Network 11+ or on sites migrated to the zone-based firewall (Network 9+): use unifi_list_firewall_policies there.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "unifi_list_firewall_rules"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw | No | Return the full controller objects (large) | |
| site | No | Site name/ID as used in the API (e.g. 'default'). Defaults to the configured site. See unifi_list_sites. | |
| fields | No | Only return these fields per item (dot paths, e.g. uplink.name) | |
| search | No | Case-insensitive substring match on names, MACs, IPs and similar |