Incident counts
- Permission required
incidents.view
When to use it
How many incidents per status, how many open, overdue and due today, with the same filters as list_incidents (minus status). Useful for a quick summary without fetching the list.
Input
| Field | Type | Description |
|---|---|---|
organization_id | integer | Only to narrow: must be your organization (Autonex staff may pick another) |
priority | "urgent" | "high" | "medium" | "low" | "none"[] | Priorities; "none" = no priority |
category_id | integer | "none"[] | Category ids; "none" = uncategorised |
assignee | "me" | "none" | integer | "me" = assigned to me, "none" = unassigned, or a person id |
mine | boolean | Mine: assigned to me or unassigned in my departments (like "Mine" in the panel) |
department_id | integer | |
location_id | integer | Centre |
due | "overdue" | "today" | "none" | overdue = past due, today = due today, none = no due date |
q | string | Search title, contact name or phone, or by number (HEM-142) |
contact_id | integer | |
conversation_id | integer |
Every tool also accepts lang (es | en) for the language of the text answer.
Output
| Field | Type | Description |
|---|---|---|
openRequired | number | pending + in_progress + waiting |
by_statusRequired | object | |
overdueRequired | number | Open and past due |
due_todayRequired | number | Open, due today |
Examples
Example 1: Summary of my incidents
Call
{
"name": "incident_counts",
"arguments": {
"mine": true
}
}Response
{
"open": 7,
"by_status": {
"pending": 4,
"in_progress": 2,
"waiting": 1,
"resolved": 30,
"cancelled": 2
},
"overdue": 1,
"due_today": 2
}Equivalent JSON-RPC call (POST /mcp)
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "incident_counts",
"arguments": {
"mine": true
}
}
}