Search leads
search_leadsFind merchants (leads) by business name, contact name, email, phone number, or by what was said on their file ("asked about equipment" also finds "needs a new truck": words first, then meaning). Narrow by status, a saved list, starred, or only this person's own. Use it to get a lead id for get_lead; use search_what_was_said instead when the question is who said something rather than who someone is. Statuses are the workspace's own words: a status that does not exist is refused with the ones that do.
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 |
|---|---|---|---|
| mine | No | Only leads owned by this person. | |
| sort | No | recent: starred first, then most recently updated. | recent |
| limit | No | How many to return, at most 50 (more is cut to 50). | |
| query | No | Words to find: a name, an email, a phone number in any format, or what was said. | |
| cursor | No | The cursor a previous page of this tool gave, to read the next page. Leave it out for the first. | |
| status | No | A lead status exactly as the workspace calls it, or "__none__" for leads with none. | |
| list_id | No | Only leads on this saved list (ids from list_lists). | |
| starred | No | Only starred leads. |