MCPDocumentation
On this page

Voice agents

Call starts

call_start
Direct write
Permission required
agent:runtime (agent keys only)

When to use it

Called by the agent's code (not its LLM) on joining the room. Creates the conversation (in progress), identifies the caller by phone and returns in one answer what the agent needs to greet: the contact (name, memory, latest conversations, open incidents), the organization's local time, the centre and the knowledge base version. Repeating it with the same call_id returns the same conversation.

Input

FieldTypeDescription
call_idRequiredstringThe call id: the LiveKit room name. With the key, it identifies the call
channel"voice"Channel (only voice for now)
caller_phonestringCaller's phone (SIP), any format
called_numberstringNumber that was dialled: picks the centre
started_atRequiredstring (date-time)ISO time the call started
location_hintstringCentre name if the agent already knows it
metadataobjectFree agent data (version, model…). No personal data

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

Output

FieldTypeDescription
conversation_idRequirednumberConversation id in the panel
call_idRequiredstring
statusRequiredstringin_progress, or completed if the call already ended
createdRequiredbooleanfalse = it already existed (retry)
contactRequiredobject | nullWho is calling, when the phone is known or valid
org_nowRequiredobjectThe organization's current time (for "today", "tomorrow"…)
org_now.isoRequiredstring
org_now.localRequiredstring
org_now.weekdayRequiredstring
org_now.timezoneRequiredstring
locationRequiredobject | null
kb_versionRequiredstring | nullKnowledge base version: reload it when it changes

Examples

Example 1: Incoming call

Call

JSON
{
  "name": "call_start",
  "arguments": {
    "call_id": "call-_+34600111222_abc123",
    "channel": "voice",
    "caller_phone": "+34600111222",
    "called_number": "+34930000000",
    "started_at": "2026-11-25T09:30:00Z"
  }
}

Response

JSON
{
  "conversation_id": 81234,
  "call_id": "call-_+34600111222_abc123",
  "status": "in_progress",
  "created": true,
  "contact": {
    "id": 501,
    "name": "Ana",
    "phone": "+34600111222",
    "email": null,
    "known": true,
    "notes": "Socia desde 2024; prefiere las mañanas.",
    "last_conversations": [],
    "open_incidents": []
  },
  "org_now": {
    "iso": "2026-11-25T09:30:02.000Z",
    "local": "2026-11-25 10:30",
    "weekday": "miércoles",
    "timezone": "Europe/Madrid"
  },
  "location": {
    "id": 5,
    "name": "Centro Joan Miró"
  },
  "kb_version": "3f9a1c0b7d22"
}

Equivalent JSON-RPC call (POST /mcp)

JSON
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "call_start",
    "arguments": {
      "call_id": "call-_+34600111222_abc123",
      "channel": "voice",
      "caller_phone": "+34600111222",
      "called_number": "+34930000000",
      "started_at": "2026-11-25T09:30:00Z"
    }
  }
}