Skip to main content
Glama

vm_wait

Polls a UTM VM every 200 ms until a window appears, disappears, gains focus, a process exits, the screen changes, or a UAC prompt shows, returning status and wait time instead of sleeping.

Instructions

Waits (polling every 200 ms) instead of sleeping. for_: window (a visible window whose title contains title and/or whose process is process, e.g. "notepad.exe" appears), window_gone, foreground (that window is in front), process_exit (needs pid), screen_change (the screen changed, then stayed still), uac (a UAC consent prompt is showing). Returns ok, waited_ms and the window if any; ok=false on timeout.

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

Input Schema

NameRequiredDescriptionDefault
vmYes
pidNo
for_Yes
titleNo
processNo
timeoutNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description itself discloses the 200 ms polling interval, the change-then-still behavior for `screen_change`, the returned fields, and `ok=false` on timeout. It does not explicitly characterize the operation as read-only or explain error behavior, but it provides substantial operational context for a wait tool.

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?

The core purpose is front-loaded and the compact paragraph contains little filler. However, the long run-on enumeration, abbreviated fragments, and inline example make it harder to scan than a short structured condition list.

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 six-parameter tool with no annotations or output schema, it covers most invocation essentials: wait conditions, key selector relationships, polling, outputs, and timeout outcome. Missing timeout units, `vm` semantics, and precise per-condition selector and stability requirements prevent full completeness.

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 coverage is 0%, so the description does important work by enumerating `for_` values, explaining title/process window selection, and noting that `process_exit` needs `pid`. It leaves `vm` unexplained, omits units for `timeout`, and only sketchily covers `window_gone` and which selectors apply to `window_gone` or `foreground`.

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 specific action—waiting by polling—and identifies the window, process, screen, and UAC conditions it can await. This makes its role clear, but it does not explicitly distinguish it from any sibling tool.

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?

The phrase "instead of sleeping" gives a concrete reason to prefer this tool, and the `for_` list supplies recognizable use cases such as waiting for a window, process exit, or a UAC prompt. It does not provide exclusions or explicit sibling alternatives.

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