Skip to main content
Glama

pt_device_power

Power a Packet Tracer device on or off, verify its state, simulate equipment failure, test routing reactions, or restart a router to reread its startup-config.

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

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.12.0

TDQS

A4.3/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 discloses meaningful behavior beyond the schema: it works on every model including PCs, hosts return `booting` as null because they lack IOS boot, and routers/switches skip the boot wait. It omits whether powering off discards unsaved running-config or is reversible, and says nothing about permissions or side effects on existing links/sessions.

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 is front-loaded in the first sentence, then model-specific caveats, then a compact parameter list and a runnable example. Structure is easy to scan; the model-specific boot paragraph is slightly long but each sentence carries distinct behavioral information.

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 not be explained, yet the description still usefully flags the `booting` null case for hosts. For a two-parameter mutation tool with no annotations, the remaining gap is the fate of unsaved configuration on power-off, which an agent would want before simulating a failure.

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: `device` is defined as the PT device name (clarified by the R2 example) and `on` is explained as True=power on (default), False=power off. Naming conventions for `device` are only shown by example rather than stated as a rule, which keeps this from a 5.

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 description opens with a specific verb and resource ('Powers a device in PT on or off') plus a secondary behavior ('with a verification read'). No sibling tool in the catalog performs power state changes, so an agent can distinguish this action from add/delete/move/read operations without opening a 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?

It gives two concrete use cases: simulating equipment failure to observe routing reactions, and restarting a router to reread startup-config. It does not state exclusions (e.g., when to use pt_get_device_details instead of power-cycling to inspect state) or prerequisites, so it falls short of explicit when-not guidance.

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