Skip to main content
Glama

translate_batch

Translate multiple texts to a single target language.

Use for lists of strings, UI labels, i18n files, subtitle cues, and
voiceover segments. Prefer one batch over separate translate calls.
Texts are translated together using the team's TM and style guides.
A failed or incomplete batch is a tool error; do not synthesize its output.

Args:
    texts: List of texts to translate.
    target_language: Full target language name (e.g. "French").
    target_language_code: Optional ISO language code.
    source_language: Source language name. Defaults to English.
    source_language_code: Source language code. Defaults to "en".
    context: Optional context to guide all translations.
    formality: Tone override for all translations.

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": {
      "texts": "<texts>",
      "target_language": "<target_language>"
    },
    "name": "translate_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
textsYesList of texts to translate.
contextNoOptional context to guide all translations.
formalityNoTone override for all translations.
source_languageNoSource language name. Defaults to English.English
target_languageYesFull target language name (e.g. "French").
source_language_codeNoSource language code. Defaults to "en".en
target_language_codeNoOptional ISO language code.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • addedInput schema / properties / context / description
      Added value: +"Optional context to guide all translations."
    • addedInput schema / properties / formality / description
      Added value: +"Tone override for all translations."
    • 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\")."
    • addedInput schema / properties / target_language_code / description
      Added value: +"Optional ISO language code."
    • addedInput schema / properties / texts / description
      Added value: +"List of texts to translate."
  2. First observed

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden and does substantial work: it discloses that translations draw on the team's translation memory and style guides, and that a failed or incomplete batch surfaces as a tool error that must not be synthesized. It omits operational limits that matter for a batch tool, notably any maximum item count and whether output order maps to input order.

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 opening paragraph is well front-loaded and free of filler. However, the Args section duplicates seven parameters already documented at 100% coverage in the schema, so a meaningful portion of the text does not earn its place.

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 seven-parameter, unannotated tool, the description covers purpose, alternatives, TM/style-guide behavior, and failure semantics, and an output schema handles return values. The remaining gap is batch-size limits and ordering guarantees, which an agent would still have to discover empirically.

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's parameter descriptions nearly verbatim ('List of texts to translate.', 'Source language name. Defaults to English.') and adds no format, range, or interaction detail beyond 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?

The first sentence gives a specific verb (translate), an explicit scope (multiple texts), and a constraint (a single target language), which immediately separates it from the single-text sibling 'translate'. The 'Prefer one batch over separate translate calls' line reinforces the distinction without needing to open either schema.

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?

It enumerates concrete when-to-use cases (string lists, UI labels, i18n files, subtitle cues, voiceover segments) and states the alternative it replaces (separate translate calls). It stops short of when-not-to-use guidance, such as a single string or an oversized batch, which is why it is not a 5.

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.