ip_in_subnet
Verify whether an IP address falls inside a CIDR block, and display the block's first-to-last range for IPv4 and IPv6.
Instructions
Check whether an IP address falls inside a CIDR block, and show that block's first-to-last range. 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": {
"ip": "<ip>",
"cidr": "<cidr>"
},
"name": "ip_in_subnet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ip | Yes | The address to test. | |
| cidr | Yes | The block, e.g. 10.10.0.0/16. |