list_languages
Retrieve the full list of languages supported by your Lara Translate account. Identify available translation languages for your projects.
Instructions
Lists all supported languages in your Lara Translate account.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/mcp/tools/list_languages.ts:6-8 (handler)The actual handler function for list_languages. Calls lara.getLanguages() to retrieve supported languages.
export async function listLanguages(lara: Translator) { return await lara.getLanguages(); } - src/mcp/tools/list_languages.ts:4-4 (schema)Input schema definition for list_languages. Empty object since this tool takes no arguments.
export const listLanguagesSchema = z.object({}); - src/mcp/tools.ts:70-74 (registration)Registration of listLanguages in the 'listers' record, mapping the tool name to its handler function.
const listers: Record<string, Lister> = { list_memories: listMemories, list_languages: listLanguages, list_glossaries: listGlossaries, }; - src/mcp/tools.ts:329-340 (registration)Tool definition registration with name, description, inputSchema, and annotations for the list_languages tool.
{ name: "list_languages", description: "Lists all supported languages in your Lara Translate account.", inputSchema: z.toJSONSchema(listLanguagesSchema), annotations: { title: "List supported languages", readOnlyHint: true, destructiveHint: false, openWorldHint: false, }, }, - src/mcp/tools.ts:156-161 (registration)Dispatch logic in CallTool(). list_languages is invoked via the 'listers' path since it's not in handlers.
} else if (name in listers) { result = await listers[name as keyof typeof listers](lara); } else { logger.warn(`Requested a tool with name ${name}, but it was not found`); throw new InvalidInputError(`Tool ${name} not found`); }