MCPDocumentation
On this page

Incidents

Change an incident (preview)

update_incident_preview
Two-phase write
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

FieldTypeDescription
organization_idintegerOnly to narrow: must be your organization (Autonex staff may pick another)
idintegerInternal id
identifierstringReference (HEM-142)
status"pending" | "in_progress" | "waiting" | "resolved" | "cancelled"New status; resolved/cancelled close the incident and its conversation
keep_manualbooleanWhen 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_idinteger | nullnull clears the category
assignee_user_idinteger | nullPerson (incident_options); null = unassigned. Needs incidents.assign
department_idinteger | nullDepartment; needs incidents.assign
location_idinteger | nullCentre; needs incidents.assign
due_atstring | nullDue 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

FieldTypeDescription
summaryRequiredstringWhat will change, in the caller's language
effectsRequiredobjectStructured detail of the change: affected people, classes, dates…
confirm_tokenRequiredstringPass it to confirm_action to execute. Single use, 15 minutes, only for this key
expires_atRequiredstringISO time when the token expires
confirm_withRequired"confirm_action"

Examples

Example 1: Resolve HEM-142

Call

JSON
{
  "name": "update_incident_preview",
  "arguments": {
    "identifier": "HEM-142",
    "status": "resolved"
  }
}

Response

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

JSON
{
  "name": "update_incident_preview",
  "arguments": {
    "identifier": "HEM-142",
    "assignee_user_id": 3,
    "priority": "urgent"
  }
}

Equivalent JSON-RPC call (POST /mcp)

JSON
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "update_incident_preview",
    "arguments": {
      "identifier": "HEM-142",
      "status": "resolved"
    }
  }
}