subnet_check_tool
Analyze subnet information for a target IP address. Retrieve host IP, mask, and gateway, then calculate network, broadcast, usable range, and CIDR to verify if the IP falls within the host's subnet.
Instructions
Analyze subnet information for a target IP address. Retrieves host IP, subnet mask, and gateway, calculates subnet range (network address, broadcast address, usable host range, CIDR), and determines whether the target IP falls within the same subnet as the host.
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": {
"target_ip": "<target_ip>"
},
"name": "subnet_check_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target_ip | Yes | The target IP address to check (e.g., 192.168.16.1) |