Skip to main content
Glama

vm_key

Presses ordered key combinations in a UTM virtual machine using QEMU qcodes to trigger guest shortcuts like Ctrl+C, Alt+F4, or Win+R.

Instructions

Presses key combos in order. Each combo is QEMU qcodes joined by '-': 'ret', 'esc', 'tab', 'f5', 'up', 'ctrl-c', 'alt-f4', 'meta_l-r' (Win+R), 'ctrl-alt-delete', 'shift-tab'.

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>",
      "combos": "<combos>"
    },
    "name": "vm_key"
  }
}

Input Schema

NameRequiredDescriptionDefault
vmYes
combosYes

Output Schema

NameRequiredDescriptionDefault
resultYes

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 sequential ordering and QEMU qcode syntax, but omits prerequisites such as whether the VM must be running or focused, which window receives keys, and what happens with destructive combos like ctrl-alt-delete.

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?

The description is two sentences, front-loaded with the core action, and the examples earn their place by clarifying the qcode syntax. There is no redundant wording.

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?

The output schema handles return values, which is good. For this simple keyboard injection tool, the description covers combo syntax but leaves the vm target meaning and operational preconditions such as focus or VM state underspecified.

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

Parameters3/5

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

The combos parameter is well explained with format and examples, which matters given 0% schema description coverage. However, the vm parameter receives no explanation at all, so the description only partially compensates for the schema gap.

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 action, 'presses key combos,' with scope 'in order' and concrete qcode examples. It implicitly distinguishes keyboard combos from text typing, but does not explicitly name sibling alternatives.

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?

The examples imply use for keyboard shortcuts, but there is no explicit when-to-use or when-not-to-use guidance versus tools like vm_type or vm_click. The agent must infer usage from the examples and sibling names.

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