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").

Input Schema

NameRequiredDescriptionDefault
nameNo
source_textYes
target_textYes
source_language_codeYes
target_language_codeYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/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 and only tells us the data is persisted for reuse. It does not state whether duplicate source/target pairs are deduplicated or rejected, whether the write is immediate, what permissions are needed, or any failure modes. For a mutation tool with zero annotation coverage this is a significant gap.

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 purpose sentence and usage sentence come first, then the Args list — front-loaded and easy to scan. The Args entries are short and each earns its place; nothing is padded.

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?

An output schema exists, so return values need not be explained, and the parameter list is fully covered. However, for a write tool with no annotations, the description should still resolve duplicate-handling and persistence semantics to be complete.

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

Parameters4/5

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

Schema description coverage is 0%, and the Args block compensates by defining all five parameters in plain language, including format examples ('en', 'fr-FR') and a concrete example for name. It does not note that name is optional, nor give any guidance on length or multi-segment source text, so it falls slightly short of full compensation.

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?

States a specific verb and resource: 'Add a new entry to the translation memory.' This clearly distinguishes it from the update_/delete_/search_/list_ siblings, though it never explicitly names those alternatives to confirm the boundary (e.g. that adding a duplicate is not the same as updating one).

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 solid when-to-use rationale tied to the downstream benefit. It stops short of exclusions — nothing says what to do if an entry already exists for the same pair, or when to prefer update_translation_memory_entry.

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.