get_taxa_locales
Retrieve language codes for species names to access bird taxonomy information in multiple languages from the eBird database.
Instructions
Get available language codes for species names.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:496-499 (handler)The core handler function that implements the get_taxa_locales tool logic: fetches available language codes for species names from the eBird API endpoint "/ref/taxa-locales/ebird" and returns the result as formatted JSON text.
async () => { const result = await makeRequest("/ref/taxa-locales/ebird"); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] }; } - src/index.ts:492-500 (registration)Registration of the "get_taxa_locales" tool on the MCP server, including name, description, empty input schema (no parameters), and inline handler.
server.tool( "get_taxa_locales", "Get available language codes for species names.", {}, async () => { const result = await makeRequest("/ref/taxa-locales/ebird"); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] }; } ); - src/index.ts:495-495 (schema)Empty Zod schema indicating the tool takes no input parameters.
{},