search_accounts
Search accounts (companies) in the CRM by name, domain, or industry. USE FOR: finding a company, looking up an account, checking if a company exists, or searching by domain or industry. 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, domain, industry) for common filters. Use additional_filters only for custom attributes, interaction dates, employee range, or anything beyond the semantic params. ADDITIONAL_FILTERS PREREQUISITE: for custom attributes, call get_account_fields first to get the correct property_name. Do NOT guess property names. MULTIPLE COMPANY NAMES 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 company does not exist. Drop legal suffixes ("Acme Inc" → "Acme", "OpenAI LLC" → "OpenAI"), try the domain alone when known (works even if the display name differs), or the short / common name when the CSV imported a long-form legal name. 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_accounts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum results per page (1-50, default 10). | |
| query | No | Search by company name or domain with fuzzy matching. Use when the user mentions a single company by name (e.g. 'Stripe', 'linear.app'). For multiple companies in one query, use `keywords` instead. | |
| domain | No | Filter by company domain (e.g. 'stripe.com'). | |
| 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. | |
| industry | No | Filter by industry (e.g. 'SaaS', 'Fintech', 'Healthcare'). | |
| keywords | No | Multi-keyword OR search. Pass up to 10 terms; any account whose name or domain matches at least one term is returned. **Always prefer this over multiple search_accounts calls when the user references more than one company.** Example: "Check Acme, Globex, and Initech" becomes one call with `keywords: ["Acme", "Globex", "Initech"]`, not three calls. Use `query` instead for a single company with fuzzy/partial matching. | |
| 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. | |
| additional_filters | No | Escape hatch for filters not covered by the top-level semantic params (custom attributes, interaction dates, employee range, 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:company_last_interaction, condition:on_or_after, value:'2026-05-18T00:00:00-07:00'}` AND `{property_name:company_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. |