Get authoritative rule fields (WAF or Smart Firewall)
get_rule_fieldsFetch the live Wirefilter field/function schema for WAF or Smart Firewall rules directly from the validator, ensuring expression accuracy.
Instructions
Fetch the live, authoritative Wirefilter field/function schema directly from the rules-validator for the given rule_type ('waf' = HTTP L7 fields; 'smart_firewall' = L3/L4 + JA4 fields, no http.*). This is the single source of truth and never drifts from what validation accepts — prefer it over the static wafcontext://fields resource when building expressions. Falls back to static context if the validator is unreachable.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_rule_fields"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rule_type | No | waf |