Skip to main content
Glama

command_read

Reads the status, output, and exit code of an asynchronous guest command job, including after an MCP restart, so you can monitor or resume command execution.

Instructions

读取同一个命令任务的状态、输出与退出码;MCP 重启后仍可继续读取。

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": {
      "job_id": "<job_id>"
    },
    "name": "command_read"
  }
}

Input Schema

NameRequiredDescriptionDefault
job_idYes
wait_secNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

No annotations are provided, so the description carries the behavioral burden. It usefully discloses that job state persists across MCP restarts and what fields are returned, but it does not explain whether wait_sec causes a blocking long-poll, how missing/expired jobs behave, or any read-only safety context beyond the verb.

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?

A single compact sentence front-loads the read action and return values, then adds the persistence note. There is no unnecessary wording.

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

Completeness2/5

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

For a two-parameter tool with zero schema description coverage and no output schema, the description is too thin. It covers purpose and persistence but does not document how to obtain job_id or how wait_sec affects polling, leaving essential invocation details to guesswork.

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%, with only titles for job_id and wait_sec. The phrase '同一个命令任务' vaguely suggests that job_id identifies a command job, but the description never explains job_id format/source or what wait_sec does (default 5s), so it adds little beyond the schema.

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 (读取/read) and resource (命令任务/command job), and enumerates what is returned: status, output, and exit code. It implicitly distinguishes itself from command-execution siblings by focusing on reading an existing job, but does not explicitly name an alternative.

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?

Implies usage for checking a previously started command job and notes that results persist after MCP restart, which helps with long-running jobs. There is no explicit when-not guidance or named alternative such as vm_operation_read, so the guidance is only implied.

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