Skip to main content
Glama

pt_host_command

Runs a command in a PC or server Command Prompt inside Cisco Packet Tracer, such as ping, and returns after the command is entered in the live project.

Instructions

Type a command into a PC/server Command Prompt (e.g. 'ping 192.168.1.1'). Output is shown in Packet Tracer; the call returns once it is entered.

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
deviceYes
commandYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose the most important trait: output is rendered in Packet Tracer and the call returns as soon as the command is entered, not with the result. That is valuable non-obvious behavior. It omits failure modes (invalid command, device not ready), whether commands are destructive, and how to retrieve the output afterward.

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?

Two tight sentences with the primary action front-loaded and the critical return-behavior caveat second. No filler or redundant restatement of the tool name.

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, and the description covers the key gotcha that output appears in the simulator rather than the response. What remains missing is guidance on how to read the resulting output (which sibling to call) and any preconditions on device state.

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

Parameters3/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 for two undocumented parameters. It partially does: the example clarifies the 'command' format and 'PC/server' hints that 'device' targets an end host, but neither the identifier format (name vs. id) nor validity constraints are specified.

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: typing a command into a PC/server Command Prompt, with a concrete example ('ping 192.168.1.1'). The 'PC/server' qualifier implicitly separates it from router/switch CLI tools like pt_cli, but no sibling is named explicitly.

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 implied by the example and the host-command-prompt framing, so an agent can infer it is for executing commands on an end host. However, there is no explicit when-to-use versus pt_cli or pt_show_running_config, and no stated prerequisites (device powered on, OS booted, prompt available).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.