MCPDocumentation
On this page

Incidents

Look up an incident (agent)

lookup_incident
Read
Permission required
incidents.lookup

When to use it

For the agent talking to the customer: the status of an incident by number, or their open incidents. Only returns those of that phone or this conversation (one of them is required) and never internal notes. Read customer_message to the customer.

Input

FieldTypeDescription
organization_idintegerOnly to narrow: must be your organization (Autonex staff may pick another)
referencestringNumber (142) or reference (HEM-142). Without it: the customer's open ones
contact_phonestringCustomer phone
conversation_idintegerCurrent conversation
livekit_roomstringLiveKit room of the current call
language"es" | "ca" | "en"Customer language for customer_message

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

Output

FieldTypeDescription
incidentsRequiredobject[]At most 5; never internal notes
incidents[].incident_idRequirednumber
incidents[].identifierRequiredstring | null
incidents[].numberRequirednumber | null
incidents[].spoken_referenceRequiredstringReference to say aloud ("incident one hundred forty-two")
incidents[].titleRequiredstring
incidents[].statusRequiredstring
incidents[].status_labelRequiredstring
incidents[].categoryRequiredstring | null
incidents[].departmentRequiredstring | null
incidents[].last_updateRequiredstring | null
incidents[].last_replyRequiredstring | nullLatest message a team member sent the customer
incidents[].customer_messageRequiredstring

Examples

Example 1: The customer asks about 142

Call

JSON
{
  "name": "lookup_incident",
  "arguments": {
    "reference": "142",
    "contact_phone": "+34600111222"
  }
}

Equivalent JSON-RPC call (POST /mcp)

JSON
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "lookup_incident",
    "arguments": {
      "reference": "142",
      "contact_phone": "+34600111222"
    }
  }
}