Save a contact
- Permission required
agent:runtime(agent keys only)
When to use it
Saves the caller's name, phone or email and a note for the team. Fills gaps only: never overwrites existing data.
Input
| Field | Type | Description |
|---|---|---|
call_id | string | The current call (call_id from call_start) |
phone | string | |
name | string | |
email | string | |
note | string | Note for the team (stored on the conversation) |
Every tool also accepts lang (es | en) for the language of the text answer.
Output
| Field | Type | Description |
|---|---|---|
contact_idRequired | number | |
createdRequired | boolean | |
linked_to_callRequired | boolean | The call is linked to this contact |
note_savedRequired | boolean |
Examples
Example 1: Name and email
Call
{
"name": "contact_save",
"arguments": {
"call_id": "room-abc",
"name": "Luis Pérez",
"email": "luis@example.com",
"note": "Prefiere que le llamen por la tarde"
}
}Equivalent JSON-RPC call (POST /mcp)
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "contact_save",
"arguments": {
"call_id": "room-abc",
"name": "Luis Pérez",
"email": "luis@example.com",
"note": "Prefiere que le llamen por la tarde"
}
}
}