Skip to main content
Glama

Disconnect Cables by ID or Device Instance

disconnect_cables
DestructiveIdempotent

Remove specific cables by identifier or strip all cables attached to a mounted device or modular carrier from the active rack, then re-evaluate PoE budgets and plug clearances. Supply a non-empty 'cable_ids' list, 'instance_id', or both to disconnect their union; 'instance_id' matches both 'from' and 'to' endpoints across a carrier and its child sub-modules while leaving external patch-panel drops intact, whereas omitting both or passing only an empty list returns status 'INVALID' with a PORT_NOT_FOUND issue and zero mutations. Valid calls push an undo snapshot, persist rack.yaml atomically, and return removed IDs, remaining cable count, and updated validation results, succeeding idempotently when targeted IDs are already absent. Use when rewiring ports while keeping hardware mounted; use connect_cables to add or replace cables, or modify_equipment with action 'remove' to delete a device and its cables.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "disconnect_cables"
  }
}

Input Schema

NameRequiredDescriptionDefault
cable_idsNoSpecific cable_id values to disconnect (can be combined with instance_id; at least one of cable_ids or instance_id must be provided).
instance_idNoMounted device or modular-carrier instance_id whose attached cables (including child sub-module cables) should all be disconnected.

Output Schema

NameRequiredDescriptionDefault
dataYesCable disconnection result payload.
issuesYesStructured diagnostic findings (ERROR, WARNING, INFO) with actionable remediation_suggestions.
statusYesDeterministic execution outcome: "VALID" when the operation succeeded with 0 validation errors; "INVALID" when precondition or engineering validation errors are present in issues[].
summaryYesConcise human- and agent-readable summary of the tool result and validation status.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A5/5.0
Behavior5/5

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

Beyond the annotations, the description discloses side effects: re-evaluating PoE budgets and plug clearances, pushing an undo snapshot, atomic rack.yaml persistence, returned removed IDs and validation results, and idempotency when targets are absent. It also specifies the exact invalid-call result and zero-mutation 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?

The description is front-loaded with the action and scope, then moves through selection behavior, invalid cases, side effects, returns, and alternatives. It is dense but every clause carries operational meaning and there is no filler.

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

Completeness5/5

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

For a destructive, idempotent mutation tool with an output schema and rich annotations, the description covers targeting rules, invalidity behavior, side effects, persistence, returns, and alternatives. Nothing important for correct invocation is missing.

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

Parameters5/5

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

Although schema coverage is already 100%, the description adds important selection semantics not captured by the schema: cable_ids and instance_id form a union, instance_id covers from/to endpoints across carriers and child sub-modules, and external patch-panel drops are left intact. It also clarifies that omitting both or passing only an empty list is invalid.

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 gives a specific verb and resource: remove/disconnect specific cables by cable IDs or all cables attached to a device or modular carrier. It clearly distinguishes the two targeting modes and separates the operation from connect_cables and modify_equipment.

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

Usage Guidelines5/5

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

It explicitly states when to use this tool: rewiring ports while keeping hardware mounted. It also names the correct alternatives for adding/replacing cables and for deleting a device with its cables.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources