check_import_status
Monitor the progress of TMX file import jobs in your Lara Translate account to track translation memory uploads and ensure data integration.
Instructions
Checks the status of a TMX file import job in your Lara Translate account.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The ID of the import job |
Implementation Reference
- The handler function for the 'check_import_status' tool. It validates the input arguments using the schema, extracts the import job ID, and retrieves the import status from Lara's memories.export async function checkImportStatus(args: any, lara: Translator) { const validatedArgs = checkImportStatusSchema.parse(args); const { id } = validatedArgs; return await lara.memories.getImportStatus(id); }
- Zod schema defining the input for the checkImportStatus tool: requires a string 'id' for the import job.export const checkImportStatusSchema = z.object({ id: z.string().describe("The ID of the import job"), });
- src/mcp/tools.ts:36-45 (registration)Registration of the checkImportStatus handler in the tools handlers map under the key 'check_import_status', used for dispatching tool calls.const handlers: Record<string, Handler> = { translate: translateHandler, create_memory: createMemory, delete_memory: deleteMemory, update_memory: updateMemory, add_translation: addTranslation, delete_translation: deleteTranslation, import_tmx: importTmx, check_import_status: checkImportStatus, };
- src/mcp/tools.ts:133-137 (registration)Registration of the 'check_import_status' tool in the ListTools response, including name, description, and input schema.name: "check_import_status", description: "Checks the status of a TMX file import job in your Lara Translate account.", inputSchema: z.toJSONSchema(checkImportStatusSchema), },