Skip to main content
Glama

Translation glossary and rules

translation_glossary
Destructive

Read and edit the workspace's translation glossary and translation rules (Settings → Translation). Every translation in the workspace follows them: captions translate, translated videos and articles. Use it when the user says how a term must be translated, that a product or brand name must stay untranslated, or how translations into a language should read (tone, formality). Do NOT hand-edit translated captions or text for this instead: the next translation repeats the mistake.

Glossary terms: original (source text) → translated (the original itself keeps it as is), for languages (codes or names; omit for every language), optionally case_sensitive. Rules: ONE per language: prompt (instructions the translator follows), optional title and examples [{original, translation}].

Changes are WORKSPACE-WIDE and apply to translations made after them: tell the user when you add or change one, and translate again (captions action "translate") what should pick them up.

action: • list — {terms: [{term_id, original, translated, languages, case_sensitive}], term_count, rules: [{rule_id, title, language, prompt, examples}]}; language keeps what applies to it, query filters terms by text (at most 200 terms per reply) • set_term — add a term or change one. An existing term is not overwritten: you get error "entry_exists" with current; show the user both, confirm, then call again with replace: true. Several terms with the same original → error "several_terms": pass the term_id you mean. • remove_term — delete the term with this original (exact text) or term_id • set_rule — set language's rule; an existing one needs replace: true after the user confirmed (same "entry_exists" reply) • remove_rule — delete language's rule

Editing needs an editor or admin role, and saving needs a plan with the translation glossary (Enterprise); a refusal says which: tell the user, don't retry.

Input Schema

NameRequiredDescriptionDefault
queryNolist: keep terms whose text contains this.
titleNoset_rule: a label (default the language name).
actionYes
promptNoset_rule: the instructions for this language.
replaceNoset_term/set_rule: overwrite an existing entry, only after the user confirmed.
term_idNoset_term/remove_term: one term from list, when several share an original.
examplesNoset_rule: example translations the rule follows.
languageNoset_rule/remove_rule: the target language (code or name); list: keep what applies to it.
originalNoset_term/remove_term: the term as written in the source language.
languagesNoset_term: target language codes or names; [] for every language. Omitted: every language on a new term, unchanged on a replace.
translatedNoset_term: what the term becomes in the translation.
case_sensitiveNoset_term: match only this exact casing (default false; unchanged on a replace).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Goes well past the destructiveHint/readOnlyHint annotations by disclosing that changes are workspace-wide, apply only to translations made afterward, require re-translation to take effect, and need an editor/admin role plus an Enterprise plan with a refusal that names which requirement failed. It also documents the error contracts (entry_exists with `current`, several_terms) and the required user-confirmation flow before replace: true, which is exactly the risk context an agent needs before mutating shared state.

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?

Front-loads purpose, then when-to-use with the anti-pattern, then the data model, then a bulleted per-action breakdown, then permissions — a sensible escalation. It is dense rather than padded, though the data-model paragraph and the per-action bullets restate some of the same field semantics, costing some tightness.

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

Completeness5/5

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

For a 12-parameter destructive mutation tool with no output schema, the description supplies the missing return shape inline (term and rule field lists, term_count, the 200-term cap), plus scope, timing, permission/plan gating and error recovery. An agent can call every action correctly, including the two-step confirmation path, using this text alone.

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 coverage is already 92%, so the schema carries most parameter documentation, but the description still adds real meaning: `original` → `translated` with the note that the source keeps the original as is, `languages` omitting meaning 'every language on a new term, unchanged on a replace', `case_sensitive` defaulting false, and 'ONE rule per language' for set_rule. It adds interpretation and defaults rather than syntax examples, so it sits just above the high-coverage baseline rather than at the top.

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?

States a concrete verb pair (read and edit) against a concrete resource (workspace translation glossary and translation rules), then enumerates the five supported actions. Nothing about this overlaps ambiguously with the sibling set (captions, update_article, pronunciation), so an agent can route to it without opening the schema.

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

Usage Guidelines5/5

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

Gives explicit triggers (user states how a term must be translated, a brand name must stay untranslated, or how a language's tone/formality should read) and an explicit anti-pattern ('Do NOT hand-edit translated captions or text ... the next translation repeats the mistake'). It also points to the follow-up action ('translate' on captions) needed to make changes take effect.

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.