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
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools.ts:398-411 (handler)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), }, ], }; }
- src/tools.ts:159-166 (schema)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: {}, }, },
- src/itis-client.ts:326-332 (helper)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'] }); }