disks/health
Read a drive's SMART health data as JSON to assess disk status, temperature, and attributes. Provide a bare device name like sda or nvme0n1; root access is required.
Instructions
Returns a drive's SMART data as smartctl's JSON (wraps smartctl -j -a; the smartmontools package must be installed or the call fails saying so). Read-only, but normally needs root: use privileged: true (needs a grant), since without it smartctl usually cannot open the device. device is a bare kernel name such as sda or nvme0n1, never a path; find names with disks/list. The reply is smartctl's JSON verbatim (keys such as smart_status, temperature, ata_smart_attributes or nvme_smart_health_information_log vary by drive type); a non-zero smartctl exit is not an error when it printed JSON, and virtual disks report SMART as unsupported. For I/O counters use disks/performance.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | Yes | Bare kernel device name such as 'sda' or 'nvme0n1' (never a path) | |
| privileged | No | Run as root - required to read SMART data. Needs a grant for this tool in mcp-sudo.yaml |