Subnet Info
subnet_infoRetrieve network details for any IP prefix or address, including network/broadcast addresses, netmask, host count, and address classification. Supports both IPv4 and IPv6.
Instructions
Get detailed information about an IP prefix or address.
Returns network/broadcast addresses, netmask, host count, and classification (private, global, multicast, etc.). Works with both IPv4 and IPv6.
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": {
"prefix": "<prefix>"
},
"name": "subnet_info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prefix | Yes | IP prefix in CIDR (e.g. '10.0.0.0/24') or single IP (e.g. '1.1.1.1') |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prefix | Yes | ||
| netmask | Yes | ||
| hostmask | Yes | ||
| is_global | Yes | ||
| ip_version | Yes | ||
| is_private | Yes | ||
| is_loopback | Yes | ||
| is_multicast | Yes | ||
| usable_hosts | Yes | Usable hosts; a decimal string when it exceeds 2^53 (large IPv6 ranges) | |
| is_link_local | Yes | ||
| prefix_length | Yes | ||
| network_address | Yes | ||
| total_addresses | Yes | Total addresses; a decimal string when it exceeds 2^53 (large IPv6 ranges) | |
| broadcast_address | Yes |