Look up a contact
- Permission required
agent:runtime(agent keys only)
When to use it
Finds the caller by phone (or the call's contact). By name it returns names only. Use it when they give another phone.
Input
| Field | Type | Description |
|---|---|---|
call_id | string | The current call (call_id from call_start) |
phone | string | Phone the caller dictates |
name | string | Name: returns names only, never another person's data |
Every tool also accepts lang (es | en) for the language of the text answer.
Output
| Field | Type | Description |
|---|---|---|
foundRequired | boolean | |
contactRequired | object | null | Card when exactly one contact has that phone, or the call's |
matchesRequired | object[] | |
matches[].idRequired | number | |
matches[].nameRequired | string | null |
Examples
Example 1: By a dictated phone
Call
{
"name": "contact_lookup",
"arguments": {
"call_id": "room-abc",
"phone": "600 333 444"
}
}Equivalent JSON-RPC call (POST /mcp)
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "contact_lookup",
"arguments": {
"call_id": "room-abc",
"phone": "600 333 444"
}
}
}