Skip to main content
Glama

Extract and apply translatable text

re_strings
Read-onlyIdempotent

Extracts user-facing text from Godot, Unity, RPG Maker, Ren'Py and web projects into translatable catalogs (.pot/CSV with file:line refs), then applies translations to write a translated copy without touching the source.

Instructions

Localisation: extracts user-facing text with stable ids from Godot scenes/resources and GDScript (text, tooltips, tr()), Unity YAML (m_Text, TextMeshPro) and C#, RPG Maker MV/MZ data (Show Text, choices, database names, terms), Ren'Py scripts (say, menu), web code and i18n JSON files. Writes a catalog plus .pot (gettext) and/or CSV with file:line references and placeholder hints. action:"apply" takes a translated .po/.csv/.json and writes a translated COPY of the project into out, checking placeholders and flagging strings that grew a lot. The source is never modified.

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": {
      "path": "<path>"
    },
    "name": "re_strings"
  }
}

Input Schema

NameRequiredDescriptionDefault
outNoextract: folder for the catalog/.pot/.csv (default workspace/strings). apply: new or empty folder for the translated copy.
langNoLanguage code for the output (e.g. nl).
pathYesProject folder.
limitNoEntries to return inline (default 500; the files hold all).
matchNoOnly files whose path contains this.
actionNoextract (default) or apply.
formatNoextract: json (default), po, csv or all.
translationsNoapply: translated .po, .csv (id|source + translation columns) or .json ({id|source: translation}).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.25.0

TDQS

B3/5.0
Behavior1/5

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

The description explicitly says the tool writes a catalog, .pot/CSV files, and a translated copy of the project into out, which is a filesystem mutation. The annotations declare readOnlyHint=true, so the write behavior contradicts the annotation. The description adds useful safeguards such as source preservation and placeholder checks, but the contradiction forces a 1.

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?

The description is front-loaded with the localisation purpose and uses three dense sentences with little filler. The first sentence is long but packed with supported frameworks and extraction targets. It is appropriately sized for an eight-parameter tool.

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

Completeness3/5

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

The description gives strong context on supported engines, output formats, apply behavior, and source safety. However, with no output schema, it does not explain the inline return shape or error behavior beyond mentioning files and limit entries. That leaves a meaningful completeness gap.

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 the schema already documents path, out, format, action, translations, limit, match, and lang. The description reinforces action/out/translation semantics and mentions stable ids, but it does not add much per-parameter syntax beyond the schema. 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 uses specific verbs and resources: it extracts user-facing text with stable ids and supports an apply mode that writes a translated copy. It covers supported engines and artifacts thoroughly. It does not explicitly name sibling tools such as search_strings or re_extract, so sibling differentiation is implicit 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 Guidelines3/5

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

The description distinguishes action=extract as default from action=apply and explains what apply expects, giving clear mode-level guidance. It does not state when to choose this tool over siblings like search_strings or re_extract, and it gives no explicit exclusions. Usage is therefore implied rather than fully routed.

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