Skip to main content
Glama

Translate files

translate_files

Submit one or more source files to be translated as a single job. Each file is parsed by its content (JSON — flat, nested, ARB and Chrome/WebExtension messages.json — plus PO, XLIFF 1.2 and 2.0, YAML, @wxt-dev/i18n TOML/JSON5/JSONC catalogs, Android XML, iOS xcstrings, Markdown and HTML), so pass the file as-is. Target languages default to the project's configured target languages; pass a subset to translate only some. Returns { jobId, status }. Translation runs asynchronously. This call returns immediately with a jobId; it does NOT wait for translation to finish. Call get_translation with the jobId and keep calling it until status is "completed" (or a terminal failure), then read the files. A GitHub repository with no Project is set up with preview_workflow_setup and set_up_workflow; this tool stays for a repository a Project already translates. Translating files with no repository is being retired.

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": {
      "project": "<project>",
      "files": "<files>"
    },
    "name": "translate_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
filesYesSource files to translate
projectYesProject id (UUID) or slug
targetLanguagesNoOptional target locales (subset of the project targets); defaults to all

Output Schema

NameRequiredDescriptionDefault
jobIdYesPass to get_translation to poll this job
statusYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, openWorldHint=true, destructiveHint=false), the description discloses the critical async contract: the call returns immediately with a jobId and does NOT wait for completion, requiring repeated get_translation calls until status is "completed" or a terminal failure. It also documents that target languages default to the project's configured targets and that files are parsed by content, so callers must pass them as-is.

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 text is front-loaded with the action, then the async warning, then sibling routing, which is the right order for an agent. The long parenthetical format list is dense but justified as it defines accepted inputs; a couple of clauses could be trimmed without loss.

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 a mutation-style async submission tool with an output schema, the description covers everything an agent needs: inputs accepted, defaulting behavior, immediate return shape, the polling protocol, and which sibling to use in the alternative scenario. Nothing material is omitted.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is a 3, but the description adds real meaning: it explains why files should be passed unmodified (content-based parsing across many formats) and clarifies that targetLanguages accepts a subset of the project targets. Project is left to the schema, which is acceptable given its explicit UUID-or-slug description.

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 states a specific verb and resource: submit source files to be translated as a single job. It further distinguishes itself by enumerating the parsed file formats (JSON variants, PO, XLIFF, YAML, Android XML, xcstrings, Markdown, HTML), which tells an agent exactly what input is acceptable without opening the 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?

The description explicitly routes between siblings: a repository with no Project should use preview_workflow_setup and set_up_workflow, while this tool is for a repository a Project already translates, and the no-repository case is being retired. It also names the follow-up tool (get_translation) and the polling loop condition, so both when-to-use and what-to-do-next are covered.

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.