search_place
Find specific business or location details by searching with a place name and geographic location.
Instructions
Search place details in a given location
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| place | Yes | Name of place to search. Ex: The Lane Salon | |
| location | Yes | Place location. Ex: San Francisco, CA |
Implementation Reference
- src/index.ts:421-456 (handler)Executes the search_place tool: extracts 'place' and 'location' from arguments, POSTs to Voyp API /places/place/search endpoint, returns JSON response or formatted error.} else if (request.params.name === "search_place") { // if (!isValidForecastArgs(request.params.arguments)) { // throw new McpError( // ErrorCode.InvalidParams, // "Invalid forecast arguments" // ); // } const place = request.params.arguments?.place; const location = request.params.arguments?.location; try { const response = await this.axiosInstance.post<StartCallResponse>(API_CONFIG.ENDPOINTS.PLACE, { place, location }); return { content: [{ type: "text", text: JSON.stringify(response.data) }] }; } catch (error) { if (axios.isAxiosError(error)) { return { content: [{ type: "text", text: `Voyp API error: ${error.response?.data.message ?? error.message}` }], isError: true, } } throw error; }
- src/index.ts:257-274 (schema)Input schema definition for search_place tool in the tools list response, specifying required 'place' and 'location' string parameters.{ name: "search_place", description: "Search place details in a given location", inputSchema: { type: "object", properties: { place: { type: "string", description: "Name of place to search. Ex: The Lane Salon" }, location: { type: "string", description: "Place location. Ex: San Francisco, CA" } }, required: ["place", "location"] } },