Subnet Calculator
subnet_calculatorCalculate subnet network, broadcast, and usable host range from an IP address and optional mask or prefix, using local computation instead of router queries.
Instructions
子网换算工具(本地计算,不依赖设备)
设备侧没有 subnet func_name(实测 4.0.313 返回 1003),
因此该工具在本地完成换算。
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": "subnet_calculator"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ip | Yes | IP 地址,如 "192.168.9.101" | |
| mask | No | 子网掩码 "255.255.255.0" 或前缀长度 "24" | 255.255.255.0 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||