fix(cmdb-assistant): complete MCP tool schemas for update operations #138

Merged
lmiranda merged 1 commits from fix/issue-137-update-schema-completeness into development 2026-01-24 17:22:01 +00:00
Owner

Summary

  • Expand parameter schemas for 15 update tools that previously only exposed the id field
  • The underlying Python implementation already supported all fields via **kwargs, but Claude could not discover available parameters
  • Each tool now exposes all commonly-used optional fields matching the NetBox API

Updated Tools

Virtualization:

  • update_virtual_machine - Added: name, status, cluster, site, role, tenant, platform, vcpus, memory, disk, primary_ip4, primary_ip6, description, comments
  • update_cluster - Added: name, type, group, site, status, tenant, description, comments

DCIM:

  • update_site, update_location, update_rack, update_manufacturer, update_device_type, update_device_role, update_platform, update_interface, update_cable

IPAM:

  • update_vrf, update_prefix, update_ip_address, update_vlan

Test plan

  • Reinstall plugin in test project
  • Run ToolSearch for virt_update_vm and verify schema shows all new fields
  • Test updating a VM with description/comments fields
  • Verify no regressions in existing functionality

Fixes #137

🤖 Generated with Claude Code

## Summary - Expand parameter schemas for 15 update tools that previously only exposed the `id` field - The underlying Python implementation already supported all fields via `**kwargs`, but Claude could not discover available parameters - Each tool now exposes all commonly-used optional fields matching the NetBox API ## Updated Tools **Virtualization:** - `update_virtual_machine` - Added: name, status, cluster, site, role, tenant, platform, vcpus, memory, disk, primary_ip4, primary_ip6, description, comments - `update_cluster` - Added: name, type, group, site, status, tenant, description, comments **DCIM:** - `update_site`, `update_location`, `update_rack`, `update_manufacturer`, `update_device_type`, `update_device_role`, `update_platform`, `update_interface`, `update_cable` **IPAM:** - `update_vrf`, `update_prefix`, `update_ip_address`, `update_vlan` ## Test plan - [ ] Reinstall plugin in test project - [ ] Run `ToolSearch` for `virt_update_vm` and verify schema shows all new fields - [ ] Test updating a VM with description/comments fields - [ ] Verify no regressions in existing functionality Fixes #137 🤖 Generated with [Claude Code](https://claude.com/claude-code)
lmiranda added 1 commit 2026-01-24 17:19:30 +00:00
Expand parameter schemas for 15 update tools that previously only exposed
the 'id' field. The underlying Python implementation already supported
all fields via **kwargs, but Claude couldn't discover available parameters.

Updated tools:
- virtualization: update_virtual_machine, update_cluster
- dcim: update_site, update_location, update_rack, update_manufacturer,
        update_device_type, update_device_role, update_platform,
        update_interface, update_cable
- ipam: update_vrf, update_prefix, update_ip_address, update_vlan

Each tool now exposes all commonly-used optional fields matching the
NetBox API, following the pattern established by dcim_update_device.

Fixes #137

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
lmiranda merged commit 98df35a33e into development 2026-01-24 17:22:01 +00:00
lmiranda deleted branch fix/issue-137-update-schema-completeness 2026-01-24 17:22:01 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: personal-projects/leo-claude-mktplace#138