Call outcome
- Permission required
agent:runtime(agent keys only)
When to use it
Sets how the call ended (a key from outcome_options). It wins over what the server infers.
Input
| Field | Type | Description |
|---|---|---|
call_idRequired | string | The current call (call_id from call_start) |
outcomeRequired | string | A key from outcome_options |
note | string |
Every tool also accepts lang (es | en) for the language of the text answer.
Output
| Field | Type | Description |
|---|---|---|
conversation_idRequired | number | |
outcomeRequired | string | |
labelRequired | string | |
successRequired | boolean |
Examples
Example 1: Sign-up achieved
Call
{
"name": "set_outcome",
"arguments": {
"call_id": "room-abc",
"outcome": "alta"
}
}Equivalent JSON-RPC call (POST /mcp)
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "set_outcome",
"arguments": {
"call_id": "room-abc",
"outcome": "alta"
}
}
}