Search Places
search_placesSearch Foursquare places (keyless — Pipeworx supplies the key). Combine query (e.g., "coffee", "hardware store") with a location anchor — either near ("Brooklyn, NY", "San Francisco, CA") or latitude+longitude. sort:"RATING" orders results by Foursquare rating (best first); the rating NUMBER itself is a Foursquare Premium field and is returned only where enabled — check rating_included / rating_reason in the response, and read rating_note before telling a caller a place is unrated. Returns name, fsq_place_id, categories, address, distance, lat/lon, tel, website.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"near": "San Francisco, CA",
"sort": "RATING",
"limit": 10,
"query": "coffee"
},
"name": "search_places"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| near | No | Place name anchor ("Brooklyn, NY", "Tokyo") | |
| sort | No | RELEVANCE (default) | DISTANCE | RATING | POPULARITY | |
| limit | No | Results (1-50, default 10) | |
| query | No | Free-text query | |
| latitude | No | Center latitude (pair with longitude) | |
| radius_m | No | 1-100000 metres (only with lat/lon) | |
| longitude | No | Center longitude | |
| categories | No | OPTIONAL. Comma-separated numeric fsq_category_id values ONLY (e.g. from a prior search_places result). Do NOT invent IDs or pass category names — use the `query` text for that (e.g. query:"coffee"). Unknown IDs are ignored. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | Number of results returned | |
| results | Yes |