Skip to main content
Glama
translated

Lara Translate MCP Server

by translated

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
NameRequiredDescriptionDefault
idYesThe 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,
    };
  • 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),
    },

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