validate_rules
Verify Snort rules by checking for errors, warnings, and missing SID hygiene using actual engine runs, supporting quick write-test-fix cycles.
Instructions
Check rules with Snort itself. Give a registered rules file (rules_id) or inline rules_text. Returns errors as {line, sid, error, plain}, warnings, and workbench_lint hygiene items (e.g. a missing sid, which Snort does not report). Fast enough for a write-test-fix loop. Example: validate_rules(rules_text='alert http any any -> any any ( msg:"x"; http_uri; content:"abc"; sid:1000001; rev:1; )')
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": "validate_rules"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rules_id | No | ||
| rules_text | No |