delete_memory
Remove a specific translation memory from your Lara Translate account using its unique identifier.
Instructions
Deletes a translation memory from your Lara Translate account.
Input 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 handler function that executes the delete_memory tool logic. It validates the input using deleteMemorySchema (expects an 'id' string), then calls lara.memories.delete(id) to delete the translation memory.
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 for delete_memory input validation. Requires a single 'id' field (string) identifying the memory to delete (format: mem_xyz123).
export const deleteMemorySchema = z.object({ id: z .string() .describe( "The unique identifier of the memory to update. Format: mem_xyz123" ), }); - src/mcp/tools.ts:52-52 (registration)Registration of the deleteMemory handler in the handlers map, mapped to the key 'delete_memory'.
delete_memory: deleteMemory, - src/mcp/tools.ts:243-254 (registration)Tool definition registration including name, description, inputSchema, and annotations (destructiveHint: true).
{ name: "delete_memory", description: "Deletes a translation memory from your Lara Translate account.", inputSchema: z.toJSONSchema(deleteMemorySchema), annotations: { title: "Delete translation memory", readOnlyHint: false, destructiveHint: true, openWorldHint: false, }, }, - src/mcp/tools.ts:107-108 (registration)Narration text for the delete_memory tool result, used for formatting the output content.
case "delete_memory": return `Deleted translation memory ${result?.id ?? args?.id ?? ""}`;