Update Waf Rule Tool
update_waf_rule_toolUpdate an existing Cloudflare WAF custom rule by changing its action, filter expression, enabled state, or description.
Instructions
Update an existing WAF custom rule.
Provide either zone_id or zone_name, not both.
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_id": "<rule_id>"
},
"name": "update_waf_rule_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | No | New action (optional) | |
| enabled | No | Enable or disable the rule (optional) | |
| rule_id | Yes | Rule ID (32-character hex string) | |
| zone_id | No | Zone ID (32-character hex string) | |
| zone_name | No | Zone name (domain like example.com) | |
| expression | No | New filter expression (optional) | |
| description | No | New description (optional) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||