search_businesses
Find businesses by query and location using free OpenStreetMap data, returning matching records for B2B lead discovery.
Instructions
Search for businesses matching a query using free, open data sources.
Uses OpenStreetMap / Overpass API for live discovery (no API key required).
Falls back to demo data when the network is unavailable or DEMO_MODE=true.
Args:
query: Free-text search term, e.g. "coffee shop", "software company",
"law firm", "restaurant". Pass "*" for a broad sweep.
location: City, region, or "lat,lon" coordinates to centre the search,
e.g. "London", "Austin, TX", "48.8566,2.3522".
Required for live OSM search — omitting it falls back to demo data.
category: Optional industry hint, e.g. "Technology", "Healthcare",
"Food & Beverage". Narrows the Overpass tag filter.
limit: Maximum results to return (1–50, default 10).
Returns:
dict with keys:
query, location, category — echoed inputs
total_found (int) — number of matching results
businesses (list[dict]) — business records
provider (str) — data source used
retrieved_at (str) — ISO-8601 timestamp
attribution (str|null) — ODbL attribution (show this when displaying OSM data)
note (str|null) — caveat about data quality or mode
Attribution:
When provider is "openstreetmap", you MUST display the attribution string
"Data © OpenStreetMap contributors, ODbL 1.0" wherever results appear.
Compliance:
- OpenStreetMap data is used under the ODbL licence.
- No data is sent to third parties.
- is_ai_generated=False for all records from this tool.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| query | Yes | ||
| category | No | ||
| location | No |