capacity_forecast
Predict when a Zabbix metric will hit a threshold using linear regression on historical data, returning date, growth rate, and confidence for capacity planning.
Instructions
Forecast when a metric will reach a threshold using linear regression on historical trend data. Returns predicted date, daily growth rate, and R-squared confidence. Useful for capacity planning (disk, CPU, memory).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hostid | Yes | Host ID to analyze | |
| period | No | Historical period for regression: '7d', '30d', '90d' (default: '30d') | 30d |
| server | No | Target Zabbix server. Available: default. Defaults to 'default' if omitted. | |
| item_key | Yes | Item key to forecast (e.g. 'vfs.fs.size[/,pused]', 'system.cpu.util') | |
| raw_json | No | Strips the security disclaimer preamble from the response so it is pure JSON. Default: false. Requires the bearer token to have 'allow_raw_json' explicitly enabled by an operator in the admin portal - tokens without that policy receive a PolicyError instead. WARNING: setting true bypasses the prompt-injection mitigation marker that wraps untrusted Zabbix data (host names, item descriptions, problem text). LLM clients (Claude, GPT, Cursor, ...) should leave this false; only programmatic non-LLM consumers (Python scripts, n8n workflows that json.loads the result) should set true. | |
| threshold | No | Value threshold to predict when reached (default: 90.0) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |