Skip to main content
Glama

pt_install_modules_batch

Installs multiple hardware modules into several routers in one power cycle, avoiding repeated restarts that stall Packet Tracer's script engine. Validates configurations with a dry run option.

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

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.12.0

TDQS

A4.5/5.0
Behavior3/5

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

With no annotations, the description has to carry the full behavioral load, and it does disclose a lot: the internal power-cycle sequence, latency risk to the bridge bootstrap, that js_payload is dropped once sent, and the per-module status in the response. It still doesn't say what happens on partial failure (does a failed module abort the batch, or leave a device powered off?) or whether changes are reversible, which are significant gaps for a multi-device mutation.

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?

It is long, but front-loaded with the operation and the sibling preference, then cleanly sectioned into parameters, slot rules, and returns. The verbosity is justified by the opaque schema, though the nested example formatting and the parenthetical about the 2911 not accepting NM-4A/S add bulk that could be tightened.

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 batch mutation over an untyped schema with no annotations, this covers everything an agent needs: input shape, slot constraints, dry-run validation path, and the shape of the response. The output schema exists, so the brief return summary is sufficient rather than required.

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 the modules array is typed only as objects with additionalProperties true, so the schema supplies no key information at all. The description fully compensates by naming the three required keys (device, slot, module), giving a worked example, and enumerating per-platform slot rules (HWIC on 2911 vs. 1941, NIM chassis/subslot notation, NM, Cloud-PT), plus the semantics of dry_run.

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 first sentence gives a specific verb (installs), resource (modules), and scope (N modules in a single runCode JS), plus the exact internal sequence save → power-off → addModule×N → power-on. This clearly separates it from pt_add_module, which does one module per power cycle.

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?

It names the condition that selects this tool (several serial modules across several routers at once) and explicitly says to PREFER it over multiple pt_add_module calls, with a concrete reason: each power cycle can pause PT's script engine for more than 5 seconds and kill the bridge bootstrap's polling.

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