Skip to main content
Glama

search_attractions

Find attractions and points of interest in a specified location, filter by categories, and define search radius for personalized travel planning.

Instructions

Searches for attractions and points of interest in a specified location

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
categoriesNoCategories of attractions
locationYesLocation to search attractions
radiusNoSearch radius in meters

Implementation Reference

  • Handler for the search_attractions tool. Validates input using SearchAttractionsSchema and returns a formatted text response with mock attraction search results.
    case "search_attractions": { const validatedArgs = SearchAttractionsSchema.parse(args); return { content: [ { type: "text", text: `Found attractions near ${validatedArgs.location}\n` + `Radius: ${validatedArgs.radius || "5000"} meters\n` + `Categories: ${validatedArgs.categories?.join(", ") || "All"}`, }, ], }; }
  • Zod schema defining the input parameters for the search_attractions tool: location (required), radius and categories (optional).
    const SearchAttractionsSchema = z.object({ location: z.string().describe("Location to search attractions"), radius: z.number().optional().describe("Search radius in meters"), categories: z.array(z.string()).optional().describe("Categories of attractions"), });
  • index.ts:74-78 (registration)
    Registration of the search_attractions tool in the list returned by ListToolsRequestHandler, including name, description, and input schema.
    { name: "search_attractions", description: "Searches for attractions and points of interest in a specified location", inputSchema: zodToJsonSchema(SearchAttractionsSchema), },

Other Tools

Related 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/GongRzhe/TRAVEL-PLANNER-MCP-Server'

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