Skip to main content
Glama

vm_run_user

Run programs in a UTM VM guest desktop session to open GUI apps, with options to wait for output or return only the process ID.

Instructions

Runs a program in the guest's desktop session (unlike vm_exec, which has no desktop). Use it to open GUI apps: argv ["notepad.exe"], wait=False. With wait=True returns pid, exit_code, stdout, stderr, timed_out (a program that outlives timeout seconds keeps running); with wait=False only the pid. show=False hides the console window. argv[0] is the executable, no shell: use ["cmd.exe", "/c", "..."] for shell syntax. as_ picks the identity: "user" (default) the logged-in user, normal rights; "admin" the same user elevated (no UAC prompt appears; fails with 403 if they are not an administrator); "system" NT AUTHORITY\SYSTEM. Admin apps can be driven by vm_window / vm_ui_act too.

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

Input Schema

NameRequiredDescriptionDefault
vmYes
as_Nouser
argvYes
showNo
waitNo
timeoutNo

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 supplied, the description carries the full behavioral burden and does so: it discloses return values per mode (pid/exit_code/stdout/stderr/timed_out with wait=True, only pid with wait=False), that a process outliving the timeout keeps running, that show=False hides the console window, and the elevation failure mode (403 if the user is not an administrator, no UAC prompt).

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?

Dense but front-loaded, leading with the purpose and the sibling distinction before moving to invocation details. Some parenthetical asides are packed into long sentences, making it slightly harder to scan than it needs to be, but no sentence is redundant.

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 six-parameter process-launch tool with no annotations and no output schema, the description supplies everything needed to call it correctly: argv conventions, wait/timeout interaction, console visibility, identity selection and its failure mode, and the return shape per mode.

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 document parameters itself, and it covers argv semantics (argv[0] is the executable, no shell, use cmd.exe /c for shell syntax), wait, timeout, show, and all three as_ identities with their rights levels. The vm parameter is left entirely undocumented, which is the only notable gap.

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?

Opens with a specific verb and resource ("Runs a program in the guest's desktop session") and immediately distinguishes itself from the sibling vm_exec by noting that vm_exec has no desktop. An agent can pick between the two without opening either schema.

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?

Explicitly states the intended use case ("Use it to open GUI apps") and names the contrasting alternative, vm_exec, along with the condition that selects it. It also notes that admin-launched apps can be driven by vm_window / vm_ui_act, routing follow-up work to the right siblings.

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