delete_firewall_rule
Permanently remove a firewall rule from the live pfSense appliance by rule ID, with optional dry-run preview and description verification to avoid deleting the wrong rule.
Instructions
Delete a firewall rule from the live pfSense appliance. WARNING: This is irreversible.
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": {
"rule_id": "<rule_id>"
},
"name": "delete_firewall_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | Must be set to True to execute. Safety gate for destructive operations. | |
| dry_run | No | If True, preview the operation without executing. | |
| rule_id | Yes | Rule ID (array index from search_firewall_rules, e.g., 0, 1, 2...) | |
| verify_descr | No | Safety check — if provided, verifies the rule at this ID still has this description before deleting. Prevents deleting the wrong rule after ID shifts. | |
| apply_immediately | No | Whether to apply changes immediately |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||