Territory leads (grid search)
territory_leadsEvery business of a kind in an area: the area is split into a grid so results go past Google's ~120-per-search cap, deduplicated by place id; only places inside the radius are kept and charged. max_places counts those, so it caps cost. Returns a summary (categories, ratings, contact coverage), the lowest-rated leads and join-key coverage. Then enrich_leads adds each lead's competitors. Takes 5-15 min for ~25 cells.
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>",
"location": "<location>"
},
"name": "territory_leads"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | e.g. 'dentist' | |
| wait_s | No | Seconds to wait for the runs before returning a job id (default 45). | |
| cell_km | No | Grid cell size (default 2; 0.5-1 in dense downtowns, 3-5 in suburbs) | |
| language | No | ||
| location | Yes | City or 'lat,lng' at the centre of the area | |
| max_cells | No | Cap on grid cells (default 25) | |
| radius_km | No | Search radius (default 10) | |
| max_places | No | Cap on places (default 500) | |
| max_cost_usd | No | Refuse to start if the estimated cost is above this (USD). Default 5. |