Skip to main content
Glama

Reboot or Shut Down the Server

system_power
Destructive

Reboots or shuts down an entire Unraid server over SSH with a clean array stop, requiring explicit confirmation and risk acknowledgment before all shares, containers, and VMs go offline.

Instructions

⚠ Reboots (/sbin/reboot) or shuts down (/sbin/poweroff) the entire Unraid server over SSH. Unraid performs a clean array stop on the way down. Every share, Docker container, and VM goes offline; shutdown requires physical/WoL access to power back on. Requires confirm: true AND acknowledge_risk: true, plus SSH (UNRAID_SSH_* variables). The SSH connection dropping after the command is expected. response_format: detailed returns JSON with requested, command and outcome (initiated, or issued-unverified when the connection dropped mid-command). To take only the array offline, use array_action instead.

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

Input Schema

NameRequiredDescriptionDefault
actionYes`reboot` restarts the server; `shutdown` powers it off until it is turned on physically or by wake-on-LAN.
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 every share, container, and VM going offline; needed with `confirm` for both actions.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / response_format / description
      Previous value: -"Has no effect here; the result is always plain text."New value: +"`detailed` returns full JSON instead of readable text."
  2. Changed4 schema fields changedv0.1.3
    • addedInput schema / properties / acknowledge_risk / description
      Added value: +"Set `true` only after the user accepts every share, container, and VM going offline; needed with `confirm` for both actions."
    • addedInput schema / properties / action / description
      Added value: +"`reboot` restarts the server; `shutdown` powers it off until it is turned on physically or by wake-on-LAN."
    • 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: +"Has no effect here; the result is always plain text."
  3. First observedv0.1.1

TDQS

A4.9/5.0
Behavior5/5

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

Beyond the destructive annotation, it discloses the clean array stop, that every share, Docker container, and VM goes offline, that physical/WoL access is needed to power back on, the expected SSH drop, and the detailed outcome values. This is substantial behavioral context for a high-risk operation.

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?

It is front-loaded with a warning and the core action, then proceeds through consequences, prerequisites, connection behavior, and the alternative. Every sentence carries operational information, with no redundant restatement.

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 destructive server-wide operation with no output schema, the description covers consequences, prerequisites, expected connection behavior, return format, and the sibling alternative. Nothing an agent needs for correct invocation appears to be missing.

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 adds value by specifying that both confirm and acknowledge_risk must be true and by explaining the detailed outcome values (initiated or issued-unverified) that the schema does not mention.

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?

The description states a specific verb and resource (reboots or shuts down the entire Unraid server over SSH), names the underlying commands, and explicitly distinguishes this from array_action. An agent can identify exactly what the tool does 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 Guidelines5/5

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

It explicitly routes the agent: use this for full server reboot/shutdown, and use array_action to take only the array offline. It also states prerequisites (confirm and acknowledge_risk) and the SSH dependency, covering when to use and what is required.

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