Skip to main content
Glama

add_translation_memory_entry

Add a new entry to the translation memory.

Use this to store approved translations so they are reused in future
localizations.

Args:
    source_text: The original text.
    target_text: The approved translation.
    source_language_code: Source language code (e.g. "en").
    target_language_code: Target language code (e.g. "fr-FR").
    name: Optional label for this entry (e.g. "homepage hero copy").

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": {
      "source_text": "<source_text>",
      "target_text": "<target_text>",
      "source_language_code": "<source_language_code>",
      "target_language_code": "<target_language_code>"
    },
    "name": "add_translation_memory_entry"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoOptional label for this entry (e.g. "homepage hero copy").
source_textYesThe original text.
target_textYesThe approved translation.
source_language_codeYesSource language code (e.g. "en").
target_language_codeYesTarget language code (e.g. "fr-FR").

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedInput schema / properties / name / description
      Added value: +"Optional label for this entry (e.g. \"homepage hero copy\")."
    • addedInput schema / properties / source_language_code / description
      Added value: +"Source language code (e.g. \"en\")."
    • addedInput schema / properties / source_text / description
      Added value: +"The original text."
    • addedInput schema / properties / target_language_code / description
      Added value: +"Target language code (e.g. \"fr-FR\")."
    • addedInput schema / properties / target_text / description
      Added value: +"The approved translation."
  2. First observed

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden for a mutation tool. It never says what happens when an identical source/target/language pair already exists (error, duplicate, or overwrite), nor whether approval or permissions are required, nor whether the write is reversible. An output schema exists, so return values are reasonably excluded, but the conflict semantics are a real gap.

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

Conciseness3/5

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

The opening two sentences are well front-loaded and earn their place. The Args section is pure duplication of the input schema and could be dropped without losing information, which makes the definition longer than necessary.

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

Completeness3/5

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

With an output schema present, return values need no explanation, and all five parameters are documented. What is missing is behavior on duplicate or conflicting entries, which is the main thing an agent needs to know before calling a create-style memory tool.

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 description coverage is 100%, and the Args block reproduces the schema descriptions almost verbatim, adding no new meaning (no length limits, no code format constraints, no guidance on the optional name field's uniqueness). Baseline 3 applies when the schema already documents every parameter.

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

Purpose4/5

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

"Add a new entry to the translation memory" gives a specific verb (add) and resource (translation memory), and "new entry" implicitly separates it from update_translation_memory_entry. It does not explicitly name the sibling it is not, so it stops short of 5.

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?

"Use this to store approved translations so they are reused in future localizations" gives a clear triggering context (approved, reusable content). It does not say when NOT to use it, nor point at update_translation_memory_entry for existing entries, so the add-vs-update decision is left to inference.

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.