list_glossaries
List all glossaries in your Lara Translate account. Glossaries enforce specific terminology during translation.
Instructions
Lists all glossaries in your Lara Translate account. Glossaries are collections of terms with their translations that enforce specific terminology during translation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/mcp/tools/list_glossaries.ts:6-8 (handler)The actual handler function that executes the 'list_glossaries' tool logic. It calls lara.glossaries.list() to retrieve all glossaries.
export async function listGlossaries(lara: Translator) { return await lara.glossaries.list(); } - src/mcp/tools/list_glossaries.ts:4-4 (schema)Input schema for list_glossaries — an empty object, since no parameters are required.
export const listGlossariesSchema = z.object({}); - src/mcp/tools.ts:70-74 (registration)Registration in the 'listers' record mapping tool name 'list_glossaries' to the listGlossaries handler function.
const listers: Record<string, Lister> = { list_memories: listMemories, list_languages: listLanguages, list_glossaries: listGlossaries, }; - src/mcp/tools.ts:341-352 (registration)Tool definition with name, description, inputSchema, and annotations for the MCP tool registration.
{ name: "list_glossaries", description: "Lists all glossaries in your Lara Translate account. Glossaries are collections of terms with their translations that enforce specific terminology during translation.", inputSchema: z.toJSONSchema(listGlossariesSchema), annotations: { title: "List glossaries", readOnlyHint: true, destructiveHint: false, openWorldHint: false, }, }, - src/mcp/tools.ts:25-25 (registration)Import statement for listGlossaries and listGlossariesSchema from the handler file.
import { listGlossaries, listGlossariesSchema } from "./tools/list_glossaries.js";