[Diagnostic] cmdb-assistant: Incomplete parameter schemas for update operations #137
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Diagnostic Report
Generated: 2026-01-24T17:03:00Z
Command Tested: cmdb-assistant NetBox MCP plugin update operations
Reporter: Claude Code via /debug-report
Project Context
bandit-den/serv-home-appsssh://git@hotserv.tailc9b278.ts.net:2222/bandit-den/serv-home-apps.git/home/lmiranda/apps-homemainIssue Summary
The cmdb-assistant NetBox MCP plugin has incomplete parameter schemas for update operations. The
virt_update_vmandvirt_update_clustertools only expose theidparameter in their schemas, but don't include updatable fields likedescription,comments,vcpus,memory,disk.This forces users to bypass the MCP tools and call the NetBox API directly using curl/Python scripts.
Detailed Findings
Tool: virt_update_vm
Schema returned by ToolSearch:
Expected fields (based on NetBox API):
id(required) - VM IDdescription(optional) - VM descriptioncomments(optional) - Detailed comments/notesvcpus(optional) - Number of vCPUsmemory(optional) - Memory in MBdisk(optional) - Disk in GBstatus(optional) - VM statusrole(optional) - Device role IDplatform(optional) - Platform IDcluster(optional) - Cluster IDImpact: Cannot update VM metadata through MCP tools.
Tool: virt_update_cluster
Schema returned by ToolSearch:
Expected fields (based on NetBox API):
id(required) - Cluster IDname(optional) - Cluster namedescription(optional) - Cluster descriptioncomments(optional) - Detailed comments/notestype(optional) - Cluster type IDsite(optional) - Site IDstatus(optional) - Cluster statusImpact: Cannot update cluster metadata through MCP tools.
Diagnostic Results
Test 1: validate_repo_org
Call:
validate_repo_org(repo="bandit-den/serv-home-apps")Status: PASS
Response:
Test 2: get_labels
Call:
get_labels(repo="bandit-den/serv-home-apps")Status: FAIL
Response:
Test 3: list_issues
Call:
list_issues(repo="bandit-den/serv-home-apps", state="open")Status: FAIL
Response:
Test 4: list_milestones
Call:
list_milestones(repo="bandit-den/serv-home-apps")Status: FAIL
Response:
Test 5: suggest_labels
Call:
suggest_labels(context="Bug fix: cmdb-assistant NetBox MCP plugin...", repo="personal-projects/leo-claude-mktplace")Status: PASS (but returned empty array)
Response:
Summary
Failed Tools
Note: The 404 errors for tests 2-4 are expected because
bandit-den/serv-home-appsis a new repository with no issues/milestones yet. These are not bugs.Error Category
Hypothesis
The cmdb-assistant plugin's MCP tool definitions are incomplete for update operations. The Python code likely implements the full NetBox API functionality, but the MCP tool schema definitions (in
tools.pyor similar) only expose theidparameter.This is a documentation/schema definition issue, not a functional code issue.
Suggested Investigation
File:
plugins/cmdb-assistant/server/tools.py(or equivalent)virt_update_vmandvirt_update_clusterFile:
plugins/cmdb-assistant/server/netbox_client.py(or equivalent)Similar tools to check:
dcim_update_device- likely has same issuedcim_update_site- likely has same issue*_update_*tools in the pluginReproduction Steps
/home/lmiranda/apps-homeToolSearchto findmcp__plugin_cmdb-assistant_netbox__virt_update_vmidparameterWorkaround Used
Created Python script to call NetBox API directly:
Generated by /debug-report
Fix proposed in PR #138
Changes:
To test after merge:
ToolSearchforvirt_update_vm- verify new fields appear in schemadescriptionorcommentsfieldsPlease test after merge and report back.