Skip to main content
Glama

get_statistics

Retrieve basic statistics about the ITIS database, including total record counts, to understand the scope of available taxonomic information.

Instructions

Get basic statistics about the ITIS database (total number of records).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The primary MCP tool handler for 'get_statistics'. It invokes the ITIS client's getStatistics method and formats the response as JSON with total records count and current timestamp.
    case 'get_statistics': { const result = await itisClient.getStatistics(); return { content: [ { type: 'text', text: JSON.stringify({ totalRecords: result.response.numFound, lastUpdated: new Date().toISOString(), }, null, 2), }, ], }; }
  • Tool schema definition for 'get_statistics', including name, description, and empty input schema (no parameters required).
    { name: 'get_statistics', description: 'Get basic statistics about the ITIS database (total number of records).', inputSchema: { type: 'object', properties: {}, }, },
  • Helper method in ITISClient class that performs a Solr count query ('*:*' with rows=0) to get total number of records in the ITIS database.
    async getStatistics(): Promise<ITISResponse> { return this.search({ query: '*:*', rows: 0, fields: ['tsn'] }); }

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/knustx/itis-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server