list_languages
View all available languages for translation in your Lara Translate account to select appropriate language pairs for your translation tasks.
Instructions
Lists all supported languages in your Lara Translate account.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/mcp/tools/list_languages.ts:6-8 (handler)The main handler function for the 'list_languages' tool. It asynchronously calls lara.getLanguages() to retrieve the list of supported languages.export async function listLanguages(lara: Translator) { return await lara.getLanguages(); }
- src/mcp/tools/list_languages.ts:4-4 (schema)Zod schema defining the input for the 'list_languages' tool, which requires no parameters (empty object).export const listLanguagesSchema = z.object({});
- src/mcp/tools.ts:47-50 (registration)Registration of the list_languages handler in the 'listers' object, used to dispatch no-argument tool calls in CallTool.const listers: Record<string, Lister> = { list_memories: listMemories, list_languages: listLanguages, };
- src/mcp/tools.ts:144-149 (registration)Registration of the 'list_languages' tool descriptor in the ListTools() function, providing name, description, and schema for MCP tool listing.{ name: "list_languages", description: "Lists all supported languages in your Lara Translate account.", inputSchema: z.toJSONSchema(listLanguagesSchema), },
- src/mcp/resources.ts:66-76 (helper)Usage of listLanguages function as a helper in ReadResource for the 'languages://list' resource URI.if (uri === "languages://list") { const languages = await listLanguages(lara); return { contents: [ { uri: uri, text: JSON.stringify(languages, null, 2), }, ], }; }