Skip to main content
Glama
kshayk

AviBase MCP Server

by kshayk

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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: [], }, },
  • 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();

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