Create Device_role
netbox_create_device_roleCreate a device role in NetBox by providing a required name and slug, and optionally set color, parent, VM role, description, tags, custom fields, and config template.
Instructions
Create a new device_role in NetBox.
This adds a new row to NetBox. Ask before calling if the user wanted a dry-run.
Returns: Markdown summary of the newly created object (default) or JSON with the full NetBox response.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Role name (required). | |
| slug | Yes | URL-safe slug (required). | |
| tags | No | Optional array of tag slugs to apply to the object. | |
| color | No | Hex color without '#', e.g. '4caf50'. | |
| parent | No | Parent role id (device roles are nestable in NetBox 4.3+). | |
| vm_role | No | Whether this role can be assigned to virtual machines. | |
| description | No | ||
| custom_fields | No | Optional object of custom-field slugs -> values. Only include fields defined on your NetBox instance. | |
| config_template | No | Config template id. | |
| response_format | No | Output format: 'markdown' (default, human-readable) or 'json' (full structured payload). Use 'json' when chaining follow-up tool calls. | markdown |