Skip to main content
Glama

Array Disk Operations

array_disk_action
Destructive

Manage Unraid array disks by adding a disk to a stopped array, mounting/unmounting on a started array, or clearing error statistics; confirmation and risk acknowledgment are required.

Instructions

⚠ Array disk operations: add a disk to the protected array (requires a STOPPED array — checked first), mount/unmount an array disk, or clear a disk's error statistics (require a STARTED array). Removing a disk is no longer offered by the Unraid API (4.37+) — use the web UI. A wrong disk id on add risks data loss. Requires confirm: true AND acknowledge_risk: true. For mount, unmount, and clear_statistics, id is the disk row's id from array_status with response_format: detailed (its disks, parities, and caches rows). The API does not document which id add expects, so confirm the exact disk with the user first. Results are requested, not confirmed — verify with array_status/disk_list.

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

Input Schema

NameRequiredDescriptionDefault
idYesUnraid API id, sent unchanged. For `mount`, `unmount` and `clear_statistics`, use the disk's `id` from array_status (`response_format: detailed`). For `add`, confirm the exact disk with the user first.
slotNoArray slot number to put the disk in; optional, and only accepted with `add`.
actionYes`add` puts a disk in the array (array must be STOPPED); `mount`, `unmount`, and `clear_statistics` need a STARTED array.
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 the risk; needed with `confirm` for every action.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / id / description
      Previous value: -"Unraid API id, sent unchanged. For `mount`, `unmount` and `clear_statistics` it is the array disk's `id` (see the tool description for the query)."New value: +"Unraid API id, sent unchanged. For `mount`, `unmount` and `clear_statistics`, use the disk's `id` from array_status (`response_format: detailed`). For `add`, confirm the exact disk with the user first."
  2. Changed6 schema fields changedv0.1.3
    • addedInput schema / properties / acknowledge_risk / description
      Added value: +"Set `true` only after the user accepts the risk; needed with `confirm` for every action."
    • addedInput schema / properties / action / description
      Added value: +"`add` puts a disk in the array (array must be STOPPED); `mount`, `unmount`, and `clear_statistics` need a STARTED array."
    • 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 / id / description
      Added value: +"Unraid API id, sent unchanged. For `mount`, `unmount` and `clear_statistics` it is the array disk's `id` (see the tool description for the query)."
    • addedInput schema / properties / response_format / description
      Added value: +"`detailed` returns full JSON instead of readable text."
    • addedInput schema / properties / slot / description
      Added value: +"Array slot number to put the disk in; optional, and only accepted with `add`."
  3. First observedv0.1.1

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnly=false, but the description adds material context: the array-state gate, the data-loss risk of a wrong id on add, the mandatory double acknowledgement, the fact that the API does not document what id `add` expects, and that results are merely requested rather than confirmed. The only notable omission is nothing much — it is a genuinely informative behavioral layer beyond the annotations.

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-loads the warning marker and the risk/confirmation requirements, then walks the actions and the id-sourcing rule with zero filler. It is dense to the point of cramming several clauses into single sentences, which slightly hurts scanability, but every sentence carries operational weight.

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, multi-action mutation tool with no output schema, the description covers preconditions, risk, confirmation gates, identifier sourcing, the undocumented add-id gap, and how to verify the outcome. Nothing an agent needs before calling it safely 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 description coverage is 100%, so baseline is 3, but the description still adds provenance for `id` (the row id from array_status with response_format: detailed, specifically its disks/parities/caches entries) and warns that `add`'s id is undocumented. That is meaning the schema alone does not convey about which identifier to source and where.

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?

States concrete verbs plus the exact action set (add, mount, unmount, clear_statistics) on the array-disk resource, and explicitly closes a scope question by noting that disk removal is no longer available in the API. An agent can distinguish this from array_action or disk_list without opening a 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?

Gives per-action preconditions (add requires STOPPED array and is checked first; mount/unmount/clear_statistics require STARTED), names the fallback for the unsupported removal case (web UI), and states the confirm + acknowledge_risk gate up front. It also directs the agent to verify results with array_status/disk_list rather than trusting the response.

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