util_cidr_merge
CIDR Merge and Aggregate — Collapse a list of IPv4/IPv6 addresses, CIDRs and start-end ranges into the smallest exact CIDR set, offline. cidrs= is separated by commas, spaces, | or newlines (up to 5000 entries). Optional exclude= cuts ranges out (holes split blocks) and format=json|plain|nginx_deny|nginx_allow|iptables|apache_deny returns ready-to-paste lines in text. Merges duplicates, overlaps and adjacent blocks, normalizes host bits (10.0.0.5/24 to 10.0.0.0/24), reports invalid entries, exact address counts, ranges and the reduction percentage. Pairs with threat/blocklist and firewall audits. Price: $0.002 USDC (Base, via x402).
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": {
"cidrs": "<cidrs>"
},
"name": "util_cidr_merge"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cidrs | Yes | 10.0.0.0/25,10.0.0.128/25,10.0.1.0/24,192.168.1.7,192.168.1.6,2001:db8::/33,2001:db8:8000::/33 |