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

Packet Tracer MCP — Node.js port

pt_cli

Sends Cisco IOS CLI commands to Packet Tracer router or switch consoles through the API and returns each command's output for configuration, troubleshooting, and verification.

Instructions

Types commands into a router/switch console (CLI tab) and returns each one's output. Same as typing in the IOS CLI: enable, configure terminal, interface..., show ip route, ping, copy run start...

Without taking the screen: it goes through PT's API, and what is typed shows up in the device's real CLI tab.

Parameters:

  • device: exact name (pt_query_topology).

  • commands: a list of commands, or a block of text with one per line. Typed in order, waiting for the prompt between them.

  • timeout: maximum seconds per command, up to 300 (ping/traceroute take a while). When it runs out the command is aborted with Ctrl+Shift+6.

  • auto_confirm: presses Enter on "[confirm]" and "Destination filename [..]?". [yes/no] and Password: questions are NOT answered automatically: put the answer as the next command (e.g. ["reload", "no", ""]).

  • show: True/False opens (or not) the device's window on the CLI tab. None = per pt_ui_mode.

  • capture: saves a PNG of the window when done (implies show).

Each command comes back marked: ok, ERROR (% Invalid input...), UNKNOWN COMMAND (IOS took it as a hostname: the DNS lookup is aborted), WAITING FOR ANSWER or TIMEOUT. A freshly created router is primed automatically (answers 'no' to the initial dialog).

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

Input Schema

NameRequiredDescriptionDefault
showNo
deviceYes
captureNo
timeoutNo
commandsYes
output_dirNoscreenshots
auto_confirmNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.11.0

TDQS

A4.3/5.0
Behavior5/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 so thoroughly: it discloses the non-intrusive mechanism (goes through PT's API, output appears in the device's real CLI tab), per-command timeout up to 300s with Ctrl+Shift+6 abort, that auto_confirm only answers [confirm]/Destination filename prompts and not [yes/no] or Password, that capture implies show, and that fresh routers are primed by answering 'no' to the initial dialog.

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?

Purpose is front-loaded in the first sentence, followed by a clean Parameters list and a closing paragraph on return markers. It is long but nearly every line adds callable information; only the IOS example list and a few parenthetical asides are mildly redundant.

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?

For a seven-parameter tool with no annotations and no output schema, the description covers the important gaps: sequencing, timeouts, prompt handling, window visibility, and the per-command result markers (ok, ERROR, UNKNOWN COMMAND, WAITING FOR ANSWER, TIMEOUT). Remaining gaps are output_dir, the precise output format, and any caveat about destructive commands like copy run start or reload.

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 documents six of seven parameters with real semantics the schema lacks — exact device name, list-vs-multiline command input and ordering, per-command timeout ceiling and abort behavior, auto_confirm scope, show=None meaning per pt_ui_mode, and capture implying show. output_dir is left entirely unexplained, so it falls short of full coverage.

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 concrete verb and resource: types commands into a router/switch console and returns each one's output. It anchors the tool with "Same as typing in the IOS CLI" plus concrete examples (enable, configure terminal, show ip route, ping, copy run start), which makes it obviously distinct from the structured pt_apply_* siblings without needing to name them.

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?

It explains how to use the tool well (commands typed in order, waiting for prompts, putting 'no' as the next command after reload), but never says when to prefer this raw CLI path over the structured pt_apply_vlan/pt_apply_bgp-style siblings, nor when it should not be used. Usage is implied by the task framing rather than routed explicitly.

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