Array Disk Operations
array_disk_actionManage 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
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | 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. | |
| slot | No | Array slot number to put the disk in; optional, and only accepted with `add`. | |
| action | Yes | `add` puts a disk in the array (array must be STOPPED); `mount`, `unmount`, and `clear_statistics` need a STARTED array. | |
| confirm | No | Set `true` only after the user approves this specific change; otherwise the tool refuses or prompts them. | |
| response_format | No | `detailed` returns full JSON instead of readable text. | concise |
| acknowledge_risk | No | Set `true` only after the user accepts the risk; needed with `confirm` for every action. |