MCPDocumentation
On this page

Incidents

Add a note to an incident

add_incident_note
Direct write
Permission required
incidents:write / incidents:agent

When to use it

Adds an internal note to an incident. People (incidents.handle): by id or reference, in your centres, like in the panel. Agents (incidents.add_note): what the customer says now, checked against their phone or the conversation; if the incident was waiting for the customer, it goes back to pending.

Input

FieldTypeDescription
organization_idintegerOnly to narrow: must be your organization (Autonex staff may pick another)
noteRequiredstringThe note text
idintegerPeople: internal id
referencestringNumber or reference (HEM-142)
contact_phonestringAgents: customer phone
conversation_idintegerAgents: current conversation
livekit_roomstringAgents: LiveKit room
language"es" | "ca" | "en"Agents: customer language

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

Output

FieldTypeDescription
incident_idRequirednumber
identifierRequiredstring | null
statusRequiredstring
customer_messageRequiredstring | nullAgents: sentence ready to tell the customer
comment_countRequirednumber | nullPeople: internal notes after adding it

Examples

Example 1: A person leaves a note

Call

JSON
{
  "name": "add_incident_note",
  "arguments": {
    "reference": "HEM-142",
    "note": "He llamado al cliente, vuelve a llamar mañana."
  }
}

Example 2: The agent adds what the customer says

Call

JSON
{
  "name": "add_incident_note",
  "arguments": {
    "reference": "142",
    "note": "Prefiere el viernes por la tarde.",
    "contact_phone": "+34600111222"
  }
}

Equivalent JSON-RPC call (POST /mcp)

JSON
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "add_incident_note",
    "arguments": {
      "reference": "HEM-142",
      "note": "He llamado al cliente, vuelve a llamar mañana."
    }
  }
}