Skip to main content
Glama

pt_add_module

Adds a hardware module to a Packet Tracer device, automatically power-cycling it to extend available ports and interfaces.

Instructions

Insert a hardware module (device is powered off/on automatically). module_type: 0 line card, 1 network module (NM), 2 interface card (HWIC/WIC/NIM, default). Example: pt_add_module('R1', '0/0', 'HWIC-2T', 2) to add serial ports to a 1941.

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": "<device>",
      "slot": "<slot>",
      "module_model": "<module_model>"
    },
    "name": "pt_add_module"
  }
}

Input Schema

NameRequiredDescriptionDefault
slotYes
deviceYes
module_typeNo
module_modelYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden, and it does disclose the important behavior that the device is power-cycled automatically. It stops short of saying whether running configuration is lost, whether the slot must be empty, or what happens on an invalid model/slot combination, which matters a lot for a mutating operation on live hardware.

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?

Very compact and front-loaded: the action and its side effect come first, then the enum legend, then a concrete example. The dense colon-delimited enum list is slightly harder to scan than bullets, but nothing is wasted.

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?

An output schema exists, so return values need no explanation, and the description covers action, side effect, enum values, and a worked example for a 4-parameter mutation tool. The remaining gap is failure modes and preconditions (valid model per device, empty slot), which keeps it from being fully complete.

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 0%, so the description must compensate, and it does for the hardest parameter: module_type is enumerated as 0=line card, 1=network module, 2=interface card (HWIC/WIC/NIM) with default 2. The example also pins down the device and slot string formats ('R1', '0/0'). Only module_model validity is left unexplained.

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 ('Insert a hardware module') and immediately names the observable side effect (device is powered off/on automatically). The word 'module' plus the HWIC-2T example clearly separates it from sibling pt_add_device, which adds whole devices rather than cards.

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

Usage Guidelines3/5

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

Usage is only implied through the example call. There is no statement of when to prefer this over pt_add_device or pt_list_models, nor any prerequisite such as the module model having to be valid for the target device. An agent can infer intent but must guess at preconditions.

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