Item Create
item_createCreates a new Zabbix item to define what metric a host collects, including item type, key, update interval, and value type.
Instructions
Create a new item in Zabbix.
Items define what data is collected from a host. Each item specifies the metric name, how to collect it (agent, SNMP, etc.), what interval to use, and what data type to store.
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": {
"name": "<name>",
"key_": "<key_>",
"hostid": "<hostid>",
"type_": "<type_>",
"value_type": "<value_type>"
},
"name": "item_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key_ | Yes | Item key. | |
| name | Yes | Item name. | |
| delay | No | Update interval. Must be '0' for trapper (2) and dependent (18) items. | 1m |
| type_ | Yes | Item type (0=Zabbix agent, 2=trapper, etc.). | |
| units | No | Optional units for the values like 'bytes', 'CPU%', 'rpm'. | |
| hostid | Yes | Host ID. | |
| value_type | Yes | Value type (0=float, 1=char, 2=log, 3=unsigned, 4=text). | |
| description | No | Optional item description explaining its purpose. | |
| interfaceid | No | Host interface to poll through. Required for Zabbix agent (0), SNMP agent (20), SNMP trap (17), IPMI (12) and JMX (16) items on a host. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||