Netbox Allocate Available
netbox_allocate_availableAllocate the next free IP, prefix, VLAN, or ASN from a NetBox pool and create it atomically, preventing duplicate assignments by concurrent callers.
Instructions
Allocate the next free IP, prefix, VLAN or ASN from a pool and create it. NetBox picks the value atomically, so concurrent callers never get the same one.
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_type": "<parent_type>",
"parent_id": "<parent_id>",
"kind": "<kind>"
},
"name": "netbox_allocate_available"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | Attributes of the new object(s). Prefixes need {'prefix_length': 24}; VLANs need {'name': 'users'}. A list allocates several at once, e.g. [{'description': 'a'}, {'description': 'b'}] for two IPs. | |
| kind | Yes | What to look for: 'ips' (prefix or IP range), 'prefixes' (prefix), 'vlans' (VLAN group), 'asns' (ASN range). | |
| parent_id | Yes | Numeric object ID. | |
| parent_type | Yes | Type of the parent object that holds the pool. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||