Skip to main content
Glama

translate_readme

Translate a README.md file into seven languages and write localized README..md files locally, refreshing language nav bars; return a per-language status summary, not translated text.

Instructions

Translate a README.md FILE into all 7 supported languages and WRITE the README..md files to disk (ja, zh, es, fr, hi, it, pt-BR), refreshing the language nav bar in the source and each translation. Runs entirely locally on the GPU via Ollama. Returns a STATUS SUMMARY — per-language ok/fail, timings, and the files written — not the translated text. Use this to localize a repo README; use translate_markdown instead when you want translated content returned to you.

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": {
      "readmePath": "<readmePath>"
    },
    "name": "translate_readme"
  }
}

Input Schema

NameRequiredDescriptionDefault
tierNoModel tier (default "quality"): "quality" = translategemma:27b (best, slower), "bulk" = translategemma:12b (faster — use for many files / bulk runs), "draft" = translategemma:2b (fastest, lowest quality). Ignored when `model` is set.
modelNoExplicit Ollama model — overrides `tier` (e.g. "translategemma:27b").
navBarNoInject/refresh the language nav bar in the source + translated READMEs (default: true).
languagesNoSubset of target language codes (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.
readmePathYesAbsolute path to the source README.md file to translate.
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

A4.6/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does so: it declares the mutation (writes files to disk, modifies the source README's nav bar), the execution model (entirely local, GPU via Ollama), and the return shape (status summary with per-language ok/fail, timings, files written — not the translated text). These are exactly the facts an agent needs before triggering a write-heavy multi-model job.

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 action and side effect, with the return-value caveat and the alternative routing placed where they matter. Minor waste: enumerating the seven language codes duplicates the schema default and the uppercase emphasis is heavier than needed.

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 an 8-parameter mutation tool with no output schema and no annotations, the description covers execution locality, disk writes, nav bar mutation, and the exact contents of the returned status summary. Nothing an agent needs in order to call it correctly or interpret the result is missing.

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 each of the 8 parameters (tier, model, navBar, languages, onLostSpan, onUntranslated, readmePath, concurrency) already carries a thorough enum or prose explanation. The description adds only marginal framing — the default language set and the nav bar refresh — so the baseline of 3 applies rather than a bonus for compensating detail.

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 specific verb and resource (translate a README.md file) plus the concrete side effect (writes README.<lang>.md files) and scope (7 languages, nav bar refresh). It also names the sibling it is not — translate_markdown — so an agent can separate the two without inspecting 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 Guidelines5/5

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

Gives an explicit routing rule: use this to localize a repo README, use translate_markdown when translated content should be returned to the caller. That is a when-to-use plus a named alternative with the discriminating condition, leaving nothing to inference.

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