subnet_mask_convert
Convert between a subnet mask, CIDR prefix, wildcard mask and device count. Input a dotted mask (255.255.255.192 -> /26), a hex netmask from macOS ifconfig (0xffffff00 -> /24), a wildcard (0.0.0.255 -> /24), a prefix (/22) or how many devices you need ("50 hosts" -> smallest prefix that fits). Returns prefix, mask, wildcard, total and usable addresses, binary mask.
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": {
"mask": "<mask>"
},
"name": "subnet_mask_convert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mask | Yes | e.g. 255.255.255.192, /22, 0.0.0.255 or 50 hosts |