prepare_waf_pr
Add generated WAF rules and test files to a local CrowdSec hub clone to prepare a pull request.
Instructions
Help prepare a pull request in a local clone of the CrowdSec hub repository by adding the generated WAF rule and associated test files.
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": {
"hub_dir": "<hub_dir>",
"rule_yaml": "<rule_yaml>",
"test_config_yaml": "<test_config_yaml>",
"test_nuclei_yaml": "<test_nuclei_yaml>",
"rule_filename": "<rule_filename>",
"nuclei_filename": "<nuclei_filename>"
},
"name": "prepare_waf_pr"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hub_dir | Yes | Path to the local clone of the CrowdSec hub repository | |
| rule_yaml | Yes | Generated WAF rule YAML content | |
| rule_filename | Yes | Relative path (from hub root) for the rule file | |
| collection_name | No | Target collection in the format author/name (mapped to collections/author/name.yaml) | |
| nuclei_filename | Yes | Filename for the nuclei test template | |
| test_config_yaml | Yes | Generated AppSec test config.yaml content | |
| test_nuclei_yaml | Yes | Generated adapted nuclei template content |