Find a contact
- Permission required
contacts.view
When to use it
Finds a contact of your organization by phone, email, name or id and returns its identifiers, 360° description and recent conversations. When several match, it returns the list to choose from. Agent keys: they will later be pinned to the caller's identity (SEC-40).
Input
| Field | Type | Description |
|---|---|---|
organization_id | integer | Only to repeat your organization (or, with a staff key, pick another) |
contact_id | integer | |
phone | string | Phone in any format (+34 600 11 12 22, 600111222…) |
email | string | |
name | string | Part of the name |
recent_conversations | integer | How many recent conversations to include (default 5) |
Every tool also accepts lang (es | en) for the language of the text answer.
Output
| Field | Type | Description |
|---|---|---|
verdictRequired | string | |
matchesRequired | object[] | Every contact that matches (max 10) |
matches[].idRequired | number | |
matches[].nameRequired | string | null | |
matches[].phoneRequired | string | null | |
matches[].emailRequired | string | null | |
matches[].last_contacted_atRequired | string | null | |
multiple_matchesRequired | boolean | true = several: ask for more or use contact_id |
contactRequired | object | null | Detail when exactly one contact matches |
handlesRequired | object | |
handles.contact_idRequired | number | null | |
handles.conversation_idsRequired | number[] | |
data_as_ofRequired | string |
Examples
Example 1: Who is +34 600 111 222
Call
{
"name": "find_contact",
"arguments": {
"phone": "+34 600 111 222"
}
}Example 2: Look for Lucía
Call
{
"name": "find_contact",
"arguments": {
"name": "Lucía",
"recent_conversations": 3
}
}Equivalent JSON-RPC call (POST /mcp)
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "find_contact",
"arguments": {
"phone": "+34 600 111 222"
}
}
}