Search leads & contacts
search_leadsSearch the CRM by free text (matches first/last name, email, company), pipeline stage, lifecycle (lead|prospect|contact|customer|churned), or "has a phone number". Returns matching contacts and a total.
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_leads"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | Free-text search across name, email, and company. | |
| limit | No | Max results, 1-200 (default 50). | |
| stage | No | Pipeline stage name — exact match. Get stage names from list_pipeline_stages. | |
| offset | No | Rows to skip for paging (default 0). | |
| has_phone | No | true → only contacts with a phone number. | |
| lifecycle | No | Lifecycle filter. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| error | No | Present only when ok is false. | |
| leads | No | ||
| total | No |