Look up an incident (agent)
- 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
| Field | Type | Description |
|---|---|---|
organization_id | integer | Only to narrow: must be your organization (Autonex staff may pick another) |
reference | string | Number (142) or reference (HEM-142). Without it: the customer's open ones |
contact_phone | string | Customer phone |
conversation_id | integer | Current conversation |
livekit_room | string | LiveKit 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
| Field | Type | Description |
|---|---|---|
incidentsRequired | object[] | At most 5; never internal notes |
incidents[].incident_idRequired | number | |
incidents[].identifierRequired | string | null | |
incidents[].numberRequired | number | null | |
incidents[].spoken_referenceRequired | string | Reference to say aloud ("incident one hundred forty-two") |
incidents[].titleRequired | string | |
incidents[].statusRequired | string | |
incidents[].status_labelRequired | string | |
incidents[].categoryRequired | string | null | |
incidents[].departmentRequired | string | null | |
incidents[].last_updateRequired | string | null | |
incidents[].last_replyRequired | string | null | Latest message a team member sent the customer |
incidents[].customer_messageRequired | string |
Examples
Example 1: The customer asks about 142
Call
{
"name": "lookup_incident",
"arguments": {
"reference": "142",
"contact_phone": "+34600111222"
}
}Equivalent JSON-RPC call (POST /mcp)
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "lookup_incident",
"arguments": {
"reference": "142",
"contact_phone": "+34600111222"
}
}
}