Skip to main content
Glama

vm_windows

Lists visible top-level windows in front-to-back order with handles, titles, process details, geometry, and focus state so you can target windows for UI inspection, actions, or screenshots.

Instructions

Lists the visible top-level windows, front first: hwnd, title, class, pid, process, x, y, width, height, focused, minimized, maximized (physical screen pixels). Use the hwnd with vm_window, vm_ui_tree, vm_ui_act and vm_screenshot.

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

Input Schema

NameRequiredDescriptionDefault
vmYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full load and does well: it discloses ordering (z-order, front first), that only visible top-level windows appear, and that coordinates are physical screen pixels rather than logical units. It omits state preconditions (VM running, guest OS/display assumptions) and any note on empty results.

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, front-loaded with the core action and return fields, then the routing hint. Every clause carries information; nothing is redundant filler.

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 simple single-parameter enumeration tool with an output schema present, the description covers behavior, ordering, and units adequately. The remaining gap is the undocumented 'vm' argument and unstated preconditions for a meaningful result set.

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 never mentions the single required 'vm' parameter, so it adds no meaning beyond the bare schema. The name is fairly self-evident as a VM selector, but no format, identifier source, or required-state guidance is given.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Lists the visible top-level windows') and immediately scopes it ('front first'), then enumerates exactly what is returned. Naming vm_window, vm_ui_tree, vm_ui_act and vm_screenshot as downstream consumers distinguishes it from siblings that operate on a single window.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Clearly positions the tool as the discovery step whose hwnd feeds vm_window, vm_ui_tree, vm_ui_act and vm_screenshot, which tells an agent when to reach for it. It stops short of explicit exclusions, e.g. it does not say what to do for non-visible or child windows.

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