check_glossary_import_status
Check the current status of a glossary CSV import job by providing the import ID, polling until the import is complete.
Instructions
Checks the status of a glossary CSV import job started by import_glossary_csv. Poll this tool with the import_id returned from import_glossary_csv until the import is complete.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The ID of the glossary import job |
Implementation Reference
- The main handler function that validates args with the schema, extracts the import job ID, and calls lara.glossaries.getImportStatus(id) to check the status.
export async function checkGlossaryImportStatus(args: any, lara: Translator) { const validatedArgs = checkGlossaryImportStatusSchema.parse(args); const { id } = validatedArgs; return await lara.glossaries.getImportStatus(id); } - Input validation schema requiring a string 'id' (the glossary import job ID).
export const checkGlossaryImportStatusSchema = z.object({ id: z.string().describe("The ID of the glossary import job"), }); - src/mcp/tools.ts:63-63 (registration)Registration of the handler in the handlers record mapping tool name 'check_glossary_import_status' to the imported handler function.
check_glossary_import_status: checkGlossaryImportStatus, - src/mcp/tools.ts:414-426 (registration)Full tool definition including name, description, input schema, annotations (readOnlyHint: true), and invocation metadata.
{ name: "check_glossary_import_status", description: "Checks the status of a glossary CSV import job started by import_glossary_csv. Poll this tool with the import_id returned from import_glossary_csv until the import is complete.", inputSchema: z.toJSONSchema(checkGlossaryImportStatusSchema), annotations: { title: "Check glossary import status", readOnlyHint: true, destructiveHint: false, openWorldHint: false, }, _meta: invocationMeta("Checking glossary import status…", "Status retrieved"), }, - src/mcp/tools.ts:133-134 (registration)Narration helper that formats the result message for this tool's response.
case "check_glossary_import_status": return `Glossary import status: ${result?.status ?? "unknown"}`;