MCPDocumentation
On this page

Contacts

Find a contact

find_contact
Read
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

FieldTypeDescription
organization_idintegerOnly to repeat your organization (or, with a staff key, pick another)
contact_idinteger
phonestringPhone in any format (+34 600 11 12 22, 600111222…)
emailstring
namestringPart of the name
recent_conversationsintegerHow many recent conversations to include (default 5)

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

Output

FieldTypeDescription
verdictRequiredstring
matchesRequiredobject[]Every contact that matches (max 10)
matches[].idRequirednumber
matches[].nameRequiredstring | null
matches[].phoneRequiredstring | null
matches[].emailRequiredstring | null
matches[].last_contacted_atRequiredstring | null
multiple_matchesRequiredbooleantrue = several: ask for more or use contact_id
contactRequiredobject | nullDetail when exactly one contact matches
handlesRequiredobject
handles.contact_idRequirednumber | null
handles.conversation_idsRequirednumber[]
data_as_ofRequiredstring

Examples

Example 1: Who is +34 600 111 222

Call

JSON
{
  "name": "find_contact",
  "arguments": {
    "phone": "+34 600 111 222"
  }
}

Example 2: Look for Lucía

Call

JSON
{
  "name": "find_contact",
  "arguments": {
    "name": "Lucía",
    "recent_conversations": 3
  }
}

Equivalent JSON-RPC call (POST /mcp)

JSON
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "find_contact",
    "arguments": {
      "phone": "+34 600 111 222"
    }
  }
}