Skip to main content
Glama

pt_host_command

Run commands like ping, ipconfig, tracert, or ssh in a PC, laptop, or server Command Prompt and return the output, with input answers and timeouts handled.

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

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.12.0

TDQS

A3.5/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 behavioral burden and does disclose useful traits: interactive inputs are answered in order, timeout applies per line up to 300 seconds, and a failing ping may take about 15 seconds. However, it does not describe permission requirements, safety implications of arbitrary command execution, or what happens when a command fails or times out.

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 description is front-loaded with the purpose and then organized into a parameter list, making it easy to scan. The long parenthetical list of command examples is somewhat verbose but still useful for illustrating intended usage.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description covers the tool's purpose, key parameters, interactive behavior, timeout semantics, and output return, and an output schema exists to explain return values. For an arbitrary command-execution tool with no annotations and zero schema parameter descriptions, it still omits important behavioral context such as safety, permissions, and failure handling.

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 parameter explanations add substantial meaning for device, command, inputs, and timeout, including examples and timeout constraints. The show, capture, and output_dir parameters are only explained by reference to pt_cli rather than fully defined in place, which is a minor gap.

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?

The description clearly states a specific verb and resource: it runs a command on a PC/Laptop/Server's Desktop Command Prompt and returns the output. The Windows-host context and example commands help distinguish it from generic CLI tools, though it does not explicitly contrast itself with pt_cli or other siblings.

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 commands imply the intended usage context, such as networking diagnostics and remote sessions, but there is no explicit guidance on when to choose this tool over pt_cli or host-specific siblings. It also lacks exclusions or prerequisites, leaving usage partly inferred.

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