Skip to main content
Glama

Delete translation memory entries

delete_translation_memory_entries
Destructive

Delete up to 200 entries, by id (from search_translation_memory), from a translation memory, by translationMemoryId (from list_translation_memories), or by project, still accepted for an existing Project's attached memory, in one atomic call. Use it to remove faulty translations so future jobs stop reusing them. Ids that match no entry in that memory are reported as not found and nothing is deleted for them. A translation memory may be shared by other projects and Workflows in the organisation: it holds their entries too (including languages the addressed project does not translate into), and deleting an entry removes it for every project attached to the memory and every Workflow translating into it. The result lists those projects and Workflows — tell the user which ones were affected. Its Workflows include archived ones, since one unarchived reads the memory again. If a project imports the reviewed translations in its repository's target files, or a Workflow imports them as reviewed or translated (a translated one once QA passes it) from its target files, the next import brings a deleted entry back, so the faulty translation must also be fixed in those files. When referring to a project or language in your reply to the user, use its name and locale (e.g. "French (fr-FR)") — ids (UUIDs) are for tool calls only, never show them to the user.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "entryIds": "<entryIds>"
    },
    "name": "delete_translation_memory_entries"
  }
}

Input Schema

NameRequiredDescriptionDefault
projectNoProject id (UUID) or slug — still accepted for an existing Project's attached translation memory. Pass this or translationMemoryId, not both.
entryIdsYesThe translation memory entry ids to delete (1–200, from search_translation_memory)
translationMemoryIdNoTranslation memory id, from list_translation_memories. Pass this or project, not both.

Output Schema

NameRequiredDescriptionDefault
workflowsYesEvery Workflow whose current version translates into the memory, archived ones included — the deletion affects them too
deletedIdsYesEntries removed from the translation memory
notFoundIdsYesIds that matched no entry in the translation memory; nothing was deleted for them
attachedProjectsYesEvery project sharing the translation memory — the deletion affects all of them

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. Changed6 schema fields changed
    • changedInput schema / properties / project / description
      Previous value: -"Project id (UUID) or slug"New value: +"Project id (UUID) or slug — still accepted for an existing Project's attached translation memory. Pass this or translationMemoryId, not both."
    • addedInput schema / properties / translationMemoryId
      Added value: +{
      +  "description": "Translation memory id, from list_translation_memories. Pass this or project, not both.",
      +  "format": "uuid",
      +  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "project",
      -  "entryIds"
      -]New value: +[
      +  "entryIds"
      +]
    • changedOutput schema / properties / notFoundIds / description
      Previous value: -"Ids that matched no entry in the project's translation memory; nothing was deleted for them"New value: +"Ids that matched no entry in the translation memory; nothing was deleted for them"
    • addedOutput schema / properties / workflows
      Added value: +{
      +  "description": "Every Workflow whose current version translates into the memory, archived ones included — the deletion affects them too",
      +  "items": {
      +    "additionalProperties": {},
      +    "properties": {
      +      "id": {
      +        "type": "string"
      +      },
      +      "name": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "id",
      +      "name"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "deletedIds",
      -  "notFoundIds",
      -  "attachedProjects"
      -]New value: +[
      +  "deletedIds",
      +  "notFoundIds",
      +  "attachedProjects",
      +  "workflows"
      +]
  3. Added

TDQS

A4.4/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already flag destructiveHint=true, and the description adds substantial context beyond them: atomicity, that non-matching ids are reported as not found with nothing deleted, that the memory is shared so deletion affects every attached project and Workflow (including archived ones), that the result lists affected projects/Workflows to report to the user, and that re-imports can resurrect a deleted entry unless the target files are fixed.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The action, the inputs, and the exclusivity rule are front-loaded before the impact and re-import warnings, and nearly every sentence carries operational value. It is dense and long, and the closing instruction about using names/locales instead of UUIDs in replies is user-facing guidance that sits somewhat apart from tool invocation, but nothing is truly redundant.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Although an output schema exists, the description still tells the agent that the result enumerates affected projects and Workflows, which is an important post-call action. For a destructive, cross-project mutation with three parameters, this covers the consequences, failure semantics, and follow-up obligations an agent needs before calling.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so all three parameters are already documented in the schema, including the project/translationMemoryId mutual exclusivity. The description reinforces where the ids come from and adds the not-found semantics for entryIds, but adds no syntax or format detail beyond the schema, so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (delete) and resource (translation memory entries), with the cap (up to 200) and both addressing modes (entryIds plus translationMemoryId or project) in the first sentence. It is unambiguous against siblings like search_translation_memory and list_translation_memories, which are named as the sources of the ids.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives a clear motivating use case ("remove faulty translations so future jobs stop reusing them") and names the upstream tools that supply the ids, plus the project-vs-translationMemoryId exclusivity. It does not explicitly state when NOT to use it (e.g. editing a wrong entry rather than deleting, or restoring afterwards), so it stops short of full alternative routing.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.