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
| Name | Required | Description | Default |
|---|---|---|---|
| categories | No | Categories of attractions | |
| location | Yes | Location to search attractions | |
| radius | No | Search radius in meters |
Implementation Reference
- index.ts:124-136 (handler)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"}`, }, ], }; }
- index.ts:29-33 (schema)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), },