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

Packet Tracer MCP — Node.js port

pt_host_command

Executes commands in a Packet Tracer host's Command Prompt and returns the output, including interactive responses for ping, ipconfig, telnet, SSH, and FTP tasks.

Instructions

Runs a command in a PC/Laptop/Server's Desktop > Command Prompt (ping, ipconfig, ipconfig /all, ipconfig /renew, tracert, arp -a, nslookup, netstat, telnet, ssh -l user ip, ftp...) and returns the output.

Parameters:

  • device: the host's name.

  • command: the line to run (e.g. "ping 192.168.1.1").

  • inputs: answers to whatever the command asks afterwards, in order (e.g. a telnet/ssh password, then commands for the remote device).

  • timeout: maximum seconds per line, up to 300 (a failing ping takes ~15 s).

  • show / capture / output_dir: as in pt_cli; opens Desktop > Command Prompt.

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

Input Schema

NameRequiredDescriptionDefault
showNo
deviceYes
inputsNo
captureNo
commandYes
timeoutNo
output_dirNoscreenshots

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.11.0

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description must supply behavioral context, and it does add useful detail: interactive prompts are answered via 'inputs' in order, timeout is per line up to 300 s, and a failing ping takes ~15 s. It omits the safety profile entirely - arbitrary command execution side effects, whether output files are written for capture/output_dir, and what happens on failure are not disclosed.

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?

The lead sentence gives purpose and return value up front, followed by a compact parameter list where every line adds information. No filler or repetition.

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, no output schema, and zero schema coverage, the description covers most of the gap: what it does, what it returns, interactive input handling, and timeout behavior. Missing are the risk/mutation profile and any detail on the three display/output parameters beyond a pointer to pt_cli.

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 carries the full burden, and it explains device, command, inputs, and timeout with concrete examples and a default-relevant note. The show/capture/output_dir trio is deferred with 'as in pt_cli', which leaves three of seven parameters dependent on the agent knowing another tool's semantics.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: runs a command in a PC/Laptop/Server's Desktop > Command Prompt and returns the output. The parenthetical command catalog and the 'as in pt_cli' reference make the host-level scope distinguishable from the sibling CLI tool, though the contrast with pt_cli is only implied rather than stated.

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?

The example command list (ping, ipconfig, tracert, nslookup, netstat, telnet, ssh, ftp) implies what the tool is good for, but there is no explicit when-to-use or when-not-to-use guidance and no routing away from related siblings such as pt_cli or pt_host_ip_config.

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