Skip to main content
Glama
kshayk

AviBase MCP Server

by kshayk

get_extinct_species

Retrieve extinct or possibly extinct bird species from the AviBase dataset to analyze conservation status and biodiversity loss.

Instructions

Get all extinct or possibly extinct bird species.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum number of results to return (default: 100)

Implementation Reference

  • The handler function that implements the core logic for the 'get_extinct_species' tool. It makes an API request to fetch extinct bird species data and formats a markdown response with key details.
    async handleGetExtinctSpecies(args) { const { limit = 100 } = args; const endpoint = `/extinct?limit=${limit}`; const response = await this.makeAPIRequest(endpoint); return { content: [ { type: 'text', text: `# Extinct and Possibly Extinct Species šŸ’€ **${response.pagination.totalItems}** extinct or possibly extinct bird species documented **Extinct species:** ${response.data.slice(0, 20).map((bird, i) => `${i + 1}. **${bird.Scientific_name}** - Common name: ${bird.English_name_AviList || 'No common name'} - Family: ${bird.Family} - Last known: ${bird.Extinct_or_possibly_extinct || 'Unknown'} - Authority: ${bird.Authority || 'Unknown'}`).join('\n\n')} ${response.pagination.hasNext ? `\n*Note: Showing first ${response.data.length} of ${response.pagination.totalItems} total extinct species.*` : ''} This represents a significant loss of avian biodiversity and highlights the importance of conservation efforts.`, }, ], }; }
  • The input schema definition for the 'get_extinct_species' tool, including the optional 'limit' parameter. This is part of the tools list registered with the MCP server.
    name: 'get_extinct_species', description: 'Get all extinct or possibly extinct bird species.', inputSchema: { type: 'object', properties: { limit: { type: 'number', description: 'Maximum number of results to return (default: 100)', default: 100, }, }, required: [], }, },
  • mcp-server.js:303-304 (registration)
    The switch case in the MCP tool request handler that registers and dispatches calls to the 'get_extinct_species' handler method.
    case 'get_extinct_species': return await this.handleGetExtinctSpecies(args);

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/kshayk/avibase-mcp'

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