Skip to main content
Glama
translated

Lara Translate MCP Server

by translated

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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(); }
  • 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, };
  • 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), },
  • 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), }, ], }; }

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/translated/lara-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server