Skip to main content
Glama

console_action

Inject a mouse or keyboard action into a VM console observation, then return the updated screen and a new observation_id for safe follow-up control.

Instructions

在最新观察上执行一次鼠标或键盘动作,返回动作后的画面与新 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>",
      "action": "<action>"
    },
    "name": "console_action"
  }
}

Input Schema

NameRequiredDescriptionDefault
vmYes
actionYes
formatNopng
max_widthNo
observation_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral burden. It usefully discloses the return payload (post-action screen plus new observation_id), but says nothing about these being mutating actions on a live guest, whether they are reversible, permission requirements, or any rate limits.

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?

One front-loaded sentence that states the action, its target scope, and the return value with no filler. It is appropriately short for what it covers, though brevity here comes partly at the cost of omitted parameter guidance.

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 tool with five top-level parameters, a nested action object with eleven enum variants and no annotations or output schema, the description is thin. Return values are covered, but the parameter space and the observation-chaining contract are not explained in enough detail.

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% and the description explains almost no parameters. It hints that mouse/keyboard intent lives in the action object but never clarifies the 11 action types, coordinates (x/y/to_x/to_y), duration_ms, amount, vm, format or max_width, so an agent must read the raw schema to call it correctly.

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?

A specific verb plus resource: performs one mouse or keyboard action on a guest console and returns the post-action screen with a new observation_id. It is clear enough to distinguish from likely siblings like console_batch, though it never names an alternative explicitly.

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?

Implied usage only: you must have an observation first, and the returned observation_id chains into the next call. There is no explicit when-to-use versus console_batch, console_type_saved or console_paste, and the phrase 'on the latest observation' sits awkwardly beside a required observation_id parameter.

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