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
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of results to return (default: 100) |
Implementation Reference
- mcp-server.js:488-514 (handler)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.`, }, ], }; }
- mcp-server.js:167-181 (schema)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);