Skip to main content
Glama
mhajder

NetBox MCP Server

by mhajder

Netbox Create Object

netbox_create_object

Create one NetBox object from field data and related object IDs, using lookups for foreign keys, and return the created record.

Instructions

Create one NetBox object. Returns the created object.

Look up related objects first (netbox_get_objects) and pass their IDs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataYesField values. Foreign keys take numeric IDs, e.g. {'name': 'sw01', 'device_type': 4, 'role': 2, 'site': 1, 'status': 'active'}. Tags: [{'name': 'core'}] or [3]. Use netbox_describe_object_type for the fields and choices.
object_typeYesNetBox object type as 'app.model' (e.g. 'dcim.device', 'ipam.ipaddress', 'virtualization.virtualmachine') or as an API path ('dcim/devices'). netbox_list_object_types lists every type.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare non-read-only, non-idempotent, non-destructive, open-world behavior, so safety profile is covered. The description adds a useful behavioral workflow constraint (resolve foreign keys before creating) plus return confirmation, but says nothing about auth requirements, validation failures, or error behavior.

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?

Three short sentences, zero filler, purpose front-loaded before the workflow hint. Every sentence earns its place.

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?

An output schema exists, so return values need no explanation, and the description's prerequisite hint covers the main practical pitfall for this nested-object call. Minor gaps around error/validation behavior remain but are not essential for correct invocation.

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 description coverage is 100%, so both parameters are already fully documented in the schema, including FK-as-ID and tag formats. The description only restates the FK-ID convention, adding no semantics beyond the schema — baseline 3 applies.

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

Purpose4/5

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

States a specific verb and resource ('Create one NetBox object') and adds that it returns the created object. The word 'one' implicitly contrasts with netbox_bulk_create_objects, but no sibling is named explicitly, so differentiation is left partly to inference.

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

Usage Guidelines4/5

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

Gives an explicit prerequisite workflow: look up related objects first with netbox_get_objects and pass their IDs. That routes the agent to the right sibling for the lookup step. No explicit when-not guidance (e.g. use bulk_create for multiple objects) is given.

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