Skip to main content
Glama

search_translation_memory

Search the translation memory for existing translations.

Use this to check if translations already exist before creating new ones,
or to find reference translations for consistency.

Args:
    query: Text to search for in the translation memory.
    source_language_code: Source language code (default: "en").
    target_language_code: Optional target language code to filter results.
    min_score: Minimum fuzzy match score (0-100). Default 0 returns all.
    limit: Maximum number of results (default 10).

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": {
      "query": "<query>"
    },
    "name": "search_translation_memory"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of results (default 10).
queryYesText to search for in the translation memory.
min_scoreNoMinimum fuzzy match score (0-100). Default 0 returns all.
source_language_codeNoSource language code (default: "en").en
target_language_codeNoOptional target language code to filter results.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedInput schema / properties / limit / description
      Added value: +"Maximum number of results (default 10)."
    • addedInput schema / properties / min_score / description
      Added value: +"Minimum fuzzy match score (0-100). Default 0 returns all."
    • addedInput schema / properties / query / description
      Added value: +"Text to search for in the translation memory."
    • addedInput schema / properties / source_language_code / description
      Added value: +"Source language code (default: \"en\")."
    • addedInput schema / properties / target_language_code / description
      Added value: +"Optional target language code to filter results."
  2. First observed

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden; it implies a read-only lookup but never states it explicitly. It does add genuine behavioral detail through min_score (0-100 fuzzy threshold, 0 returns all) and limit (default 10), which tells the agent how result breadth is controlled. It says nothing about permission requirements, rate limits, or what a zero-result response means, which leaves gaps for a no-annotation tool.

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 purpose and usage sentences are front-loaded and tight. However, the Args block duplicates parameter text already present at 100% schema coverage, so a significant fraction of the description does not earn its place. It remains readable and correctly ordered.

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

Completeness4/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 not be described, and all five parameters are documented. The purpose-plus-workflow framing is sufficient for an agent to call this correctly. Remaining gaps are minor: no statement of read-only behavior, result ordering, or handling of an empty match set.

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%, so the baseline is 3. The Args block restates the schema descriptions nearly verbatim ('Minimum fuzzy match score (0-100). Default 0 returns all.') and adds no new semantics such as match-score interpretation or language-pair matching behavior. Nothing is lost, but nothing is contributed beyond the structured fields.

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?

The first line states a specific verb and resource: 'Search the translation memory for existing translations.' That is clearly distinguishable from sibling mutations like add_translation_memory_entry or delete_translation_memory_entry. It stops short of naming the closest read siblings (list_translation_memory_entries, get_translation_memory_stats), so it does not fully differentiate within its own read-only family.

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?

The description gives concrete usage context: check whether translations already exist before creating new ones, or find reference translations for consistency. That is a real workflow cue rather than an implied one. It does not say when NOT to use it (e.g., when an exact entry lookup or a full listing is more appropriate).

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.