check_import_status
Monitor a TMX import job's progress by polling its status with the import ID, tracking completion via the progress field.
Instructions
Checks the status of a TMX import job started by import_tmx. Poll this tool with the import_id returned from import_tmx until the import is complete. The response includes a progress field to track completion.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The ID of the import job |
Implementation Reference
- The handler function that executes the check_import_status tool logic. It validates input with the schema, extracts the 'id' parameter, and calls lara.memories.getImportStatus(id) to check the status of a TMX import job.
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: an object with a single required string field 'id' (the import job ID).
export const checkImportStatusSchema = z.object({ id: z.string().describe("The ID of the import job"), }); - src/mcp/tools.ts:57-57 (registration)Registration of checkImportStatus in the handlers map under the name 'check_import_status'.
check_import_status: checkImportStatus, - src/mcp/tools.ts:304-316 (registration)Tool definition entry in toolDefinitions array, including name, description, inputSchema reference, and annotations (readOnlyHint: true).
{ name: "check_import_status", description: "Checks the status of a TMX import job started by import_tmx. Poll this tool with the import_id returned from import_tmx until the import is complete. The response includes a progress field to track completion.", inputSchema: z.toJSONSchema(checkImportStatusSchema), annotations: { title: "Check TMX import status", readOnlyHint: true, destructiveHint: false, openWorldHint: false, }, _meta: invocationMeta("Checking import status…", "Status retrieved"), }, - src/mcp/tools.ts:115-116 (registration)Narration case in the narrate() function that returns a human-readable status string for check_import_status results.
case "check_import_status": return `TMX import status: ${result?.status ?? "unknown"}`;