Skip to main content
Glama

run_command_in_guest

Runs a program inside a VMware guest OS via VMware Tools, enabling agents to execute guest commands with arguments, optional non-blocking or interactive launch, and timeout control.

Instructions

Run an executable inside the guest OS via VMware Tools (runProgramInGuest).

Args: vm: VM name, substring, or full .vmx path. program_path: Absolute path to the executable inside the guest OS. args: Optional list of program arguments. guest_user: Guest OS username. guest_password: Guest OS password (masked in logs/responses). no_wait: Return immediately without waiting for the program to exit. interactive: Launch in the interactive desktop session. timeout: Subprocess timeout in seconds.

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": {
      "vm": "<vm>",
      "program_path": "<program_path>"
    },
    "name": "run_command_in_guest"
  }
}

Input Schema

NameRequiredDescriptionDefault
vmYes
argsNo
no_waitNo
timeoutNo
guest_userNo
interactiveNo
program_pathYes
guest_passwordNo

Output Schema

NameRequiredDescriptionDefault

No arguments

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 supplied, the description carries the full behavioral burden. It does add real value beyond structured fields — noting that guest_password is masked in logs/responses, that no_wait returns without waiting for exit, that interactive launches in the desktop session, and that timeout is a subprocess timeout. However, it omits the fact that this performs arbitrary code execution in the guest, does not state prerequisites such as VMware Tools availability or whether guest credentials are mandatory, and says nothing about failure behavior.

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 one-line purpose is front-loaded and the structured Args block is scannable and free of filler. Every entry maps to a real parameter, though the block partly duplicates the schema's parameter names rather than adding syntax or constraints for each.

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 an 8-parameter tool with no annotations, the definition covers all parameters and the key flags (no_wait, interactive, timeout, password masking). Return values need not be explained because an output schema exists; the remaining gap is operational prerequisite and error behavior.

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 supply all parameter meaning, and it documents every one of the eight parameters, including the useful detail that vm accepts a name, substring, or full .vmx path and that args is an optional list. Remaining ambiguity — whether guest_user/guest_password are required for all calls or only some — keeps it below a 5.

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 first line states a specific verb and resource — 'Run an executable inside the guest OS via VMware Tools (runProgramInGuest)' — and names the underlying VMware API. It is clear what the tool does, but it does not explicitly distinguish itself from the sibling run_script_in_guest, leaving the executable-vs-script boundary to inference.

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 only implied by the purpose statement and the parameter list; there is no explicit when-to-use or when-not-to-use guidance, and no mention of run_script_in_guest as the alternative for script-based execution. An agent can guess the context but is not routed between siblings.

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