Open a pending case
- Permission required
agent:runtime(agent keys only)
When to use it
Marks the call as a pending case for the team and opens its incident (or reuses the open one). Use it when you cannot solve it yourself.
Input
| Field | Type | Description |
|---|---|---|
call_idRequired | string | The current call (call_id from call_start) |
reasonRequired | string | What they need, in their words |
title | string | |
priority | "urgente" | "alta" | "media" | "baja" | |
category | string | Name of one of the organization's incident categories |
language | "es" | "ca" | "en" | Language of customer_message (default: the conversation's) |
Every tool also accepts lang (es | en) for the language of the text answer.
Output
| Field | Type | Description |
|---|---|---|
conversation_idRequired | number | |
incident_idRequired | number | null | |
identifierRequired | string | null | |
spoken_referenceRequired | string | null | |
reusedRequired | boolean | There was an open case: it was added to it |
customer_messageRequired | string | Sentence ready to say |
Examples
Example 1: Complaint
Call
{
"name": "case_open",
"arguments": {
"call_id": "room-abc",
"reason": "El agua de la ducha sale fría desde el lunes",
"priority": "alta",
"category": "Instalaciones"
}
}Equivalent JSON-RPC call (POST /mcp)
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "case_open",
"arguments": {
"call_id": "room-abc",
"reason": "El agua de la ducha sale fría desde el lunes",
"priority": "alta",
"category": "Instalaciones"
}
}
}