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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_extinct_species"
}
}Input 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 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.`, }, ], }; } - mcp-server.js:168-181 (schema)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);