Skip to main content
Glama

ta_search_locations

Read-only

Search TripAdvisor locations by name to find restaurants, attractions, and hotels. Retrieve location IDs with pagination for detailed access.

Instructions

Search TripAdvisor locations (restaurants, attractions, hotels) by name. Returns matches with a location id for the detail tools, plus pagination. Pass compact:true for slim summaries.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNoPage index (1-based)
sizeNoResults per page (max 20)
queryYesText to search location names for
localeNoPreferred locales for localized fields, in priority order (e.g. ["en","es"])
compactNoReturn a slim summary per result (id, name, category, city, rating, review_count, url) instead of full records
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")
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the description adds value by explaining pagination behavior and the compact option for slim summaries. No contradictions; it supplements the annotations with practical usage details.

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?

Two sentences, no fluff. The first sentence immediately states the purpose and resource, the second adds a key option. Ideal front-loading and efficiency.

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?

Given 9 parameters, one required, no output schema, and annotations present, the description provides a clear overview of functionality, return value (location id for detail tools), pagination, and the compact option. A minor gap is the lack of detail on full record structure, but the description is largely complete for an agent to use the tool effectively.

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

Parameters3/5

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

The input schema has 100% description coverage for all 9 parameters, so the schema already explains each parameter's meaning. The description adds a single extra tip about compact mode, which provides minor additional value beyond the schema.

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

Purpose5/5

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

The description clearly states the tool searches TripAdvisor locations by name, specifies resource types (restaurants, attractions, hotels), and mentions return values (matches with location id and pagination). This is a specific verb-resource combination that helps the agent understand the tool's core function.

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 usage when searching by name and suggests using compact mode for slim summaries, but it does not explicitly state when to use this tool vs siblings like ta_search_nearby or ta_get_locations. There are no exclusions or alternatives mentioned, so guidance is minimal.

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

Install Server

Other Tools

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