Skip to main content
Glama

vm_ready

Waits until a virtual machine is ready to drive, checking the guest agent and, on Windows, a logged-in active desktop session after start, reboot, or QMP changes.

Instructions

Waits until the VM can be driven: the guest agent answers and, on Windows with need_helper, the helper reports a logged-in user, an active session and the Default desktop (not locked, not on the lock screen or a UAC prompt). Use it after vm_start, a reboot or a QMP change. Returns {ready, agent, helper, user, session, desktop, waited_s}; on timeout ready is false and missing says what never came up (no exception). Linux guests: only the agent counts.

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_ready"
  }
}

Input Schema

NameRequiredDescriptionDefault
vmYes
timeoutNo
need_helperNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/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 burden and does well: it discloses that the call blocks/polls, that failure is returned as ready=false with a `missing` field rather than an exception, and that Windows readiness is stricter than Linux readiness. The only gap is that the timeout unit is never stated outright (inferred only from waited_s).

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 readiness condition is front-loaded in the first sentence and the return/failure contract follows immediately; the parenthetical 'not locked, not on the lock screen or a UAC prompt' earns its space by disambiguating 'Default desktop'. Sentences are long and dense but nothing is filler.

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

Completeness5/5

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

For a three-parameter blocking tool with no annotations and no output schema, the description supplies everything an agent needs: preconditions, the platform-dependent success criteria, the return keys, and the timeout failure shape. Listing the returned fields compensates for the missing output schema.

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%, so the description must compensate, and it explains need_helper's effect on the Windows check and implies timeout semantics via 'on timeout' and waited_s. The `vm` parameter is left completely unexplained, so meaning is added for only part of the parameter set.

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?

The description gives a specific verb and target ('waits until the VM can be driven') and then defines the exact readiness predicate: guest agent answering, plus on Windows with need_helper a logged-in user, active session and Default desktop. That level of detail clearly separates it from siblings like vm_start or vm_info, which an agent could otherwise confuse with a readiness check.

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?

It explicitly names the triggering situations: 'Use it after vm_start, a reboot or a QMP change', and adds a platform caveat that Linux guests only require the agent. There is no explicit when-not or named alternative, but for a blocking wait tool the positive guidance covers the realistic decision cases.

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