Skip to main content
Glama

pt_add_module

Installs an expansion module into a device slot in the active Packet Tracer topology, powering the device off and back on and saving the startup-config first so routers and switches restart with their saved settings.

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

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.12.0

TDQS

A4.7/5.0
Behavior5/5

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

With no annotations provided, the description carries the full behavioral burden and does so: it discloses the power-off/install/power-on cycle, the skipBoot behavior, the restart reloading startup-config, the automatic write memory save, and that the reply reports restart and save status. These are non-obvious side effects an agent must know before calling 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?

The description is front-loaded with the operation and its side effects, then a parameter block and an example; every section earns its place. The nested slot-format list is verbose but high-value, costing only a little on conciseness.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a mutation tool with 4 parameters, zero schema descriptions and no annotations, the description supplies operation semantics, side effects, parameter formats, and discovery paths. An output schema exists, so the brief note about the reply is sufficient and nothing critical is missing.

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%, so the description must compensate and it does thoroughly: it explains the per-platform slot string formats (HWIC '0/0', NIM '0/1' not '0', NM '1'), the integer-coercion behavior, example module names, and the dry_run validation semantics. This adds substantial meaning beyond the bare string/boolean schema.

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 ('Installs an expansion module on a device') plus the scope ('in the active topology'), which clearly separates it from pt_remove_module and pt_list_modules. An agent can identify the operation 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 routes the agent to pt_query_topology for valid device names and pt_list_modules for module names, and gives a worked example of the intended call. It lacks an explicit when-not-to-use statement (e.g. when a module is already installed or the device is powered off), so it falls short of full routing guidance.

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