Skip to main content
Glama

vm_uac

Inspect and respond to Windows UAC secure-desktop prompts on UTM VMs: read dialog details and screenshot, then allow or deny; credential prompts can only be denied.

Instructions

Answers a UAC consent prompt (the secure desktop that screenshots and ordinary windows can't reach). Waits up to timeout seconds for one. inspect: the dialog's program, publisher, file, prompt_kind (consent / credentials), buttons and every text, plus a screenshot of it. allow / deny: clicks Yes / No and waits for the desktop to come back. Credential prompts (a non-admin user) can only be denied; allow is refused. To test the flow, start an elevation as the user, e.g. vm_run_user(["powershell.exe", "-Command", "Start-Process cmd.exe -Verb RunAs"], wait=False), then vm_wait(for_="uac"). Without the helper (or when it errors with 5xx) it falls back to QMP keys / screenshot and says so; for admin programs without any prompt use as_="admin".

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

Input Schema

NameRequiredDescriptionDefault
vmYes
actionNoinspect
timeoutNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/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 so: it discloses the wait/timeout behavior, that allow/deny click Yes/No and wait for the desktop to return, that credential prompts can only be denied and allow is refused, and that the helper may fail with 5xx and fall back to QMP keys/screenshot. These are non-obvious operational constraints an agent could not infer from the schema.

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 purpose and action semantics are front-loaded in the first two sentences, with the test recipe and fallback notes after. The embedded vm_run_user code example is a bit long for a description field, but it earns its place as an actionable invocation pattern rather than 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?

An output schema exists, yet the description still summarizes what inspect returns (program, publisher, file, prompt_kind, buttons, all text, screenshot), and it covers failure modes, credential restrictions, and the admin alternative. For a tool that manipulates a secure desktop, nothing an agent needs to call it safely is missing.

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 description coverage is 0%, so the description must supply meaning, and it does for two of three params: `timeout` is defined as the wait bound, and `action` is given the value set inspect/allow/deny with per-value behavior. `vm` is left unexplained but is self-evident from the tool family, so the gap is minor.

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 ('Answers a UAC consent prompt') and immediately scopes it to the secure desktop that screenshots and ordinary windows can't reach, which separates it from vm_screenshot and vm_click. It also enumerates the three actions (inspect/allow/deny) so the agent knows the tool's operating modes up front.

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

Usage Guidelines5/5

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

Gives explicit when-to-use plus a concrete recipe: start an elevation with vm_run_user(... wait=False) then vm_wait(for_="uac"). It also names the alternative path ('for admin programs without any prompt use as_="admin"') and the degradation path (QMP keys/screenshot fallback on 5xx), so the agent can route correctly without guessing.

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