Get ticket stats
glpi_get_ticket_statsTicket counts per built-in status (New, Processing assigned/planned, Pending, Solved, Closed), other_status_count for codes outside 1–6, and the total, without listing the tickets. Report other statuses separately and check counts_consistent before reporting an exact breakdown. For open tickets only, filter status (field 12) equals 'notold'; unfiltered counts include solved and closed tickets. Optional criteria narrow the scope, e.g. one entity: [{field: 80, searchtype: 'equals', value: }] (Ticket search option IDs: 80 = entity, 4 = requester, 5 = technician, 7 = category; same criteria shape as glpi_search).
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": "glpi_get_ticket_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| criteria | No | Optional criteria to narrow the scope: array of {field, searchtype, value, link} |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No |