ta_search_locations
Search TripAdvisor for restaurants, attractions, or hotels by name, category, or location. Returns location IDs with pagination to feed detail lookups.
Instructions
Search TripAdvisor locations (restaurants, attractions, hotels) by name. Returns matches with a location id for the detail tools, plus pagination. Returns slim summaries by default; pass view:"full" for the whole records.
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>"
},
"name": "ta_search_locations"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page index (1-based) | |
| size | No | Results per page (max 20) | |
| view | No | Response shape: "compact" (default) drops fields the response already carries elsewhere; "full" returns every field this server understands. compact returns the slim projection where one exists and strips image URLs elsewhere; "full" returns TripAdvisor's whole records. | |
| query | Yes | Text to search location names for | |
| locale | No | Preferred locales for localized fields, in priority order (e.g. ["en","es"]) | |
| category | No | Restrict to one category | |
| geo_name | No | City, town, or country name to scope the search | |
| postal_code | No | Postal/ZIP code (takes precedence over geo_name) | |
| country_code | No | Alpha-2 country code (e.g. "US") |