search_contacts
Search contacts (people) in the CRM by name, email, company, or job title. USE FOR: finding a person, looking up a contact, checking if someone exists in the CRM, or finding people at a specific company. PAGINATION: results are one page, not the complete match set. Use limit up to 50 and start with offset: 0; while the number of records read is less than total_count, call this tool again with offset increased by the number of results returned. Ordering is stable across pages. PARAMETER CHOICE: use the top-level semantic params (query, company_name, job_title) for common filters. Use additional_filters only for custom attributes, seniority, last interaction, or anything beyond the semantic params. ADDITIONAL_FILTERS PREREQUISITE: for custom attributes, call get_contact_fields first to get the correct property_name. Do NOT guess property names. MULTIPLE PEOPLE IN ONE QUERY: use keywords, not query. See the keywords parameter docs for the batching rule. ZERO RESULTS RETRY: if the search returns total_count=0, retry ONCE with a different keyword before telling the user the contact does not exist. Try the last name alone ("Gaby Jimenez" → "Jimenez" finds "Gabriela Jimenez" - nicknames don't fuzzy-match), the email if visible elsewhere in the chat (attachments, prior tool output, the user's message), or the full first name when you only used a nickname ("Mike" → "Michael"). Stop after one retry - do not loop.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "search_contacts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum results per page (1-50, default 10). | |
| query | No | Search by contact name or email with fuzzy matching. Use when the user mentions a single person by name or email (e.g. 'Sarah', 'john@stripe.com'). For multiple people in one query, use `keywords` instead. | |
| offset | No | 0-indexed row offset for paging. Start at 0, then increase by the number of results returned until `offset + results.length >= total_count`. Ordering is stable across pages, so tied sort values do not repeat or skip records. | |
| sort_by | No | Sort order. Defaults to `updated_at desc` when omitted. | |
| keywords | No | Multi-keyword OR search. Pass up to 10 terms; any contact matching at least one term (name or email) is returned. **Always prefer this over multiple search_contacts calls when the user references more than one person.** Example: "Pull up John Smith, Sarah Chen, and Mike Patel" becomes one call with `keywords: ["John Smith", "Sarah Chen", "Mike Patel"]`, not three calls. Use `query` instead for a single person with fuzzy/partial matching. | |
| job_title | No | Filter by job title (e.g. 'CTO', 'VP of Sales'). | |
| session_id | No | The ID of the task this call belongs to. Leave it out on your first call. On every later call for the same task, send the ID an earlier result gave you, and pass it to any subagent working on that task. | |
| company_name | No | Filter by associated company name (e.g. 'Figma', 'Ramp'). Use when the user asks for people AT a specific company, not when looking up a person by name (use `query` or `keywords` instead). | |
| additional_filters | No | Escape hatch for filters not covered by the top-level semantic params (custom attributes, seniority, interaction dates, etc.). For a date range, pass TWO filters on the same property with full ISO timestamps including timezone offset. Example for 'today' in PT: `{property_name:people_last_interaction, condition:on_or_after, value:'2026-05-18T00:00:00-07:00'}` AND `{property_name:people_last_interaction, condition:before, value:'2026-05-19T00:00:00-07:00'}`. There is no `between` operator. For a single date, use `condition:is` with a full ISO timestamp. Bare `YYYY-MM-DD` values are interpreted as UTC, which may not match the user's timezone. |