Skip to main content
Glama

Add link

add_link

Connect two device ports with a cable in Cisco Packet Tracer; interface abbreviations are expanded and cable type can be inferred when omitted.

Instructions

Connect two device ports with a cable. Use Packet Tracer interface names; abbreviations are expanded (Gi0/0 -> GigabitEthernet0/0, Fa0/1 -> FastEthernet0/1, Se0/0/0 -> Serial0/0/0). Each port can belong to only one link, and the two ends must be on different devices. Onboard ports: 1841: FastEthernet0/0-1; 1941: GigabitEthernet0/0-1; 2811: FastEthernet0/0-1; 2901: GigabitEthernet0/0-1; 2911: GigabitEthernet0/0-2; ISR4321: GigabitEthernet0/0/0-1 (unverified); ISR4331: GigabitEthernet0/0/0-2 (unverified); 2950-24: FastEthernet0/1-24 (unverified); 2950T-24: FastEthernet0/1-24, GigabitEthernet0/1-2 (unverified); 2960-24TT: FastEthernet0/1-24, GigabitEthernet0/1-2; 3560-24PS: FastEthernet0/1-24, GigabitEthernet0/1-2 (unverified); 3650-24PS: GigabitEthernet1/0/1-24 (unverified); PC-PT: FastEthernet0; Server-PT: FastEthernet0; Laptop-PT: FastEthernet0 (unverified); Printer-PT: FastEthernet0 (unverified). Routers have no onboard serial ports and modules cannot be added yet, so connect routers over Ethernet. Omit cable to let the server infer it: straight between unlike devices (router/host <-> switch/hub), cross between like devices (switch-switch, router-router, router-PC, PC-PC), straight from an access point to a switch/hub and cross to a router/host, serial for Serial ports, console for Console/RS232 ports.

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": {
      "dev1": "<dev1>",
      "port1": "<port1>",
      "dev2": "<dev2>",
      "port2": "<port2>"
    },
    "name": "add_link"
  }
}

Input Schema

NameRequiredDescriptionDefault
dev1YesDevice name, e.g. R1, S1, PC1 (case-insensitive).
dev2YesDevice name, e.g. R1, S1, PC1 (case-insensitive).
cableNoCable type. Omit it to let the server infer the right one (recommended). "auto" is passed to PT as-is and its behaviour is unverified.
port1YesInterface name, e.g. GigabitEthernet0/0, FastEthernet0/1, FastEthernet0 (abbreviations such as Gi0/0 are expanded).
port2YesInterface name, e.g. GigabitEthernet0/0, FastEthernet0/1, FastEthernet0 (abbreviations such as Gi0/0 are expanded).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

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 idempotentHint=false; the description adds meaningful preconditions beyond that — each port belongs to only one link, ends must be on different devices, and routers currently have no serial connectivity. What it omits is the failure surface itself: what error/response comes back when a port is occupied, and whether a partially applied link can occur.

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

Conciseness3/5

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

The core behavior is front-loaded well in the first three sentences, but the body becomes a long port-inventory table with 15 device models, many tagged "(unverified)", which reads like reference data rather than tool guidance. The cable-inference sentence is dense but earns its place; the model-by-model port list is bloated and would be better served by a separate resource.

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 mutation tool with no output schema, the description covers the essentials: preconditions, valid port names, and default cable behavior. It could be more complete by stating what is returned on success (link ID, config lines) and how conflicts are reported, but an agent can call it correctly as written.

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 genuinely adds value by enumerating valid onboard ports per device model (e.g. 2911: GigabitEthernet0/0-2; 2960-24TT: FastEthernet0/1-24 plus GigabitEthernet0/1-2), which is not in the schema. The abbreviation expansion examples (Gi0/0 -> GigabitEthernet0/0) also clarify accepted input format, though the schema already alludes to it.

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 opening sentence names a specific verb and resource: "Connect two device ports with a cable." Combined with the constraints that follow (different devices, one link per port), an agent can immediately distinguish this from siblings like add_device or remove_link without opening the schema.

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?

It gives concrete conditions for the optional parameter ("Omit `cable` to let the server infer it") plus the full inference ruleset by device-type pairing, which is real when-to-use guidance. It stops short of routing to alternatives — for example, it never says to use remove_link first if a port is already occupied, only that the call will fail.

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