get_firewall_policies
Retrieve zone-based firewall policies for UniFi Network 9+, showing action, protocol, index order, and source/destination zones to review evaluation order.
Instructions
Get zone-based firewall policies (UniFi Network 9+).
Read-only operation: returns each policy's name, action, protocol, index order, and source/destination zone ids. Policies are evaluated in index order; predefined "(Return)" companions appear alongside custom rules. Use create_firewall_policy to add one, or set_firewall_policy_enabled / delete_firewall_policy to manage it.
Args: site: Site to operate on. Defaults to "default". device: Optional console name to target a specific UniFi device; omit for default.
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": "get_firewall_policies"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | No | Site to operate on. Defaults to "default". | default |
| device | No | Optional console name to target a specific UniFi device; omit for default. |