Skip to main content
Glama
Packet Tracer MCP — Node.js port

Packet Tracer MCP — Node.js port

pt_add_link

Create a validated link between two Packet Tracer devices, checking device and port existence, free ports, and cable type inference to prevent connection errors.

Instructions

Create a link between two devices in Packet Tracer with full validation. Checks: both devices exist, both ports exist, ports are free, cable type is valid. If cable_type is omitted, it is inferred from the device categories.

Parameters:

  • device1: first device name

  • port1: port on device1 (e.g. "GigabitEthernet0/0", "FastEthernet0/1")

  • device2: second device name

  • port2: port on device2

  • cable_type: cable type (straight, cross, serial, fiber, console, roll, auto, etc.) Common aliases accepted: "crossover"→"cross", "rollover"→"roll"

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": {
      "device1": "<device1>",
      "port1": "<port1>",
      "device2": "<device2>",
      "port2": "<port2>"
    },
    "name": "pt_add_link"
  }
}

Input Schema

NameRequiredDescriptionDefault
port1Yes
port2Yes
device1Yes
device2Yes
cable_typeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.11.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full load, and it does disclose meaningful behavior: four pre-flight checks (devices exist, ports exist, ports free, cable type valid) and automatic cable-type inference from device categories. It does not say what happens when a check fails (error text, partial state, rollback) or whether the tool is idempotent when a link already exists, which matters for a mutation tool.

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?

Purpose and validation summary are front-loaded in two lines, then a compact parameter list. The structure suits a multi-parameter tool and there is little waste, though the parenthetical aliases line is slightly cramped against the cable_type bullet.

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?

For a five-parameter mutation tool with no annotations and no output schema, the description covers purpose, validation, defaults, and every parameter's meaning. The remaining gap is outcome semantics: what a successful call returns and how validation failures surface to the agent.

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 0%, so the description must compensate, and it largely does: every one of the five parameters is explained, port naming is illustrated with concrete examples ("GigabitEthernet0/0", "FastEthernet0/1"), and the cable_type value space plus accepted aliases ("crossover"→"cross", "rollover"→"roll") is enumerated. device1/device2 are only described as "first/second device name" with no format hint, keeping it short of a 5.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: "Create a link between two devices in Packet Tracer," plus an explicit validation scope. That distinguishes it from pt_delete_link and the pt_apply_* configuration tools, though the description never names a sibling outright.

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

Usage Guidelines3/5

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

Usage is implied by the mechanics rather than stated: it tells the agent cable_type can be omitted and will be inferred, which is a practical when-to-omit rule. There is no explicit guidance on when to call this versus pt_delete_link or higher-level tools like pt_apply_etherchannel, and no prerequisite or ordering advice (e.g., devices must be added first).

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

Deploy Server

Other Tools