Skip to main content
Glama

pt_add_link

Creates a validated link between two Packet Tracer devices by checking both endpoints and free ports, then infers the cable type when omitted. Use it to connect devices correctly.

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

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.12.0

TDQS

A4.2/5.0
Behavior4/5

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

No annotations exist, so the description carries the full burden, and it does disclose real behavior: pre-write validation of device existence, port existence, port availability, and cable-type validity, plus automatic inference when cable_type is omitted. It stays silent on what happens when validation fails, whether operations are atomic, and error reporting, which keeps it from a 5.

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 the action and validation summary, then a compact parameter block. The 'Parameters:' list is slightly boilerplate but earns its place given zero schema documentation; a couple of phrases like 'full validation' restate what the checks list already says.

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?

Output schema exists, so return values need not be described. For a five-parameter, annotation-free mutation tool, the definition covers validation, inference, and parameter formats; only failure behavior and environment prerequisites are absent.

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?

Schema description coverage is 0%, and the description compensates fully: it defines every one of the five parameters, supplies port-name examples like 'GigabitEthernet0/0', and enumerates cable types plus alias normalization ('crossover'→'cross', 'rollover'→'roll'). This is meaning an agent cannot get from the bare schema.

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' with 'full validation'. That is unambiguous and distinct from pt_delete_link, though it never explicitly names a sibling or when to prefer it.

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 clear usage context: two devices, two ports, optional cable type with inference, and the note that cable_type can be omitted. It offers no when-not guidance or prerequisites, but conditions for the optional parameter are explicit.

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