MCPDocumentation
On this page

Incidents

List incidents

list_incidents
Read
Permission required
incidents.view

When to use it

Your organization's incidents with the same filters as the panel: status, priority, category, assignee (incl. "me" and "Mine"), department, centre, due date (overdue / today) and search. You only see your centres'. Ordered like the board.

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
status"pending" | "in_progress" | "waiting" | "resolved" | "cancelled"[]Statuses. Default: the open ones (pending, in_progress, waiting)
include_closedbooleanWithout status: also include resolved and cancelled
limitintegerMaximum incidents (1–200, default 50)

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

Output

FieldTypeDescription
incidentsRequiredobject[]
incidents[].idRequirednumber
incidents[].identifierRequiredstring | nullVisible reference, e.g. HEM-142
incidents[].numberRequirednumber | null
incidents[].titleRequiredstring
incidents[].statusRequired"pending" | "in_progress" | "waiting" | "resolved" | "cancelled"
incidents[].priorityRequired"urgent" | "high" | "medium" | "low" | null
incidents[].categoryRequiredobject | null
incidents[].departmentRequiredobject | null
incidents[].locationRequiredobject | nullCentre
incidents[].assigneeRequiredobject | nullAssigned person
incidents[].contactRequiredobject | null
incidents[].channelRequiredstring | null
incidents[].created_byRequiredobjectagent = the AI, human = a person, system
incidents[].created_by.typeRequiredstring
incidents[].created_by.nameRequiredstring | null
incidents[].due_atRequiredstring | nullDue date (ISO, UTC)
incidents[].overdueRequiredbooleanOpen and due before today
incidents[].created_atRequiredstring | null
incidents[].updated_atRequiredstring | null
incidents[].resolved_atRequiredstring | null
incidents[].conversation_countRequirednumber
incidents[].comment_countRequirednumberInternal notes
truncatedRequiredbooleanThere are more results than limit
countsRequiredobjectTotal per status with the same filters (minus status)

Examples

Example 1: Overdue urgent incidents

Call

JSON
{
  "name": "list_incidents",
  "arguments": {
    "priority": [
      "urgent"
    ],
    "due": "overdue"
  }
}

Example 2: My open incidents

Call

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

Example 3: Search by number

Call

JSON
{
  "name": "list_incidents",
  "arguments": {
    "q": "HEM-142",
    "include_closed": true
  }
}

Response

JSON
{
  "incidents": [
    {
      "id": 812,
      "identifier": "HEM-142",
      "number": 142,
      "title": "Cambio de cita",
      "status": "pending",
      "priority": "high",
      "category": {
        "id": 3,
        "name": "Citas"
      },
      "department": {
        "id": 30,
        "name": "Recepción"
      },
      "location": {
        "id": 5,
        "name": "Centro A"
      },
      "assignee": null,
      "contact": {
        "id": 10,
        "name": "Ana Cliente",
        "phone": "+34600111222"
      },
      "channel": "whatsapp",
      "created_by": {
        "type": "agent",
        "name": "Lucía"
      },
      "due_at": null,
      "overdue": false,
      "created_at": "2026-11-20T09:12:00Z",
      "updated_at": "2026-11-20T09:12:00Z",
      "resolved_at": null,
      "conversation_count": 1,
      "comment_count": 0
    }
  ],
  "truncated": false,
  "counts": {
    "pending": 1,
    "in_progress": 0,
    "waiting": 0,
    "resolved": 0,
    "cancelled": 0
  }
}

Equivalent JSON-RPC call (POST /mcp)

JSON
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "list_incidents",
    "arguments": {
      "priority": [
        "urgent"
      ],
      "due": "overdue"
    }
  }
}