block_ip
Block or unblock an IP/CIDR for a site by resolving the right AWS layer (WebACL, SG/NACL), reversible but requiring user confirmation.
Instructions
Block (or unblock) an IP/CIDR at the layer that actually works. Resolves the best layer for 'site' (WebACL/ALB ARN or instance): prefers the WebACL (sees the real client IP behind an ALB), falls back to a configured SG/NACL, and otherwise recommends the host layer rather than silently editing the firewall. Reversible. 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": {
"ip": "<ip>",
"site": "<site>"
},
"name": "block_ip"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ip | Yes | IP address or CIDR to block/unblock. | |
| site | Yes | WebACL ARN, ALB ARN, or instance id/name. | |
| action | No | 'block' or 'unblock'. | block |
| region | No | AWS region override. | |
| 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. |