Skip to main content
Glama
translated

Lara Translate MCP Server

by translated

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
NameRequiredDescriptionDefault
idYesThe unique identifier of the memory to update. Format: mem_xyz123

Implementation Reference

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

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