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

Packet Tracer MCP — Node.js port

pt_device_power

Power a Packet Tracer device on or off to simulate equipment failure or restart a router so it rereads its startup-config, with a read-back confirming the resulting power state.

Instructions

Powers a device in PT on or off, with a verification read.

Useful to simulate equipment failure and see how routing reacts, or to restart a router so it rereads its startup-config.

Works on every model, PCs included. Hosts have no IOS boot, so when powering them on booting comes back null; on a router or switch the boot is skipped so as not to wait for the full start-up.

Parameters:

  • device: device name in PT.

  • on: True powers on (default), False powers off.

Example: simulate R2 going down: pt_device_power(device="R2", on=False)

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

Input Schema

NameRequiredDescriptionDefault
onNo
deviceYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.11.0

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations at all, the description carries the full burden and discloses real behavior beyond the name: the call performs a verification read, `booting` comes back null on hosts because they have no IOS boot, and the boot wait is skipped on routers/switches. It does not state whether unsaved running-config is lost on power-off or what permissions/state the PT session must be in, which is the main remaining gap for a state-changing tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the action, then use cases, then a compact host-vs-router behavior note, then parameters and an example — every block maps to a decision the agent has to make. No filler or restatement of the title.

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 2-parameter, annotation-free, no-output-schema tool, the description covers purpose, scenarios, platform-dependent return behavior, both parameters, and a call example. Preconditions like saved config state are the only notable omission and are minor for a simulation power toggle.

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 description coverage is 0%, so the description must compensate, and it does: it explains that `device` is a PT device name and that `on` defaults to True (power on) with False meaning power off, plus a worked example. It could still specify acceptable device-name forms (short hostname vs. full name) but adds clear meaning over the bare 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?

Names a specific verb and resource (power a PT device on/off) and adds a secondary effect ('with a verification read') that no sibling such as pt_delete_device or pt_get_device_details performs. An agent can identify the action 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?

Gives two concrete motivating scenarios — simulating equipment failure to observe routing convergence, and restarting a router to reread startup-config — which is more than most tools offer. It stops short of stating when not to use it (e.g. preferring pt_delete_device for removal, or pt_cli for a software reload on a live device).

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