Skip to main content
Glama

translate_all

Translate markdown content into up to 7 languages at once, running translations concurrently with GPU-safe limits. Returns per-language output with optional nav bar injection.

Instructions

Translate markdown content into multiple languages at once (default: 7 languages — Japanese, Chinese, Spanish, French, Hindi, Italian, Portuguese). Runs translations concurrently with GPU-safe semaphore limiting. Returns translated content for each language with optional nav bar injection.

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": {
      "markdown": "<markdown>"
    },
    "name": "translate_all"
  }
}

Input Schema

NameRequiredDescriptionDefault
fromNoSource language code (default: "en")
modelNoOllama model (default: "translategemma:27b")
navBarNoInject a language nav bar at the top of each output (default: true)
markdownYesThe full markdown content to translate
languagesNoTarget language codes to translate into (default: all 7 — ["ja", "zh", "es", "fr", "hi", "it", "pt"])
onLostSpanNoWhat to do when a protected span (inline code, a protected term such as XLS-30 or Kimi-K3, or an "N of M" count) is missing from a translation: "report" (default) lists it with the result, "fail" makes it an error.
concurrencyNoMax concurrent language translations (default: 2, max: 3)
onUntranslatedNoWhat to do when prose (a sentence of 6 or more words) comes back identical to the English after its one retry: "report" (default) lists it with the result, "fail" makes it an error.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.11.0

TDQS

A3.5/5.0
Behavior4/5

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

With no annotations, the description does real work: it discloses concurrent execution with GPU-safe semaphore limiting, that output is returned per language, and that a nav bar is optionally injected. It also implies a single retry via the schema's onUntranslated text. It omits cost/latency expectations for a default 7-language LLM run and whether anything is written to disk — the main gaps for a mutation-free but expensive tool.

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?

Three sentences, front-loaded with the core action and scope, then execution model, then return shape. Minimal waste; the parenthetical language list mildly duplicates the schema default but aids at-a-glance understanding.

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 an eight-parameter tool with no output schema, the description covers what is returned ('translated content for each language') and the concurrency model, which is enough to call it correctly. Missing runtime/cost expectations and any note on whether failures in one language abort the batch.

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 coverage is 100%, so all eight parameters are already documented, and the description largely restates the default language set rather than adding new meaning. It adds nothing about concurrency limits, model choice, or the two fail/report enums beyond what the schema says. Baseline 3 is appropriate.

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 description gives a specific verb and resource ('Translate markdown content') plus a clear scope modifier ('into multiple languages at once'), which implicitly separates it from the single-language siblings translate and translate_markdown. It stops short of naming those siblings, so the differentiation is inferable rather than explicit.

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?

'at once' hints that this is the batch path, but there is no statement of when to prefer this over translate or translate_markdown, and no when-not guidance (e.g. cost/latency of a 7-language run). The agent must infer the routing decision entirely from the name.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.