UNPKG

@translated/lara-mcp

Version:

Lara API official MCP server

14 lines (13 loc) 479 B
import { z } from "zod/v4"; import { memorySchema } from "./_schemas.js"; export const deleteMemoryOutputSchema = memorySchema; export const deleteMemorySchema = z.object({ id: z .string() .describe("The unique identifier of the memory to update. Format: mem_xyz123"), }); export async function deleteMemory(args, lara) { const validatedArgs = deleteMemorySchema.parse(args); const { id } = validatedArgs; return await lara.memories.delete(id); }