Skip to main content
Glama

console_batch

Run up to 50 predictable mouse and keyboard actions on a VM console in one call, then return the final screen and a new observation ID for safe follow-up.

Instructions

执行 1-50 个可预期的短动作,返回最终画面与新 observation_id。

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>",
      "observation_id": "<observation_id>",
      "actions": "<actions>"
    },
    "name": "console_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
vmYes
formatNopng
actionsYes
max_widthNo
interval_msNo
stop_on_errorNo
observation_idYes

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 behavioral burden; it does disclose that the response includes the final rendered frame and a refreshed observation_id, which tells the agent state changed and the old token is superseded. It is silent on error handling, pacing/interval behavior, whether intermediate frames are observable, and what permissions are needed to drive a guest console.

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 front-loaded sentence stating the count bound, the payload kind, and the return value, with zero filler. Nothing is repeated or wasted.

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 7-parameter tool with a nested 11-variant action enum, no annotations, and no output schema, one sentence is far too thin. The agent learns the batch size limit and the return shape but not how the batch executes or fails, and half the top-level parameters remain unexplained anywhere.

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 compensate: it supplies the only constraint on the actions array (1-50 items, short and predictable) and implies that observation_id is the prior snapshot token replaced by the one returned. It adds nothing for format, max_width, interval_ms, or stop_on_error, leaving four parameters semantically bare.

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 (执行/execute) and resource (1-50 batch console actions) plus the return payload (final frame and new observation_id), so an agent can distinguish it from a single-action sibling. It does not name console_action explicitly, so the batch-vs-single distinction is only implied by the count range.

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?

'可预期的短动作' (predictable short actions) and the 1-50 bound hint that only deterministic, quick sequences belong here, while unpredictable or long-running steps should go elsewhere. There is no explicit when-to-use versus console_action/console_observe and no prerequisite or failure guidance.

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