Validate a rule expression (WAF or Smart Firewall)
validate_waf_expressionValidates Wirefilter rule expressions for WAF or Smart Firewall schemes, optionally testing against custom data, and returns validity status with error messages.
Instructions
Validate a Wirefilter rule expression. rule_type selects the scheme: 'waf' (HTTP L7 fields, default) or 'smart_firewall' (L3/L4 + JA4 fields; http.* fields are NOT available and will be rejected). Optionally test against custom test data. Returns a dictionary with valid (boolean) and error_message (string) when invalid.
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": {
"expression": "<expression>"
},
"name": "validate_waf_expression"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| test | No | ||
| rule_type | No | waf | |
| expression | Yes |