calc_subnet
Calculate network, broadcast, usable hosts, and subnet mask from a CIDR. Get all required details for IP subnet planning in one step.
Instructions
Calculate subnet details (network, broadcast, usable hosts, mask) from a CIDR like 192.168.1.0/24
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": "calc_subnet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cidr | Yes | IPv4 address or CIDR, e.g. "192.168.1.0/24" |