Skip to main content
Glama

vm_kill

Terminate a process inside a UTM guest VM by PID, optionally killing its child processes first, to stop stuck or unwanted guest workloads.

Instructions

Kills a guest process (tree=True: its children too, children first). 404 if it is gone; the helper refuses pid 0 and 4, itself and its supervisor. 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>",
      "pid": "<pid>"
    },
    "name": "vm_kill"
  }
}

Input Schema

NameRequiredDescriptionDefault
vmYes
pidYes
treeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/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 substantial work: it discloses recursive tree ordering ('children first'), the 404 condition for an already-dead process, the helper's refusal of pid 0, 4, itself, and its supervisor, plus the Windows/helper prerequisites. It stops short of stating what the response contains or whether the kill is graceful vs. forceful, which keeps it out of the top band.

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 compact sentences, front-loaded with the core action, with the tree semantics parenthesized inline where they belong. Nothing is redundant and nothing important is buried; the telegraphic 'needs the helper' phrasing is terse but still parseable.

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

Completeness4/5

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

For a three-parameter destructive tool with no annotations and no output schema, the definition covers prerequisites, tree ordering, guard rails, and one failure mode. The remaining gap is the return value and any other failure behavior, which the agent has to infer since no output schema exists to carry it.

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 compensate and largely does: 'tree=True: its children too, children first' gives both the flag's meaning and its execution order, and the refused-pid list adds real semantic constraints on the pid argument that the bare integer schema cannot convey. Only the vm parameter is left without any descriptive treatment.

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 guest process,' with no ambiguity about the operation. It is distinguishably different from VM-level controls like vm_stop, but it never names a sibling or explicitly scopes itself against vm_ps/vm_exec, so full sibling differentiation is implied rather than stated.

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?

Gives real operative conditions — Windows guests only, requires the helper, 404 when the process is already gone — which effectively tells an agent when the call will fail. However, it never says when to prefer this over an alternative (e.g., graceful termination vs. force kill, or which tool to use for Linux guests), so the when-to-use guidance is implied rather than explicit.

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