Skip to main content
Glama

Create Device_role

netbox_create_device_role

Create 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

TableJSON Schema
NameRequiredDescriptionDefault
nameYesRole name (required).
slugYesURL-safe slug (required).
tagsNoOptional array of tag slugs to apply to the object.
colorNoHex color without '#', e.g. '4caf50'.
parentNoParent role id (device roles are nestable in NetBox 4.3+).
vm_roleNoWhether this role can be assigned to virtual machines.
descriptionNo
custom_fieldsNoOptional object of custom-field slugs -> values. Only include fields defined on your NetBox instance.
config_templateNoConfig template id.
response_formatNoOutput format: 'markdown' (default, human-readable) or 'json' (full structured payload). Use 'json' when chaining follow-up tool calls.markdown
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations indicate readOnlyHint=false and destructiveHint=false, and the description confirms 'This adds a new row to NetBox,' aligning with a non-destructive write operation. The description adds the dry-run recommendation and notes the default output format, providing context beyond annotations. No contradictions.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise: two short paragraphs and a 'Returns' line. Every sentence adds value (purpose, side-effect caution, output format). No redundant or vague statements.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool has 10 parameters with no output schema. The description covers the response format and advises caution about creation. Given high schema coverage, this is sufficient. However, it lacks details on error handling or duplicate behavior, but annotations fill some gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 90%, and the schema provides detailed descriptions for all parameters. The description does not add any parameter explanations beyond the schema. It only mentions the 'response_format' parameter regarding output format. Baseline 3 is appropriate since the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states 'Create a new device_role in NetBox,' specifying the action (create) and the resource (device_role). Among siblings, there are other role-related tools (netbox_get_device_role, netbox_update_device_role, netbox_delete_device_role) and a separate netbox_create_role, so the specific mention of 'device_role' distinguishes this tool.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description advises 'Ask before calling if the user wanted a dry-run,' which implies caution against unintended side-effects. However, it does not explicitly state when to use this tool versus alternatives (e.g., update or delete), nor does it provide conditions or prerequisites. The guidance is minimal.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ZenixSolutions/netbox-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server