Subnet / CIDR calculator
subnetCalculate IPv4 or IPv6 CIDR subnet boundaries offline: network, broadcast, usable range, netmask/wildcard, host count, and class. text accepts CIDR (192.0.2.0/24, 2001:db8::/48), IP plus space-separated netmask (10.0.0.5 255.255.255.0), or a bare IP (defaults to /32 or /128). Use for single-block CIDR planning, not IP format conversion (ip_convert) or batch IP enrichment (bulk_ip). Offline; host IPs normalise to network base with info, IPv4 /31-/32 omit broadcast, and invalid prefixes return isError=true. Requires middle.network auth; uses 1 daily quota unit.
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": {
"text": "<text>"
},
"name": "subnet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | A CIDR block or an address and mask. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| at | No | ISO-8601 UTC timestamp when the result was generated. | |
| ms | No | Elapsed execution time in milliseconds. | |
| data | Yes | Tool-specific structured payload (records, timings, parsed fields, or scores). | |
| tool | Yes | Catalog tool identifier. | |
| share | No | Optional shareable report link metadata. | |
| status | Yes | Overall diagnostic verdict (worst finding wins; no findings = pass). | |
| target | Yes | Normalised domain, IP, or input target. | |
| limited | No | Optional list of upstream data sources that were rate-limited or unavailable. | |
| summary | Yes | Plain-English and technical one-line summaries. | |
| findings | Yes | Ordered diagnostic findings with severity and actionable fixes. |