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

Packet Tracer MCP — Node.js port

pt_install_modules_batch

Installs multiple Packet Tracer modules across devices in a single batch run, avoiding repeated power cycles that can pause the script engine and disrupt bridge polling.

Instructions

Installs N modules in a single runCode JS — save → power-off → addModule×N → power-on.

Useful when several serial modules (HWIC-2T, NIM-2T, etc.) have to go into several routers at once. PREFER this tool over multiple calls to pt_add_module: each individual power cycle can pause PT's script engine for > 5s and kill the bridge bootstrap's polling.

Parameters:

  • modules: list of dicts with {device, slot, module}. Example for RTR-4 with 4 serial ports on a 2911 (which does NOT accept NM-4A/S): [ {"device": "RTR-4", "slot": "0/0", "module": "HWIC-2T"}, {"device": "RTR-4", "slot": "0/1", "module": "HWIC-2T"} ] → gives Serial0/0/0..0/0/1, Serial0/1/0..0/1/1.

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

Slot rules (string): HWIC on 2911/2901 → "0/0".."0/3" · on 1941 ONLY "0/0" and "0/1" NIM on ISR4321/4331 → "0/1", "0/2" (chassis/subslot — NOT "0"/"1") NM on 2811/Router-PT → "1" Cloud-PT / hosts → "0".."7"

Returns JSON with summary and per-module status (installed or not). The JS (js_payload) is only included with dry_run; once sent it is dropped.

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": {
      "modules": "<modules>"
    },
    "name": "pt_install_modules_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
dry_runNo
modulesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.11.0

TDQS

A4.7/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 mostly delivers: it discloses the disruptive power-cycle side effect, the engine-pause risk, the device-incompatibility caveat (2911 does not accept NM-4A/S), and that js_payload is only returned with dry_run and dropped once sent. It does not address permissions, failure/rollback behavior when a mid-batch module install fails, or whether partially applied batches are reverted.

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 purpose and the sibling-routing rule, then cleanly sectioned into Parameters and Slot rules headings with zero fluff paragraphs. It is on the long side and the "Useful when..." sentence partially repeats the PREFER rationale, but the length is largely earned by the slot-string constraints that have no other home.

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?

No output schema exists, and the description still documents the return shape (JSON with summary plus per-module installed status) and the conditional js_payload field. Combined with the slot rules and dry_run semantics, an agent has everything needed to construct a correct batch call on the first try.

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% and modules is a free-form array of objects, so the description must compensate — and it does, spelling out the {device, slot, module} keys, a worked example, and per-platform slot string rules (HWIC on 2911/2901 vs 1941-only slots, NIM chassis/subslot format, NM, Cloud-PT). It also explains dry_run's exact semantics, which the schema only labels as a default-false boolean.

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 N modules in a single runCode JS") plus the exact internal sequence (save → power-off → addModule×N → power-on). It explicitly distinguishes itself from the sibling pt_add_module, so an agent can route correctly without opening either schema.

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

Usage Guidelines5/5

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

Gives an explicit routing rule: "PREFER this tool over multiple calls to pt_add_module," backed by the concrete reason (each power cycle can pause PT's script engine >5s and kill bridge polling). It also names a valid use context (several serial modules across several routers at once) and offers dry_run for validation-first workflows.

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