Netbox Get Available Prefixes
netbox_get_available_prefixesFind free IP prefix space within a parent prefix by excluding child prefixes; read-only, so verify directly assigned IPs/ranges before treating candidates as empty.
Instructions
Find space inside a prefix that is not covered by a child prefix. Read-only.
Only child prefixes are considered. IP addresses and IP ranges assigned directly under the parent are not subtracted, so check ipam.ipaddress and ipam.iprange (e.g. with the "parent" filter) before treating a candidate as empty.
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": {
"parent_id": "<parent_id>"
},
"name": "netbox_get_available_prefixes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max number of items returned (default 5, max 100) | |
| vrf_id | No | Optional VRF check. Pass a VRF ID, or "global" for the global table. The call fails if the parent prefix is in a different VRF. | |
| parent_id | Yes | ID of the parent prefix (ipam.prefix) | |
| prefix_length | No | Optional mask length (e.g. 26). When set, free blocks too small are dropped and the rest are split into candidates of this size. When omitted, free blocks are returned as NetBox reports them (maximal blocks, e.g. 10.0.4.0/22). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |