get_smartd_health
Retrieve SMART health data for any storage device, including overall health, critical warnings, temperature, spare and usage percentages, power-on hours, unsafe shutdowns, and media errors.
Instructions
Query SMART health for a storage device via smartctl.
device: /dev/nvme0n1, /dev/sda, etc. Default is niborserver's NVMe. Returns: overall_health, critical_warning, temperature_c, available_spare_pct, percentage_used_pct, power_on_hours, unsafe_shutdowns, media_errors.
Requires sudo (smartctl needs raw device access). Returns {"error": ...} if smartctl isn't installed or sudo isn't permitted (the calling user must have NOPASSWD sudo for smartctl OR the MCP server must run as root).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_smartd_health"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | No | /dev/nvme0n1 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||