Skip to main content
Glama

vm_window

Controls a Windows VM window: focus (restores then brings to front), minimize, maximize, restore, or close politely so apps can prompt to save.

Instructions

Acts on a window from vm_windows. action: focus (restores it first, then brings it to the front; ok=false if Windows refuses), minimize, maximize, restore, close (polite WM_CLOSE: an app may ask to save first).

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>",
      "hwnd": "<hwnd>",
      "action": "<action>"
    },
    "name": "vm_window"
  }
}

Input Schema

NameRequiredDescriptionDefault
vmYes
hwndYes
actionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/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 and does add real behavior: focus restores before raising, returns ok=false if Windows refuses, and close is a polite WM_CLOSE that may trigger a save prompt. That is meaningful disclosure of side effects and failure modes, but permission requirements and the shape of the result beyond the ok flag are unaddressed.

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 dense sentences with the source of the handle front-loaded and each parenthetical earning its place by disclosing a real behavioral caveat. Nothing is redundant or padded.

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

Completeness4/5

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

For a three-parameter mutation tool with no annotations and no output schema, the description covers the action semantics and key failure modes well. It falls short only on the non-action parameters and on any note about the return payload besides the implied ok flag.

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?

Schema coverage is 0% and all three parameters are title-only, so the description must compensate. It fully documents the action parameter with five values and per-value semantics, including the close/focus caveats, but leaves vm and hwnd unexplained beyond the implied 'window from vm_windows' reference.

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 states a concrete resource (a window) and names the sibling that supplies the handle (vm_windows), then enumerates the exact operations: focus, minimize, maximize, restore, close. It is clearly distinguishable from vm_windows (enumerate) and vm_close. The verb phrase 'acts on' is slightly generic, but the action list resolves any ambiguity.

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?

By saying 'a window from vm_windows' it implicitly routes the agent to fetch the hwnd first, and the per-action notes clarify which action to pick for each intent. There is no explicit when-not guidance and no statement about prerequisites such as elevation or VM state.

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