get_disk_info
Identify partitions nearing capacity by retrieving disk usage per mounted partition, with optional threshold and mount point filters.
Instructions
Returns disk usage per mounted partition. Params: mount_point (exact match, must start with /) and threshold (only partitions at or above it). Read-only via statfs. Fatal only if partitions cannot be listed; per-partition read errors are skipped. Use for capacity; get_inode_usage when 'disk full' persists with free space.
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_disk_info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| threshold | No | optional threshold filter (e.g. 80 means only partitions >=80% used) | |
| mount_point | No | optional mount point filter |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| errors | No | ||
| partitions | Yes |