List firewall policies (zone-based)
unifi_list_firewall_policiesList zone-based UniFi firewall policies with their action, zones, protocol, schedule and logging settings. Filter by search term or include system policies to audit what traffic is allowed or blocked.
Instructions
List zone-based firewall policies (Network 9.0+) sorted by index: action, source and destination (zone and match), protocol, connection states, schedule and logging. Predefined (system) policies are left out unless include_predefined. On classic firewalls use unifi_list_firewall_rules; to find the policy that applies to a connection use unifi_check_firewall_path.
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_policies"
}
}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 | |
| include_predefined | No | Also return predefined/system policies |