Skip to main content
Glama

pt_remove_module

Removes an installed module from a device slot and power-cycles the device; saves router/switch configuration first and skips hot-swappable modules.

Instructions

Removes the module installed in a slot (Physical tab). Powers the device off, removes it and powers it back on, like pt_add_module (routers/switches are saved first with write memory); skipped when PT reports the module as hot-swappable. The reply says whether it restarted and was saved.

  • slot: STRING, same format as pt_add_module ("0/0", "1", "0"...).

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>"
    },
    "name": "pt_remove_module"
  }
}

Input Schema

NameRequiredDescriptionDefault
slotYes
deviceYes
dry_runNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.12.0

TDQS

A3.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 does substantial work: it discloses the power-cycle sequence, that routers/switches are saved via write memory first, that the operation is skipped for hot-swappable modules, and that the reply reports restart/save status. It does not state whether removed module configuration is lost or whether this is irreversible, which keeps it below a 5.

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 core action and its side effects are front-loaded in the first sentence, with supporting detail in parentheses and a final bullet for the slot parameter. Dense but largely waste-free; the nested parenthetical about write memory is slightly hard to parse.

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

Completeness3/5

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

With an output schema present, the description need not explain return shapes, and it still usefully notes the reply reports restart/save status. However, for a destructive multi-step physical operation with zero annotation coverage, the unexplained device parameter and dry_run flag leave meaningful operational questions unanswered.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% and there are three parameters, but the description documents only slot, adding genuine format detail ('0/0', '1', '0'). The device parameter and especially dry_run (default false, no explanation of what a dry run returns or whether the power cycle is simulated) are left entirely undefined in both schema and description.

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 (removes the module installed in a slot) plus the UI location (Physical tab), and explicitly frames itself as the inverse of pt_add_module, so an agent can distinguish it from the add sibling 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 Guidelines3/5

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

Usage is strongly implied by the 'remove' semantics and the pairing with pt_add_module, and the hot-swap skip note tells the agent something about runtime behavior. There is still no explicit when-to-use/when-not guidance or statement of prerequisites (e.g., device must be idle or in a given mode).

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