cacheout_system_health
Retrieves overall system health score (0-100) and active alerts to identify performance issues. Fetches via daemon socket for low latency or computes locally.
Instructions
Get overall system health score with alerts.
Returns a health score (0-100, -1 if no data), the data source, and any active alerts from the daemon.
In socket mode (daemon running), fetches health data directly from the daemon's Unix socket for <1ms latency. In CLI/standalone mode, computes the health score locally using the canonical formula.
The health score formula: base = 100 critical pressure: -50, warn pressure: -25 swap penalty: min(50, swap_used_percent / 2) compressor penalty: min(30, max(0, (3.0 - ratio) * 10)) score = max(0, base - penalties)
Returns: str: JSON with score (Int, -1 if no data), source, and alerts array.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |