anomaly_detect
Detect anomalous hosts in a Zabbix host group by comparing item metric trends with z-score analysis, flagging values that deviate from the group average. Requires 2+ hosts.
Instructions
Detect anomalous hosts by comparing metric values across a host group. Uses z-score analysis on trend data to find hosts that deviate significantly from the group average. Requires at least 2 hosts with data.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hostid | No | Single host ID — compare against group baseline | |
| period | No | Analysis period: '1d', '7d', '30d' (default: '7d') | 7d |
| server | No | Target Zabbix server. Available: default. Defaults to 'default' if omitted. | |
| item_key | Yes | Item key pattern to analyze (e.g. 'system.cpu.util', 'vm.memory.utilization') | |
| 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 | Z-score threshold for anomaly (default: 2.0 = 2 standard deviations) | |
| hostgroupid | No | Host group ID — analyze all hosts in this group |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |