get_bird_stats
Extract detailed statistics from the AviBase dataset, including species count, family and order classifications, and conservation statuses for comprehensive bird data analysis.
Instructions
Get comprehensive statistics about the bird dataset including total records, species count, families, orders, and conservation categories.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- mcp-server.js:339-361 (handler)The main handler function for 'get_bird_stats' tool. Fetches statistics from the '/stats' API endpoint and returns a formatted markdown text response with dataset overview including total records, species count, families, orders, extinct species, and IUCN categories.async handleGetBirdStats() { const response = await this.makeAPIRequest('/stats'); return { content: [ { type: 'text', text: `# Bird Dataset Statistics 📊 **Dataset Overview:** - **Total Records:** ${response.data.totalRecords.toLocaleString()} - **Species:** ${response.data.totalSpecies.toLocaleString()} - **Families:** ${response.data.totalFamilies} - **Orders:** ${response.data.totalOrders} - **Extinct Species:** ${response.data.extinctSpecies} 🚨 **IUCN Conservation Categories:** ${response.data.iucnCategories.join(', ')} This comprehensive dataset contains information about birds worldwide, including taxonomic classification, conservation status, geographic distribution, and historical data.`, }, ], }; }
- mcp-server.js:71-79 (registration)Tool registration in the ListTools response, defining the name, description, and input schema (empty object, no parameters required).{ name: 'get_bird_stats', description: 'Get comprehensive statistics about the bird dataset including total records, species count, families, orders, and conservation categories.', inputSchema: { type: 'object', properties: {}, required: [], }, },
- mcp-server.js:74-78 (schema)Input schema for the tool: an empty object with no properties or required fields.inputSchema: { type: 'object', properties: {}, required: [], },
- mcp-server.js:288-289 (registration)Dispatcher case in CallToolRequestSchema handler that routes 'get_bird_stats' calls to the handleGetBirdStats method.case 'get_bird_stats': return await this.handleGetBirdStats();