MCPDocumentation
On this page

Incidents

Incident counts

incident_counts
Read
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

FieldTypeDescription
organization_idintegerOnly to narrow: must be your organization (Autonex staff may pick another)
priority"urgent" | "high" | "medium" | "low" | "none"[]Priorities; "none" = no priority
category_idinteger | "none"[]Category ids; "none" = uncategorised
assignee"me" | "none" | integer"me" = assigned to me, "none" = unassigned, or a person id
minebooleanMine: assigned to me or unassigned in my departments (like "Mine" in the panel)
department_idinteger
location_idintegerCentre
due"overdue" | "today" | "none"overdue = past due, today = due today, none = no due date
qstringSearch title, contact name or phone, or by number (HEM-142)
contact_idinteger
conversation_idinteger

Every tool also accepts lang (es | en) for the language of the text answer.

Output

FieldTypeDescription
openRequirednumberpending + in_progress + waiting
by_statusRequiredobject
overdueRequirednumberOpen and past due
due_todayRequirednumberOpen, due today

Examples

Example 1: Summary of my incidents

Call

JSON
{
  "name": "incident_counts",
  "arguments": {
    "mine": true
  }
}

Response

JSON
{
  "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)

JSON
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "incident_counts",
    "arguments": {
      "mine": true
    }
  }
}