Skip to main content
Glama

Search translation memory

tm_query
Read-only

Query translation memory (hybrid retrieval; free).

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_text": "<query_text>",
      "source_lang": "<source_lang>",
      "target_lang": "<target_lang>"
    },
    "name": "tm_query"
  }
}

Input Schema

NameRequiredDescriptionDefault
top_kNoHow many matches to return, 1–50 (default 8).
query_textYesSource-language text to find matches for, e.g. a sentence or paragraph.
document_idNoApply this document’s translation-memory settings (which projects and statuses count).
source_langYesLanguage of query_text: a language code, e.g. "de" or "zh".
target_langYesLanguage of the translations to return: a language code, e.g. "de" or "zh".
cross_languageNoAlso return matches from other language pairs (default false).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • addedInput schema / properties / cross_language / description
      Added value: +"Also return matches from other language pairs (default false)."
    • addedInput schema / properties / document_id / description
      Added value: +"Apply this document’s translation-memory settings (which projects and statuses count)."
    • addedInput schema / properties / query_text / description
      Added value: +"Source-language text to find matches for, e.g. a sentence or paragraph."
    • addedInput schema / properties / source_lang / description
      Added value: +"Language of query_text: a language code, e.g. \"de\" or \"zh\"."
    • addedInput schema / properties / target_lang / description
      Added value: +"Language of the translations to return: a language code, e.g. \"de\" or \"zh\"."
    • addedInput schema / properties / top_k / description
      Added value: +"How many matches to return, 1–50 (default 8)."
  2. First observed

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered. The description does add two useful facts beyond them — retrieval is hybrid and the call is free (no billing impact). It says nothing about how matches are scored or ordered, or how cross-language results are merged.

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?

One short, front-loaded sentence with zero filler and the key qualifiers up front. It is efficient, though the extreme brevity leaves useful behaviour unstated rather than wasting words.

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

Completeness2/5

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

This is a six-parameter search tool with no output schema, so the description should carry more of the behavioural burden: result shape, ranking, and effect of document_id versus cross_language. It covers only purpose and cost, leaving the agent to infer everything about how results come back.

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 every parameter including top_k, document_id and cross_language is documented in the schema itself. The description adds no parameter meaning at all, so the baseline 3 applies.

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?

"Query translation memory" gives a specific verb plus resource, and the parenthetical adds that retrieval is hybrid. It is clear what the tool does, but it does not differentiate itself from neighbours such as glossary lookup or tm_import in any way.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no preconditions, and no named alternative. The only hint is "free", which implies a cost-free lookup suitable for exploratory reuse checks, but that must be inferred.

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.