add_security_rule
Creates a new security policy rule in the candidate configuration, requiring a commit to activate.
Instructions
[MODIFIES CONFIG] Creates a new security policy rule. Staged in candidate config — requires 'commit' to activate.
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": {
"name": "<name>",
"from_zones": "<from_zones>",
"to_zones": "<to_zones>",
"source": "<source>",
"destination": "<destination>",
"application": "<application>",
"service": "<service>",
"action": "<action>"
},
"name": "add_security_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | Tags to apply to the rule | |
| name | Yes | Rule name | |
| action | Yes | Rule action | |
| source | Yes | Source addresses or 'any' | |
| log_end | No | Log at session end (default: true in PanOS) | |
| service | Yes | Services (e.g. ['application-default', 'service-http']) or 'any' | |
| disabled | No | Create rule in disabled state | |
| firewall | No | Target firewall name (from firewalls.json). Required when multiple firewalls are configured; optional otherwise. | |
| to_zones | Yes | Destination zones (e.g. ['untrust']) | |
| log_start | No | Log at session start | |
| from_zones | Yes | Source zones (e.g. ['trust', 'dmz']) | |
| application | Yes | Applications (e.g. ['web-browsing', 'ssl']) or 'any' | |
| description | No | Optional description | |
| destination | Yes | Destination addresses or 'any' | |
| profile_group | No | Security profile group name to apply |