Skip to main content
Glama

Search translation memory

search_translation_memory
Read-only

Search a translation memory, by translationMemoryId (from list_translation_memories), or by project, still accepted for an existing Project's attached memory — the stored source→translation pairs that future jobs reuse as-is when the same source text comes up again. Filter by a case-insensitive substring of the source or translated text, and/or by source and target locale. Returns each entry with its id, texts, languages, notes and context. Results are paginated; pass the returned cursor to fetch the next page. Use it to find faulty entries and pass their ids to delete_translation_memory_entries. 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. 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

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "search_translation_memory"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNoCase-insensitive substring matched against the source or translated text (max 200 characters; % and _ match literally)
limitNoPage size (default 50)
cursorNoPagination cursor from a previous call
projectNoProject id (UUID) or slug — still accepted for an existing Project's attached translation memory. Pass this or translationMemoryId, not both.
sourceLocaleNoOnly entries with this source locale — under any spelling of the same locale, so "pt-BR" and legacy "pt_BR" each find both, as do "he" and "iw"
targetLocaleNoOnly entries with this target locale (e.g. "pt-BR") — under any spelling of the same locale, so "pt-BR" and legacy "pt_BR" each find both, as do "he" and "iw"
translationMemoryIdNoTranslation memory id, from list_translation_memories. Pass this or project, not both.

Output Schema

NameRequiredDescriptionDefault
dataYes
paginationYes

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. Changed3 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"
      +}
    • removedInput schema / required
      Removed value: -[
      -  "project"
      -]
  3. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations already establish read-only/non-destructive/non-open-world, and the description adds genuinely non-obvious context beyond them: the memory may be shared with other projects and Workflows, holds entries in languages the addressed project does not translate into, and deleting an entry affects every attached project. It also discloses pagination via cursor and the fields returned per entry.

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 pagination guidance are front-loaded, but the opening sentence is overloaded with a nested definition of translation memory, and the closing sentence about showing locale names instead of UUIDs is general reply-styling guidance rather than something needed to invoke this tool. Density costs readability without adding callable information.

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?

For a 7-parameter, all-optional search with an output schema, the definition covers addressing, filtering, pagination, and the sharing semantics that affect follow-up deletes. The one gap is that it never states what happens when no filter is supplied (i.e. that it scans the whole memory), which an agent may need to avoid unexpectedly large result sets.

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 parameter semantics are already well documented (mutual exclusivity of project vs translationMemoryId, case-insensitive substring match, locale spelling equivalence). The description restates the substring and locale filtering but adds only the nuance that `project` is still accepted for an existing Project's attached memory — marginal value over the schema.

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?

Opens with a specific verb+resource ("Search a translation memory") and immediately defines what is being searched — the stored source→translation pairs reused by future jobs. It also names how a memory is addressed (translationMemoryId from list_translation_memories, or a Project's attached memory), which distinguishes it from the mutation and listing siblings.

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 an explicit use case and downstream hand-off: "find faulty entries and pass their ids to delete_translation_memory_entries," and points at list_translation_memories as the source of ids. It lacks an explicit "do not use this when…" or a contrast against a non-existent alternative search path, so it stops short of full routing guidance.

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.