Get Firewall Policy Details
unifi_get_firewall_policyRetrieves the full definition of a UniFi firewall policy by ID, including zones, matchers, protocol, action, schedule, and logging so you can inspect or verify rules.
Instructions
Get the full definition of one firewall policy by ID: source/destination zones and matchers, protocol, action, schedule, logging. IDs come from unifi_list_firewall_policies.
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>"
},
"name": "unifi_get_firewall_policy"
}
}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. | |
| policyId | Yes | Firewall policy ID (UUID from unifi_list_firewall_policies) |