Quick one-city search
search_leadsSearch ONE city on the user's account and get the businesses back in the same call: 1 to 5 result pages from the city centre, about 20 per page. Use it when the user asks for a quick search, a page of results or one town; for a whole city or several, use search_areas, which finds several times more. Costs 1 token per NEW business (one new lead costs one token); ones the account already holds are free. Every new business is then enriched from its own website in the background, about two minutes for 20: business email with its verification state, a named contact where the site names one, the software it runs, and a check that it really is the kind of business searched for. Returns the Maps listing and a search_id. Then call list_results with that search_id and wait_seconds 40, and show the user what enrichment found, not only the listing.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>",
"city": "<city>",
"country": "<country>"
},
"name": "search_leads"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city | Yes | City name, e.g. "Austin" | |
| pages | No | Result pages to pull, 1-5 (about 20 results per page). Default 1. | |
| query | Yes | Business keyword, e.g. "roofing contractor" or "cosmetic dentist" (max 200 chars) | |
| detail | No | full (default): every new business is a lead, read from its website as described above. listing: the Google Maps listing only (name, address, phone, website address, rating, reviews, category, hours, location), with no website read, no emails, no relevance check and no monthly re-check, at 1 token per 5 new listings. Use listing only when the user asks for listings, phone numbers only, or the cheapest option. A listing can be made a full lead later with enrich_leads, for the rest of a lead (0.8 token each). | |
| country | Yes | Country name, e.g. "United States" |