Skip to main content
Glama

vm_job_start

Starts a long-running program in a UTM guest VM, returning a job ID and PID so builds, installers, or servers run in the background and logs can be read separately.

Instructions

Starts a long-running program in the guest that outlives this call (a build, an installer, a server) and returns {id, pid}. Output (stdout and stderr, interleaved) is kept in a log you read with vm_job_log. Use jobs, not vm_exec with a long timeout, for anything that takes more than a minute. argv[0] is the executable, no shell: ["cmd.exe", "/c", "..."] for shell syntax. as_: user (default), admin or system, as for vm_run_user. Windows guests, needs the helper.

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

Input Schema

NameRequiredDescriptionDefault
vmYes
as_Nouser
cwdNo
argvYes
showNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/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 process outlives the call, returns {id, pid}, that stdout/stderr are interleaved into a log, that there is no shell (argv[0] is the executable), that it is Windows-only, and that the helper is required. Gaps remain on failure behavior, whether a job must be explicitly stopped via vm_job_stop, and what privileges admin/system actually require.

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?

Dense and front-loaded: the core behavior and return value come first, then the sibling routing, then argument semantics, then platform prerequisites. Every clause carries information; nothing is repeated from the schema.

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 5-parameter mutation-style tool with no annotations and no output schema, the description supplies the return shape ({id, pid}), where output goes and how to read it, platform and dependency requirements, and the key no-shell argument convention. An agent can invoke this correctly without opening the 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 description coverage is 0%, so the description must compensate. It explains argv semantics (argv[0] executable, no shell, cmd.exe /c for shell syntax) and as_ values (user default, admin or system, cross-referenced to vm_run_user), but leaves cwd and show entirely undocumented in both schema and description.

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 ("Starts a long-running program in the guest that outlives this call") and immediately scopes it with concrete examples (build, installer, server). It also distinguishes itself from siblings by naming vm_job_log for output and vm_exec as the wrong tool for long tasks.

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 an explicit selection rule: "Use jobs, not vm_exec with a long timeout, for anything that takes more than a minute." It also routes the agent to vm_job_log for reading output, so both the entry point and the follow-up are named with conditions.

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