Skip to main content
Glama
kshayk

AviBase MCP Server

by kshayk

get_extinct_species

Retrieve a list of extinct or possibly extinct bird species using customizable limits. Access comprehensive bird data from the AviBase dataset to analyze conservation statuses and taxonomic classifications.

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 '/extinct', processes the response, and formats a detailed text output listing extinct bird species with their 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.`, }, ], }; }
  • Tool registration in the ListTools response, including the name, description, and input schema definition which specifies an optional 'limit' parameter.
    { 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)
    Registration and dispatching of the tool in the CallToolRequestHandler switch statement, routing calls to the handleGetExtinctSpecies 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