Subnet calculator
subnetExact subnet math for an IPv4 or IPv6 block: network and last address, netmask, wildcard and broadcast (IPv4), usable host range and count, and what kind of range it is (private, documentation, public…). Set split_prefix to list the smaller subnets the block divides into. Arithmetic only: it reaches nothing outside Dotquad.
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": {
"cidr": "<cidr>"
},
"name": "subnet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cidr | Yes | A block such as 10.0.0.0/24 or 2001:db8::/48, an address and netmask such as 192.168.1.10 255.255.255.0, or a bare address | |
| split_prefix | No | Split the block into subnets of this prefix length (lists the first 256) |