Skip to main content
Glama

Spin Disk Up/Down

disk_spin
Idempotent

Spins an Unraid array disk, parity, cache pool, or unassigned /dev/sdX device up or down over SSH, keeping tracked spin state consistent.

Instructions

Spins a disk up or down over SSH. Pass exactly one target: array slots and cache* pools (disk: disk1, parity, cache, ...) go through emhttpd (emcmd) so Unraid's tracked spin state stays consistent; unassigned devices (device: /dev/sdX) use sdspin (an hdparm wrapper — ATA only, SAS needs the community plugin). Requires confirm: true and SSH (UNRAID_SSH_*). Spinning down interrupts nothing but adds spin-up latency on next access. Verify the result with disk_list (response_format: detailed shows the spin state).

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": "disk_spin"
  }
}

Input Schema

NameRequiredDescriptionDefault
diskNoSlot name: diskN, parity, parity2, or a pool named cache or cacheN (other pool names are rejected); use this instead of `device`.
actionYesWhether to spin the target disk up or down.
deviceNoPath /dev/sdX of an unassigned device (see unassigned_list); use this instead of `disk`. NVMe paths are rejected.
confirmNoSet `true` only after the user approves this specific change; otherwise the tool refuses or prompts them.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.1.3
    • addedInput schema / properties / action / description
      Added value: +"Whether to spin the target disk up or down."
    • 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 / device / description
      Added value: +"Path /dev/sdX of an unassigned device (see unassigned_list); use this instead of `disk`. NVMe paths are rejected."
    • addedInput schema / properties / disk / description
      Added value: +"Slot name: diskN, parity, parity2, or a pool named cache or cacheN (other pool names are rejected); use this instead of `device`."
  2. First observedv0.1.1

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare non-readOnly, non-destructive, idempotent behavior, and the description adds substantial context beyond them: the two distinct execution paths and why emcmd is used (to keep Unraid's tracked spin state consistent), the ATA-only limit of sdspin, and the operational consequence that spinning down interrupts nothing but adds latency on next access. The confirm-gating and SSH requirement are also disclosed.

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 action, then ordered by target routing, prerequisites, and a verification hint. Dense but every clause carries operational information. The parenthetical about sdspin being an hdparm wrapper is slightly more detail than strictly needed, keeping it from a 5.

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?

With no output schema, the description compensates by naming disk_list with response_format detailed as the way to confirm the resulting spin state, and it covers the mutation prerequisites, target routing, and side effects. Nothing an agent needs to invoke this correctly is 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; however the description adds genuine meaning by explaining that the choice of `disk` vs `device` is not cosmetic but selects a different backend implementation, and by noting that the unassigned path rejects NVMe and only supports ATA. That is semantic value the schema descriptions alone do not convey.

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 first clause states a specific verb and resource (spin a disk up or down over SSH), and the rest draws a precise boundary between two target classes routed to different backends (emhttpd/emcmd for array slots and cache pools, sdspin for unassigned /dev/sdX devices). This is distinct from siblings like disk_list and array_disk_action without needing to open any 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?

It tells the agent exactly how to choose between `disk` and `device` and notes the SAS limitation requiring the community plugin, plus the mandatory `confirm: true` and UNRAID_SSH_* prerequisites. It also points to disk_list with response_format detailed for verification. It stops short of explicitly naming when array_disk_action would be preferred over this tool, so a 4 rather than a full 5.

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