Skip to main content
Glama
mattjegan

eBird MCP Server

by mattjegan

get_region_info

Retrieve detailed information about eBird regions including boundaries, hierarchical structure, and formatted names to support bird observation data analysis.

Instructions

Get information about a region including name, bounds, and parent hierarchy.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
region_codeYesCountry, subnational1, subnational2, or location code
region_name_formatNoName formatfull
delimNoDelimiter for name elements,

Implementation Reference

  • Handler function that fetches region information via makeRequest and returns it as a JSON-formatted text content block.
    async (args) => {
      const result = await makeRequest(`/ref/region/info/${args.region_code}`, {
        regionNameFormat: args.region_name_format,
        delim: args.delim,
      });
      return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
    }
  • Zod schema defining input parameters for the get_region_info tool: region_code (required), region_name_format (optional enum), delim (optional string).
    {
      region_code: z.string().describe("Country, subnational1, subnational2, or location code"),
      region_name_format: z.enum(["detailed", "detailednoqual", "full", "namequal", "nameonly", "revdetailed"]).default("full").describe("Name format"),
      delim: z.string().default(", ").describe("Delimiter for name elements"),
    },
  • src/index.ts:532-546 (registration)
    Registration of the get_region_info tool using server.tool, including name, description, schema, and handler function.
      "get_region_info",
      "Get information about a region including name, bounds, and parent hierarchy.",
      {
        region_code: z.string().describe("Country, subnational1, subnational2, or location code"),
        region_name_format: z.enum(["detailed", "detailednoqual", "full", "namequal", "nameonly", "revdetailed"]).default("full").describe("Name format"),
        delim: z.string().default(", ").describe("Delimiter for name elements"),
      },
      async (args) => {
        const result = await makeRequest(`/ref/region/info/${args.region_code}`, {
          regionNameFormat: args.region_name_format,
          delim: args.delim,
        });
        return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
      }
    );
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden. It states what information is returned but doesn't disclose behavioral traits such as rate limits, authentication needs, error conditions, or response format. For a read operation with no annotations, this leaves significant gaps in understanding how the tool behaves.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence that front-loads the purpose and lists key information returned. Every word earns its place with no redundancy or unnecessary elaboration.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given no annotations and no output schema, the description is incomplete. It doesn't explain return values, error handling, or behavioral constraints. For a tool with 3 parameters and complex sibling context, more detail is needed to ensure the agent can use it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema fully documents parameters. The description doesn't add meaning beyond what the schema provides, such as explaining region_code hierarchies or practical use of name formats. Baseline 3 is appropriate when the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb ('Get') and resource ('region information'), specifying what information is included (name, bounds, parent hierarchy). It distinguishes from most siblings that focus on observations, checklists, or hotspots rather than region metadata, though it doesn't explicitly differentiate from get_sub_regions or get_adjacent_regions.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is provided on when to use this tool versus alternatives like get_sub_regions or get_adjacent_regions. The description implies usage for region metadata but doesn't specify prerequisites, exclusions, or comparative contexts with sibling tools.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

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

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