Validate a rule expression with tests (WAF or Smart Firewall)
validate_waf_expression_with_testsCheck the syntax and matching behavior of Wirefilter rule expressions by testing them against sample data, returning validation and match results.
Instructions
Validate a Wirefilter rule expression and match it against test data (mock data if none given). rule_type selects the scheme: 'waf' (HTTP L7, default) or 'smart_firewall' (L3/L4 + JA4; no http.* fields). Returns valid (boolean), error_message (string), matched (boolean), and test_error (string) if the test fails.
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": "<rule>"
},
"name": "validate_waf_expression_with_tests"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rule | Yes | ||
| test | No | ||
| rule_type | No | waf |