Skip to main content
Glama

connect

Cable two free ports on Packet Tracer devices, letting pktctl auto-pick serial, straight, or cross cable, or force a specific type.

Instructions

Cable two ports together. Both ports must exist and be free. With the default auto cable pktctl picks serial, straight or cross the way the CCNA rules do; pass cable to force fiber, rollover, console, etc.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cableNoCable to use. `auto` picks serial for serial ports, straight between a host or router and a switch, and cross between devices of the same layer.
port_aYesPort on the first device, exactly as `list_ports` shows it, for example `GigabitEthernet0/0`.
port_bYesPort on the second device.
device_aYesFirst device name.
device_bYesSecond device name.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
aYes
bYes
cableYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.2

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and openWorldHint=false, so safety is largely covered. The description adds real operational context beyond that: ports must already exist and be unoccupied, and the default `auto` selection is deterministic. It does not state error behavior or whether an existing link is replaced, which caps it at 4.

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?

Two sentences, both earning their place: first the action and precondition, second the cable-selection behavior. The action is front-loaded and there is no filler.

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?

With an output schema present, return values need not be explained, and annotations cover the safety profile. The description covers the action, prerequisites and cable semantics, but leaves unstated what happens if a port is busy or whether the call is idempotent, which is the only remaining gap for a mutation tool of this complexity.

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

Parameters3/5

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

Schema description coverage is 100%; the schema already documents all five parameters, including the auto-selection rules for `cable`. The description's mention of CCNA rules and forcing fiber/rollover/console overlaps with that schema text rather than adding new syntax or format detail, so the baseline 3 applies.

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 ('Cable two ports together') that unambiguously identifies physical link creation and distinguishes it from siblings such as disconnect and connect_wireless. The scope is clear from the first four words.

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

Usage Guidelines4/5

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

Gives a concrete precondition ('Both ports must exist and be free') and explains the default cable behavior, including the escape hatch of passing `cable` to force a type. It does not name an alternative tool or a when-not-to-use condition, so it falls short of a 5.

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