Change an incident (preview)
- Permission required
incidents.handle
When to use it
Proposes changes to an incident — status (incl. resolve or cancel, with keep_manual), priority, category, assignee, department, centre and due date — and returns what will change and a confirm_token. Nothing changes until confirm_action. Same permissions as the panel: incidents.handle, plus incidents.assign for assignee, department or centre; the person must be able to own incidents of that centre. Agent keys can never resolve, cancel or reassign.
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) |
status | "pending" | "in_progress" | "waiting" | "resolved" | "cancelled" | New status; resolved/cancelled close the incident and its conversation |
keep_manual | boolean | When resolving/cancelling: the conversation stays with a person (the agent does not come back) |
priority | "urgent" | "high" | "medium" | "low" | "none" | "none" clears the priority |
category_id | integer | null | null clears the category |
assignee_user_id | integer | null | Person (incident_options); null = unassigned. Needs incidents.assign |
department_id | integer | null | Department; needs incidents.assign |
location_id | integer | null | Centre; needs incidents.assign |
due_at | string | null | Due date YYYY-MM-DD (end of day, UTC) or ISO date-time; null clears it |
Every tool also accepts lang (es | en) for the language of the text answer.
Output
| Field | Type | Description |
|---|---|---|
summaryRequired | string | What will change, in the caller's language |
effectsRequired | object | Structured detail of the change: affected people, classes, dates… |
confirm_tokenRequired | string | Pass it to confirm_action to execute. Single use, 15 minutes, only for this key |
expires_atRequired | string | ISO time when the token expires |
confirm_withRequired | "confirm_action" |
Examples
Example 1: Resolve HEM-142
Call
{
"name": "update_incident_preview",
"arguments": {
"identifier": "HEM-142",
"status": "resolved"
}
}Response
{
"summary": "HEM-142 «Cambio de cita»: Estado: pendiente → resuelta",
"effects": {
"incident": {
"id": 812,
"identifier": "HEM-142",
"title": "Cambio de cita"
},
"changes": [
{
"field": "status",
"from": "pending",
"to": "resolved"
}
],
"keep_manual": false,
"closes_conversations": [
100
]
},
"confirm_token": "ct_0f3a…",
"expires_at": "2026-11-24T10:15:00.000Z",
"confirm_with": "confirm_action"
}Example 2: Assign it to someone else and raise the priority
Call
{
"name": "update_incident_preview",
"arguments": {
"identifier": "HEM-142",
"assignee_user_id": 3,
"priority": "urgent"
}
}Equivalent JSON-RPC call (POST /mcp)
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "update_incident_preview",
"arguments": {
"identifier": "HEM-142",
"status": "resolved"
}
}
}