Item Get
item_getRetrieves Zabbix items (metrics) and their definitions, with filters for hosts, templates, names, and keys plus paging options.
Instructions
Get items (metrics) from Zabbix.
Items are the data sources in Zabbix - they define what metrics are collected and how (protocol, interval, etc.). Each item produces a stream of values over time.
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": "item_get"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of results to return. Default is 100. | |
| offset | No | Number of matching records to skip. Use with 'limit' to page through results; check 'has_more' and 'total' in the response. | |
| output | No | extend | |
| search | No | Dictionary with search criteria like {'name': 'CPU'} for substring matching. | |
| hostids | No | List of host IDs to get items from. Filters items by host. An empty list matches none. | |
| itemids | No | List of item IDs to get. Omit to return all items; an empty list matches none. | |
| groupids | No | List of group IDs to get items from hosts in those groups. An empty list matches none. | |
| webitems | No | If true, also return web scenario items (webitems=true), which Zabbix leaves out by default. | |
| sortfield | No | Field to sort by. A deterministic sort is required for paging to be consistent. | itemid |
| sortorder | No | Sort direction - 'ASC' or 'DESC'. | ASC |
| select_tags | No | If true, include the tags for each item in the response (selectTags=extend). | |
| templateids | No | List of template IDs to get items from those templates. An empty list matches none. | |
| count_output | No | If true, returns only the count of matched objects as an integer. | |
| select_hosts | No | If true, include the hosts each item belongs to in the response (selectHosts=extend). | |
| filter_params | No | Additional filter parameters for advanced filtering. | |
| select_triggers | No | If true, include the triggers for each item in the response (selectTriggers=extend). | |
| item_key_contains | No | Shortcut to search for items by key (constructs search={'key_': item_key_contains}). | |
| item_name_contains | No | Shortcut to search for items by name (constructs search={'name': item_name_contains}). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||