Skip to main content
Glama

Connect and Route Inter-Device Cables

connect_cables
Idempotent

Connect or update a batch of up to 128 power and network cables between mounted device ports in the active rack, computing 3D Catmull-Rom splines, commercial length bins, and PoE or power budgets. Each entry in 'cables[]' upserts in place by 'cable_id' while leaving all other cables and mounted equipment untouched, pushes a recoverable undo snapshot, and persists rack.yaml atomically; port, speed, PoE, or clearance violations return status 'INVALID' with remediation_suggestions instead of throwing. Within each cable, endpoint 'face' is required only on pass-through couplers such as patch panels exposing identical 'port_id' values on both faces, 'preferred_portal_u' applies only to front-to-rear transitions, and 'vlan_id' or 'ip_cidr' annotate logical network links. Use when both endpoint devices are mounted inside the rack; use disconnect_cables to remove cables, or plan_external_endpoints to terminate incoming building cable drops on a patch panel.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "cables": "<cables>"
    },
    "name": "connect_cables"
  }
}

Input Schema

NameRequiredDescriptionDefault
cablesYesBatch of one or more cable connections to upsert by cable_id, route in 3D, and validate (max 128 per call).

Output Schema

NameRequiredDescriptionDefault
dataYesCable connection and 3D routing 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

A4.5/5.0
Behavior4/5

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

Annotations cover the safety profile (readOnlyHint=false, destructiveHint=false, idempotentHint=true), but the description goes well beyond them: in-place upsert by cable_id with all other cables and mounted equipment untouched, a recoverable undo snapshot, atomic rack.yaml persistence, and validation failures returning status INVALID with remediation_suggestions rather than throwing. The only gap is that the success response shape is left to the output schema, which is acceptable.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with purpose and behavior, and every clause carries information (upsert semantics, undo, atomic write, error model, per-field conditions). The middle sentence is very densely packed with several comma-chained conditions, and the usage guidance sits at the end rather than up front, which costs it a point.

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 not be described, and the description still explains the INVALID error contract and remediation_suggestions. Combined with the 128-item cap and mutation semantics being stated, an agent has what it needs, with only routing_mode and length-bin behavior left implicit.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds conditional semantics the schema does not: 'face' matters only on pass-through couplers exposing identical port_id values on both faces, 'preferred_portal_u' applies only to front-to-rear transitions, and vlan_id/ip_cidr are logical annotations rather than physical constraints. It stops short of explaining routing_mode or length-bin computation inputs, so it falls just under a 5.

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?

States a specific verb and resource with scope: "Connect or update a batch of up to 128 power and network cables between mounted device ports in the active rack." It additionally names what the tool does not cover (external building drops, removal) and points to the siblings that do, so an agent can separate it from disconnect_cables and plan_external_endpoints without opening either schema.

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?

Explicitly states the selection condition ("Use when both endpoint devices are mounted inside the rack") and names two alternatives with their distinct purposes: disconnect_cables for removal, plan_external_endpoints for terminating incoming building cable drops on a patch panel. That is a full when/when-not/alternative routing instruction.

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