Skip to main content
Glama
mattjegan

eBird MCP Server

by mattjegan

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
NameRequiredDescriptionDefault
loc_idYesThe location code (e.g., 'L99381')

Implementation Reference

  • 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) }] };
    }
  • 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) }] };
      }
    );

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/mattjegan/ebird-mcp'

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