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

Packet Tracer MCP — Node.js port

pt_add_module

Installs an expansion module into a specified slot on a Packet Tracer device in the active topology, saving router/switch config first and power-cycling to apply it.

Instructions

Installs an expansion module on a device in the active topology.

PT powers the device off, installs the module and powers it back on (with skipBoot). A restart reloads the startup-config, so routers/switches are saved first (write memory); the reply says whether the device restarted and was saved.

Parameters:

  • device_name: exact device name in PT (e.g. "R1"). Use pt_query_topology to list valid names.

  • slot: the slot identifier as a STRING. The format depends on the device's slot type:

    • HWIC on 2911/2901 → "0/0".."0/3" · on 1941 ONLY "0/0" and "0/1" (verified against PT 9.0.1: the 1941 has 2 slots, not 4) (chassis-slot/hwic-subslot)

    • NM on 2811/2620XM/Router-PT → "1"

    • NIM on ISR4321/4331 → "0/1", "0/2" (chassis/subslot — NOT "0"/"1")

    • Cloud-PT/Server-PT/PCs → "0", "1", ... depending on the available slot An integer is accepted too and converted to a string.

  • module_name: exact module name, e.g. "HWIC-2T", "NM-4A/S", "NIM-2T", "HWIC-1GE-SFP". Use pt_list_modules to discover them.

  • dry_run: if True, validates and returns the JS payload without sending it.

Example: add 2 serial ports to R1 in HWIC slot 0: pt_add_module(device_name="R1", slot="0/0", module_name="HWIC-2T")

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": {
      "device_name": "<device_name>",
      "slot": "<slot>",
      "module_name": "<module_name>"
    },
    "name": "pt_add_module"
  }
}

Input Schema

NameRequiredDescriptionDefault
slotYes
dry_runNo
device_nameYes
module_nameYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.11.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the power-off/install/power-on cycle with skipBoot, that a restart reloads startup-config so routers/switches are saved via write memory, and that the reply reports restart and save status. It omits failure behavior (occupied slot, incompatible module, missing device) and permission expectations.

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 behavior statement followed by a scannable parameter list and a worked example. Slightly bloated by the parenthetical PT-version verification note and a redundant '(chassis-slot/hwic-subslot)' gloss, but nearly every line earns its place given zero schema documentation.

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 annotations and no output schema, the definition covers the lifecycle, save implications, response content, and all four parameters in detail. It is only missing error/failure semantics and any note on whether the change persists across topology saves.

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 coverage is 0%, so the description must compensate, and it does thoroughly: exact device_name format with an example, per-platform slot string formats (HWIC, NM, NIM, Cloud-PT/Server-PT/PCs) with the 1941 two-slot caveat, integer coercion, exact module_name examples, and dry_run validation-only behavior.

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 description opens with a specific verb and resource: 'Installs an expansion module on a device in the active topology.' This clearly distinguishes it from siblings like pt_add_device (devices, not modules) and pt_remove_module (removal, not installation).

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 routes the agent to pt_query_topology for valid device names and pt_list_modules for module names, and provides a concrete example call. It stops short of explicitly stating when not to use it (e.g., prefer pt_remove_module to swap modules) or preconditions such as the device being powered off beforehand.

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