get_hotspot_info
Retrieve detailed information about a specific birdwatching hotspot using its location code, such as L99381, to access observation data and site details.
Instructions
Get information about a specific hotspot.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| loc_id | Yes | The location code (e.g., 'L99381') |
Implementation Reference
- src/index.ts:446-449 (handler)The handler function for the get_hotspot_info tool. It fetches hotspot information from the eBird API endpoint `/ref/hotspot/info/${args.loc_id}` and returns the JSON-stringified result wrapped in the MCP response format.async (args) => { const result = await makeRequest(`/ref/hotspot/info/${args.loc_id}`); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] }; }
- src/index.ts:443-445 (schema)The input schema for the get_hotspot_info tool, defining the required 'loc_id' parameter as a string using Zod.{ loc_id: z.string().describe("The location code (e.g., 'L99381')"), },
- src/index.ts:440-450 (registration)The registration of the get_hotspot_info tool using server.tool(), including the name, description, schema, and inline handler function.server.tool( "get_hotspot_info", "Get information about a specific hotspot.", { loc_id: z.string().describe("The location code (e.g., 'L99381')"), }, async (args) => { const result = await makeRequest(`/ref/hotspot/info/${args.loc_id}`); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] }; } );