Skip to main content
Glama

ta_search_locations

Read-only

Find TripAdvisor locations by name to get location IDs for hotels, restaurants, and attractions. Filter by category or city for targeted results.

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.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNoPage index (1-based)
sizeNoResults per page (max 20)
viewNoResponse 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.
queryYesText to search location names for
localeNoPreferred locales for localized fields, in priority order (e.g. ["en","es"])
categoryNoRestrict to one category
geo_nameNoCity, town, or country name to scope the search
postal_codeNoPostal/ZIP code (takes precedence over geo_name)
country_codeNoAlpha-2 country code (e.g. "US")

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed2 schema fields changedv0.5.1
    • removedInput schema / properties / compact
      Removed value: -{
      -  "description": "Return a slim summary per result (id, name, category, city, rating, review_count, url) instead of full records",
      -  "type": "boolean"
      -}
    • addedInput schema / properties / view
      Added value: +{
      +  "description": "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.",
      +  "enum": [
      +    "compact",
      +    "full"
      +  ],
      +  "type": "string"
      +}
  2. Changed1 schema field changedv0.3.0
    • addedInput schema / properties / compact
      Added value: +{
      +  "description": "Return a slim summary per result (id, name, category, city, rating, review_count, url) instead of full records",
      +  "type": "boolean"
      +}
  3. Changed17 schema fields changedv0.1.0
    • removedInput schema / properties / address
      Removed value: -{
      -  "description": "Address filter",
      -  "type": "string"
      -}
    • changedInput schema / properties / category / description
      Previous value: -"Restrict results to one property type"New value: +"Restrict to one category"
    • changedInput schema / properties / category / enum
      Previous value: -[
      -  "hotels",
      -  "attractions",
      -  "restaurants",
      -  "geos"
      -]New value: +[
      +  "RESTAURANT",
      +  "ATTRACTION",
      +  "HOTEL"
      +]
    • addedInput schema / properties / country_code
      Added value: +{
      +  "description": "Alpha-2 country code (e.g. \"US\")",
      +  "maxLength": 2,
      +  "minLength": 2,
      +  "type": "string"
      +}
    • addedInput schema / properties / geo_name
      Added value: +{
      +  "description": "City, town, or country name to scope the search",
      +  "type": "string"
      +}
    • removedInput schema / properties / language
      Removed value: -{
      -  "description": "Result language code (default: en)",
      -  "type": "string"
      -}
    • removedInput schema / properties / latLong
      Removed value: -{
      -  "description": "Center point to scope the search, e.g. \"42.3455,-71.10767\"",
      -  "pattern": "^-?\\d+(\\.\\d+)?\\s*,\\s*-?\\d+(\\.\\d+)?$",
      -  "type": "string"
      -}
    • addedInput schema / properties / locale
      Added value: +{
      +  "description": "Preferred locales for localized fields, in priority order (e.g. [\"en\",\"es\"])",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / page
      Added value: +{
      +  "description": "Page index (1-based)",
      +  "maximum": 9007199254740991,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • removedInput schema / properties / phone
      Removed value: -{
      -  "description": "Phone number filter (spaces/dashes ok, no leading \"+\")",
      -  "type": "string"
      -}
    • addedInput schema / properties / postal_code
      Added value: +{
      +  "description": "Postal/ZIP code (takes precedence over geo_name)",
      +  "type": "string"
      +}
    • addedInput schema / properties / query
      Added value: +{
      +  "description": "Text to search location names for",
      +  "maxLength": 500,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • removedInput schema / properties / radius
      Removed value: -{
      -  "description": "Search radius around latLong (must be > 0)",
      -  "exclusiveMinimum": 0,
      -  "type": "number"
      -}
    • removedInput schema / properties / radiusUnit
      Removed value: -{
      -  "description": "Unit for radius",
      -  "enum": [
      -    "km",
      -    "mi",
      -    "m"
      -  ],
      -  "type": "string"
      -}
    • removedInput schema / properties / searchQuery
      Removed value: -{
      -  "description": "Text to search location names for",
      -  "minLength": 1,
      -  "type": "string"
      -}
    • addedInput schema / properties / size
      Added value: +{
      +  "description": "Results per page (max 20)",
      +  "maximum": 20,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "searchQuery"
      -]New value: +[
      +  "query"
      +]
  4. First observedv0.0.0

TDQS

A3.9/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint and openWorldHint, so the bar is lower. The description adds useful behavioral context beyond those annotations: results are slim by default, pagination is included, and view:"full" returns complete records. This is meaningful for an agent deciding whether the default response is sufficient.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences with no filler: the action and scope come first, followed by the output contract and the key view modifier. Every sentence earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a search tool with no output schema, the description sufficiently conveys what the agent can expect: location ids, pagination, and slim-vs-full response shapes. The remaining parameter details are fully covered by the input schema, though the description could have briefly mentioned scoping filters like geo_name or postal_code.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3. The description adds value by mapping the categories to "restaurants, attractions, hotels" and clarifying the effect of the view parameter between slim and full records, which complements the schema's enum descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states a specific action (search TripAdvisor locations by name) and resource type (restaurants, attractions, hotels). It also explains the key output (location ids for detail tools) and pagination, which helps position it against the get_* and search_nearby siblings, though it does not explicitly name a sibling.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies the intended workflow: search by name, then use the returned location id with the detail tools. It does not explicitly state when to prefer ta_search_nearby or ta_get_locations instead, nor does it mention exclusions such as searching by coordinates.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/chrischall/tripadvisor-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server