ipv4_subnet
Calculate IPv4 subnet details including network address, broadcast address, and number of hosts by providing an IP address and optional CIDR prefix length.
Instructions
Calculate IPv4 subnet information: network, broadcast, hosts.
Parameters:
ip — IP address (e.g. '192.168.1.0').
cidr — CIDR prefix length (default: 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": {
"ip": "<ip>"
},
"name": "ipv4_subnet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ip | Yes | ||
| cidr | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |