waf_rate_rule_set
Create or remove a WAF rate-based rule on a site's WebACL to stop request floods, with per-IP limits, optional URI scope, and reversible removal.
Instructions
Create/attach (or remove) a WAF rate-based rule on a site's WebACL — the durable fix for a flood. 'site' is a WebACL ARN, ALB ARN, or instance id/name. 'limit' is requests per 5-min window per client IP; 'uri_scope' optionally restricts to a URI path prefix. Reversible (remove=true). DANGEROUS — confirm with the user first.
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": {
"site": "<site>"
},
"name": "waf_rate_rule_set"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | WebACL ARN, ALB ARN, or instance id/name. | |
| limit | No | Requests per 5-minute window per IP (default 2000). | |
| action | No | 'block' enforces; 'count' only meters (dry-run). | block |
| region | No | AWS region override. | |
| remove | No | Remove the named rule instead of adding it. | |
| account | No | AWS account label a WebACL/ALB ARN site (or a named ban config) is in; omit for the default account. An instance site always uses its own account. | |
| rule_name | No | Rule name (idempotent — reusing it updates the limit). | servonaut-rate |
| uri_scope | No | Optional URI path prefix to scope the rule to (e.g. '/'). |