Smallest Covering CIDR
cidr-coverUse when combining a selected group of firewall allowlist or blocklist entries into one smallest covering CIDR, or when checking the exact extra coverage. Accept 1 to 1,000 IP addresses or CIDRs from one address family, up to 64 characters each; normalize host bits and count overlaps once. Return the canonical CIDR, inclusive range, and exact decimal-string counts, including additionalAddressCount. The range may allow or block additional addresses. This computes one CIDR for the supplied inputs; it does not optimize an entire list against an entry limit or change firewall rules. Remote MCP calls submit inputs to this server; the calculation makes no outbound network requests.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inputs | Yes | IP addresses or CIDRs from one address family. Surrounding whitespace is ignored during parsing; CIDRs with host bits are normalized. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cidr | Yes | The smallest single canonical CIDR containing every input address. | |
| range | Yes | ||
| family | Yes | ||
| normalizedInputs | Yes | Canonical CIDRs in input order. Individual addresses become /32 or /128. Duplicates are retained here. | |
| inputAddressCount | Yes | Number of distinct addresses in the union of the inputs. | |
| coveredAddressCount | Yes | Number of all addresses in the resulting CIDR. | |
| additionalAddressCount | Yes | Covered address count minus input address count. |