Skip to main content
Glama

Control a Virtual Machine

vm_action
Destructive

Change Unraid VM run states—start, stop, pause, resume, reboot, force-stop, or reset—with confirmation required and risk acknowledgment for ungraceful actions.

Instructions

Changes a VM's run state. action: start/resume (bring up / un-pause), stop (graceful ACPI shutdown — waits ~10s then force-kills if the guest doesn't respond), reboot (graceful — fails if the guest ignores ACPI within ~10s; use forceStop then start), pause (freeze in memory), or forceStop/reset (⚠ ungraceful hard kill / hard kill-and-cold-boot that can corrupt the guest filesystem). vm accepts a VM name or id from vm_list. Requires confirm: true; forceStop and reset additionally require acknowledge_risk: true. The configured Unraid API key must have VM permission.

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>",
      "action": "<action>"
    },
    "name": "vm_action"
  }
}

Input Schema

NameRequiredDescriptionDefault
vmYesVM name (exact, case-insensitive) or id from vm_list; pass the id when several VMs share a name.
actionYesRun-state change to apply; `forceStop` and `reset` are the ungraceful ones.
confirmNoSet `true` only after the user approves this specific change; otherwise the tool refuses or prompts them.
response_formatNo`detailed` returns full JSON instead of readable text.concise
acknowledge_riskNoSet `true` only after the user accepts possible guest filesystem corruption; needed for `forceStop` and `reset`, ignored otherwise.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv0.1.3
    • addedInput schema / properties / acknowledge_risk / description
      Added value: +"Set `true` only after the user accepts possible guest filesystem corruption; needed for `forceStop` and `reset`, ignored otherwise."
    • addedInput schema / properties / action / description
      Added value: +"Run-state change to apply; `forceStop` and `reset` are the ungraceful ones."
    • addedInput schema / properties / confirm / description
      Added value: +"Set `true` only after the user approves this specific change; otherwise the tool refuses or prompts them."
    • addedInput schema / properties / response_format / description
      Added value: +"`detailed` returns full JSON instead of readable text."
    • addedInput schema / properties / vm / description
      Added value: +"VM name (exact, case-insensitive) or id from vm_list; pass the id when several VMs share a name."
  2. First observedv0.1.1

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and readOnlyHint=false, and the description goes well beyond them: ~10s ACPI timeout before force-kill, reboot failing on an unresponsive guest, and an explicit warning that forceStop/reset can corrupt the guest filesystem. It also discloses the confirm/acknowledge_risk gate and the required Unraid API permission — precisely the context an agent needs before a destructive mutation.

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?

Front-loaded with the core purpose, then the action semantics, then the confirmation and permission prerequisites — a sensible ordering with little waste. A few clauses duplicate schema text (the confirm gating and the "ungraceful" note on forceStop/reset), and the dense parenthetical with a ⚠ glyph slightly hurts scanability.

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 destructive multi-action mutation with no output schema, the description covers consequences, timeout behavior, failure modes, confirmation protocol, and auth requirements — an unusually complete picture. The only gap is that it never indicates what a successful call returns or how response_format changes 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 coverage is 100%, so the baseline is 3; the description earns above baseline by attaching per-value behavior to the action enum (start/resume = up/un-pause, stop = graceful with force-kill fallback, pause = freeze in memory) and by noting forceStop/reset require acknowledge_risk. The confirm semantics are largely restated from the schema, which keeps this from a 5.

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?

"Changes a VM's run state" is a specific verb+resource that immediately separates this tool from vm_list and vm_snapshot_create. The action enumeration that follows makes the scope concrete, so an agent knows exactly what class of operation this is without opening the schema.

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

Usage Guidelines4/5

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

The description gives real routing guidance inside the tool: graceful reboot should be followed by forceStop then start if the guest ignores ACPI, and confirmation flags gate the dangerous variants. It does not name sibling tools (e.g. vm_list for discovery), but it does point at vm_list as the id source, so the guidance is clear though not exhaustive.

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