delete_memory
Remove a translation memory from your Lara Translate account by specifying its unique identifier to manage stored translation data.
Instructions
Deletes a translation memory from your Lara Translate account.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The unique identifier of the memory to update. Format: mem_xyz123 |
Implementation Reference
- src/mcp/tools/delete_memory.ts:12-16 (handler)The main handler function that executes the delete_memory tool logic. It parses the input arguments using the schema and calls the Lara Translator's memories.delete method.export async function deleteMemory(args: any, lara: Translator) { const validatedArgs = deleteMemorySchema.parse(args); const { id } = validatedArgs; return await lara.memories.delete(id); }
- src/mcp/tools/delete_memory.ts:4-10 (schema)Zod schema defining the input for the delete_memory tool, requiring an 'id' string.export const deleteMemorySchema = z.object({ id: z .string() .describe( "The unique identifier of the memory to update. Format: mem_xyz123" ), });
- src/mcp/tools.ts:39-39 (registration)Maps the tool name 'delete_memory' to the deleteMemory handler function in the handlers record.delete_memory: deleteMemory,
- src/mcp/tools.ts:102-107 (registration)Registers the delete_memory tool in the ListTools response with name, description, and input schema.{ name: "delete_memory", description: "Deletes a translation memory from your Lara Translate account.", inputSchema: z.toJSONSchema(deleteMemorySchema), },