Skip to main content
Glama

guest_command

Runs commands asynchronously inside a VM through Guest Tools and returns a job ID; use command_read to continue reading output when execution is not complete.

Instructions

通过 Guest Tools 执行命令,返回 job_id;未完成时用 command_read 继续读取。

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

Input Schema

NameRequiredDescriptionDefault
vmYes
cwdNo
envNo
shellNoauto
commandYes
wait_secNo
timeout_secNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.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 burden. It discloses the important async model: the tool returns a job_id rather than a result, and you poll command_read. But it says nothing about requiring Guest Tools to be installed and running on the VM, what privileges the command runs with, how timeout_sec differs from wait_sec, or what happens on timeout.

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 clauses with zero filler: the action and result come first, and the continuation path comes second. Nothing redundant or buried.

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?

For a 7-parameter, annotation-free, no-output-schema mutation tool, the description is minimally complete: the async round trip and the pointer to command_read are the critical facts, and both are present. But it covers none of the parameters and omits the Guest Tools precondition, so an agent can still misfire on cwd/env/shell/timeout semantics.

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

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across 7 parameters, so the description must do the explaining. It never mentions vm, cwd, env, shell, wait_sec, or timeout_sec, and gives no meaning for how 'command' is interpreted (for example, shell selection or encoding). The description adds almost no meaning over the raw parameter names.

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 gives a specific verb and resource (execute a command through Guest Tools) and states the immediate output (job_id), which distinguishes it from the read-only sibling it names. It never says the command runs on a target VM, however, so the scope is only implied by the 'vm' parameter name.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The second clause gives explicit condition-based routing: if the job is not finished, continue with command_read. This is clear follow-up guidance, but the description gives no guidance on when to choose this over console_* siblings such as console_type or console_action.

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