Get an incident
- Permission required
incidents.view
When to use it
One incident by id or reference (HEM-142) with its detail, conversations, thread (messages with the customer and internal notes) and change history. Only if it is in your centres.
Input
| Field | Type | Description |
|---|---|---|
organization_id | integer | Only to narrow: must be your organization (Autonex staff may pick another) |
id | integer | Internal id |
identifier | string | Reference: HEM-142, hem142 or 142 |
thread_limit | integer | Latest thread items (messages, internal notes); default 20 |
activity_limit | integer | Latest history entries; default 20 |
Every tool also accepts lang (es | en) for the language of the text answer.
Output
| Field | Type | Description |
|---|---|---|
incidentRequired | object | |
incident.idRequired | number | |
incident.identifierRequired | string | null | Visible reference, e.g. HEM-142 |
incident.numberRequired | number | null | |
incident.titleRequired | string | |
incident.statusRequired | "pending" | "in_progress" | "waiting" | "resolved" | "cancelled" | |
incident.priorityRequired | "urgent" | "high" | "medium" | "low" | null | |
incident.categoryRequired | object | null | |
incident.departmentRequired | object | null | |
incident.locationRequired | object | null | Centre |
incident.assigneeRequired | object | null | Assigned person |
incident.contactRequired | object | null | |
incident.channelRequired | string | null | |
incident.created_byRequired | object | agent = the AI, human = a person, system |
incident.created_by.typeRequired | string | |
incident.created_by.nameRequired | string | null | |
incident.due_atRequired | string | null | Due date (ISO, UTC) |
incident.overdueRequired | boolean | Open and due before today |
incident.created_atRequired | string | null | |
incident.updated_atRequired | string | null | |
incident.resolved_atRequired | string | null | |
incident.conversation_countRequired | number | |
incident.comment_countRequired | number | Internal notes |
incident.descriptionRequired | string | null | |
incident.sourceRequired | string | null | |
incident.agent_pausedRequired | boolean | |
incident.assigned_atRequired | string | null | |
incident.conversationsRequired | object[] | |
incident.conversations[].idRequired | number | |
incident.conversations[].channelRequired | string | null | |
incident.conversations[].statusRequired | string | null | |
incident.conversations[].needs_humanRequired | boolean | |
incident.conversations[].last_message_atRequired | string | null | |
threadRequired | object[] | The latest items, oldest first |
thread[].kindRequired | "message" | "note" | "system" | message = message with the customer, note = internal note, system = event |
thread[].fromRequired | string | null | contact, agent (the AI) or human (a person) on messages |
thread[].authorRequired | string | null | |
thread[].textRequired | string | |
thread[].atRequired | string | |
thread[].conversation_idRequired | number | null | |
thread_totalRequired | number | |
activityRequired | object[] | History (status, priority, assignment…), newest first |
activity[].typeRequired | string | |
activity[].atRequired | string | |
activity[].actorRequired | string | null | |
activity[].data | any | |
activity_totalRequired | number |
Examples
Example 1: Get HEM-142
Call
{
"name": "get_incident",
"arguments": {
"identifier": "HEM-142",
"thread_limit": 10
}
}Equivalent JSON-RPC call (POST /mcp)
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "get_incident",
"arguments": {
"identifier": "HEM-142",
"thread_limit": 10
}
}
}