Skip to main content
Glama

search_by_rank

Find organisms in the ITIS database by specifying taxonomic rank such as Species, Genus, or Family to retrieve relevant biological classifications.

Instructions

Search for organisms by their taxonomic rank in ITIS database.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rankYesTaxonomic rank (e.g., "Species", "Genus", "Family", "Order", "Class", "Phylum", "Kingdom")
rowsNoNumber of results to return (default: 10)
startNoStarting index for pagination (default: 0)

Implementation Reference

  • Core implementation of search by taxonomic rank: calls base search method with filter rank:"${rank}"
    async searchByTaxonomicRank(rank: string, options: Partial<ITISSearchOptions> = {}): Promise<ITISResponse> { return this.search({ ...options, filters: { ...options.filters, rank: `"${rank}"` } }); }
  • MCP CallToolRequestSchema handler case for 'search_by_rank': extracts parameters, calls ITISClient method, returns formatted JSON response
    case 'search_by_rank': { const { rank, rows, start } = args as any; const result = await itisClient.searchByTaxonomicRank(rank, { rows, start }); return { content: [ { type: 'text', text: JSON.stringify({ rank, totalResults: result.response.numFound, start: result.response.start, results: result.response.docs, }, null, 2), }, ], }; }
  • Input schema and metadata for the search_by_rank tool, included in the exported tools array
    { name: 'search_by_rank', description: 'Search for organisms by their taxonomic rank in ITIS database.', inputSchema: { type: 'object', properties: { rank: { type: 'string', description: 'Taxonomic rank (e.g., "Species", "Genus", "Family", "Order", "Class", "Phylum", "Kingdom")', }, rows: { type: 'number', description: 'Number of results to return (default: 10)', }, start: { type: 'number', description: 'Starting index for pagination (default: 0)', }, }, required: ['rank'], }, },
  • src/index.ts:22-22 (registration)
    Call to setupToolHandlers which registers ListToolsRequest and CallToolRequest handlers, making search_by_rank available via the tools array and switch dispatcher
    setupToolHandlers(server, itisClient);

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