MCPDocumentation
On this page

Voice agents

Call outcome

set_outcome
Direct write
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

FieldTypeDescription
call_idRequiredstringThe current call (call_id from call_start)
outcomeRequiredstringA key from outcome_options
notestring

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

Output

FieldTypeDescription
conversation_idRequirednumber
outcomeRequiredstring
labelRequiredstring
successRequiredboolean

Examples

Example 1: Sign-up achieved

Call

JSON
{
  "name": "set_outcome",
  "arguments": {
    "call_id": "room-abc",
    "outcome": "alta"
  }
}

Equivalent JSON-RPC call (POST /mcp)

JSON
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "set_outcome",
    "arguments": {
      "call_id": "room-abc",
      "outcome": "alta"
    }
  }
}