Create Service
netbox_create_serviceCreate a new L4 service in NetBox for a device, virtual machine, or FHRP group, specifying name, protocol, and ports.
Instructions
Create a new service 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 | Service name (required). | |
| tags | No | Optional array of tag slugs to apply to the object. | |
| ports | Yes | Array of port numbers, e.g. [80, 443] (required). | |
| comments | No | ||
| protocol | Yes | L4 protocol (required). | |
| description | No | ||
| ipaddresses | No | IP address ids this service is bound to. | |
| custom_fields | No | Optional object of custom-field slugs -> values. Only include fields defined on your NetBox instance. | |
| response_format | No | Output format: 'markdown' (default, human-readable) or 'json' (full structured payload). Use 'json' when chaining follow-up tool calls. | markdown |
| parent_object_id | Yes | Parent object id (required). | |
| parent_object_type | Yes | Parent object type (required). NetBox 4.3+ uses a generic parent, not device/virtual_machine. |