History Get
history_getRetrieve raw metric values collected by Zabbix items with timestamps to analyze system behavior over time; filter by item IDs, time range, sort order, and result limit.
Instructions
Get history data from Zabbix.
Retrieves the raw metric values collected by items. History contains all individual collected data points with timestamps, allowing detailed analysis of system behavior over time.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"itemids": "<itemids>"
},
"name": "history_get"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of results to return. Default is 100. | |
| history | No | Storage type to read: 0=float, 1=char, 2=log, 3=unsigned, 4=text. Must match the items' value_type or Zabbix returns nothing. Detected from the items when omitted. | |
| itemids | Yes | Item IDs to get history for. | |
| sortfield | No | Field to sort by (default 'clock' = timestamp). | clock |
| sortorder | No | Sort direction - 'ASC' (oldest first) or 'DESC' (newest first). Default is DESC. | DESC |
| time_from | No | Unix timestamp to get history from this time onwards. | |
| time_till | No | Unix timestamp to get history up to this time. | |
| count_output | No | If true, returns only the count of matched objects as an integer. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||