Skip to main content
Glama

vm_job_stop

Terminates a running UTM VM job and its child processes, returning status and exit code to confirm the job stopped.

Instructions

Kills a job and its child processes. Returns {ok, id, running, exit_code}; a killed job's exit_code is -1.

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>",
      "id": "<id>"
    },
    "name": "vm_job_stop"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
vmYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it does disclose that child processes are also killed and documents the return contract, including the exit_code = -1 convention for killed jobs. It omits error behavior for an unknown/nonexistent id, whether it waits for termination, and any permission requirements.

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?

Two tight, front-loaded sentences: the action first, the return contract second. Nothing is wasted or repeated.

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

Completeness3/5

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

The return shape is covered despite no output schema, but with both required parameters undocumented the definition is incomplete for correct invocation. Acceptable but with a clear gap in identifying what 'vm' and 'id' actually are.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% and neither parameter is mentioned in the description. An agent must guess whether 'vm' is a name, host, or id, and whether 'id' is a job id from vm_jobs/vm_job_start or a process id — the description does nothing to resolve this.

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?

States a specific verb and resource ('Kills a job and its child processes'), including the scope of the side effect on children. It implicitly separates itself from vm_stop/vm_kill by operating on a job rather than the VM itself, though it never names those siblings.

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

Usage Guidelines3/5

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

The destructive framing implies when it applies (terminating a background job), but there is no explicit guidance on when to prefer it over vm_kill or vm_stop, nor any preconditions such as the job having to exist first via vm_job_start.

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