Skip to main content
Glama

translate

Translate text using Nativ's AI localization engine.

Uses the team's translation memory, style guides, and brand voice
automatically. Returns the translation along with TM match info and
rationale.

Args:
    text: The text to translate.
    target_language: Full target language name (e.g. "French", "German", "Japanese").
    target_language_code: Optional ISO language code (e.g. "fr", "de", "ja").
    source_language: Source language name. Defaults to English.
    source_language_code: Source language code. Defaults to "en".
    context: Optional context to guide the translation (e.g. "marketing headline for Gen Z audience").
    glossary: Optional inline glossary as CSV (e.g. "term,translation\nbrand,marque").
    formality: Tone override — one of: very_informal, informal, neutral, formal, very_formal.
    max_characters: Optional strict character limit for the translation output.
    backtranslate: If true, also returns a back-translation to verify intent.

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": {
      "text": "<text>",
      "target_language": "<target_language>"
    },
    "name": "translate"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesThe text to translate.
contextNoOptional context to guide the translation (e.g. "marketing headline for Gen Z audience").
glossaryNoOptional inline glossary as CSV (e.g. "term,translation\nbrand,marque").
formalityNoTone override — one of: very_informal, informal, neutral, formal, very_formal.
backtranslateNoIf true, also returns a back-translation to verify intent.
max_charactersNoOptional strict character limit for the translation output.
source_languageNoSource language name. Defaults to English.English
target_languageYesFull target language name (e.g. "French", "German", "Japanese").
source_language_codeNoSource language code. Defaults to "en".en
target_language_codeNoOptional ISO language code (e.g. "fr", "de", "ja").

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changed
    • addedInput schema / properties / backtranslate / description
      Added value: +"If true, also returns a back-translation to verify intent."
    • addedInput schema / properties / context / description
      Added value: +"Optional context to guide the translation (e.g. \"marketing headline for Gen Z audience\")."
    • addedInput schema / properties / formality / description
      Added value: +"Tone override — one of: very_informal, informal, neutral, formal, very_formal."
    • addedInput schema / properties / glossary / description
      Added value: +"Optional inline glossary as CSV (e.g. \"term,translation\\nbrand,marque\")."
    • addedInput schema / properties / max_characters / description
      Added value: +"Optional strict character limit for the translation output."
    • addedInput schema / properties / source_language / description
      Added value: +"Source language name. Defaults to English."
    • addedInput schema / properties / source_language_code / description
      Added value: +"Source language code. Defaults to \"en\"."
    • addedInput schema / properties / target_language / description
      Added value: +"Full target language name (e.g. \"French\", \"German\", \"Japanese\")."
    • addedInput schema / properties / target_language_code / description
      Added value: +"Optional ISO language code (e.g. \"fr\", \"de\", \"ja\")."
    • addedInput schema / properties / text / description
      Added value: +"The text to translate."
  2. First observed

TDQS

A3.6/5.0
Behavior4/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, and it does disclose meaningful behavior: the engine automatically applies the team's translation memory, style guides and brand voice, and the response includes TM match info and rationale. It omits cost/latency, auth requirements, and what happens when max_characters cannot be satisfied, which keeps it short of a 5.

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 first two sentences are well front-loaded and earn their place, but the ten-line Args block duplicates the input schema line for line and is pure redundancy for an agent that already receives the schema. Roughly half the text could be removed with no loss.

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?

The tool is a straightforward generation call with a rich 10-parameter schema and an output schema, so the description need not explain return values, and it still usefully flags that TM match info and rationale come back. The only real gap is the absence of routing guidance relative to translate_batch and translate_dialogue.

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%, and the Args block restates the schema descriptions almost verbatim (including the same examples for target_language, glossary, and formality), so it adds essentially no meaning beyond the structured fields. The baseline of 3 applies since the schema already does the documentation work.

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 opening sentence gives a specific verb and resource ("Translate text") plus the engine that performs it, and the second sentence names the assets consulted (translation memory, style guides, brand voice). It does not explicitly distinguish itself from the sibling tools translate_batch and translate_dialogue, so an agent must infer that this one handles a single string.

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

Usage Guidelines3/5

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

Usage is only implied: the singular "text" parameter and optional per-call knobs like context and formality suggest one-off single-string translation, while translate_batch and translate_dialogue are never mentioned as alternatives. There is no explicit statement of when to pick this tool over those siblings, nor any prerequisite or exclusion.

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.