get_bird_stats
Retrieve comprehensive statistics from the AviBase bird dataset including total records, species counts, taxonomic classifications, and conservation categories.
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 primary handler function that executes the get_bird_stats tool logic. It fetches dataset statistics from the backend API endpoint '/stats' and returns a formatted markdown text response containing 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 ListToolsRequestSchema handler, defining the tool name, description, and input schema (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 definition for the get_bird_stats tool, specifying an empty object (no input parameters required).inputSchema: { type: 'object', properties: {}, required: [], },
- mcp-server.js:288-289 (registration)Dispatch case in the CallToolRequestSchema handler that routes tool calls named 'get_bird_stats' to the handleGetBirdStats method.case 'get_bird_stats': return await this.handleGetBirdStats();