search_places
Search for addresses, streets, places and businesses by text and get GeoJSON features (the same shape as Mapbox Geocoding v6: feature_type, name, full_address, place_formatted, context, coordinates), best first. Businesses carry category, category_label and metadata (website, phone, opening_hours). proximity biases toward a point and adds distance_m; category (e.g. pharmacy, cafe) finds businesses of that kind, with or without q; place results carry boundary_id for the outline. autocomplete=true is a type-ahead, free up to ten times the monthly searches (shared out per day) and counted past that; the default counts one lookup against the workspace's monthly searches, on every plan. Show the returned attribution with the results. Past the plan it returns searches_exhausted and nothing is charged.
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_places"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | What to find: an address ("12 Patrick Street, Cork"), a street, a place ("County Cork"), a business ("Tesco Cork"), or a kind of place in or near somewhere ("pharmacy in Cork", "hotels near the Cliffs of Moher"). Up to 256 characters; may be omitted when `category` or the address fields are given. | |
| limit | No | How many results to return, 1 to 10. Default 5. | |
| place | No | The town or city, a district within it, the region (state, province, county) and the postcode. | |
| types | No | Only these kinds: country, region, district, place, locality, neighborhood, postcode, street, address, poi. | |
| key_id | No | The map key (uuid from list_keys) to count the search against. Default: the workspace's first active secret key, else its first publishable one. | |
| region | No | ||
| street | No | ||
| country | No | Two-letter country codes to restrict to, e.g. ["ie"]. | |
| category | No | Businesses of these kinds, e.g. ["pharmacy"] or ["cafe", "bakery"]; implies types=poi. | |
| language | No | Language for names, e.g. "en", "de", "es". | |
| locality | No | ||
| postcode | No | ||
| proximity | No | [longitude, latitude] to bias results toward (and to get distance_m back). | |
| autocomplete | No | A fast match for a type-ahead: free up to ten times the month's searches (shared out per day), counted past that. The default (false) is a full, counted search. | |
| address_line1 | No | An address in parts instead of `q`: the street line ("77 Pearse Street"), or its number and street apart. | |
| address_number | No |