Count items
glpi_count_itemsCount matching items without transferring them — answers 'how many' in one cheap call. Use glpi_list_search_options to discover criteria field IDs.
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": {
"itemtype": "<itemtype>"
},
"name": "glpi_count_items"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| criteria | No | Array of {field, searchtype, value, link} — same shape as glpi_search | |
| itemtype | Yes | Item type, e.g. Ticket, Computer, User |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes |