Skip to main content
Glama

Start translating a repository

translate_repository
Destructive

Start translating a connected repository: the locale files on the branch are translated into the project's target languages and delivered back to the repository, by default as a pull request. Runs in the background; this call returns once the translation is queued. Refused when the organisation is out of credits, when the repository has no locale path patterns (see set_repository_patterns), or when a Workflow handles the branch. The id is connect_repository's id, or the connected repository get_project returns. 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.

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": {
      "id": "<id>"
    },
    "name": "translate_repository"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesRepository id
branchNoBranch to translate. Defaults to the primary branch (the first watched).
deliveryModeNo"pr" (default) opens a pull request; "push" commits to the branch.pr
idempotencyKeyNoMakes the start safe to retry: a repeat with the same key and arguments never starts a second translation. Use a fresh key for every translation you mean to start.

Output Schema

NameRequiredDescriptionDefault
branchYesThe branch being translated
acceptedYes

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. Added

TDQS

A4.6/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing that the run is asynchronous and the call returns once queued, that delivery defaults to a pull request, and that the call can be refused for credits, missing patterns, or an existing Workflow. The destructiveHint=true annotation is coherent with commits/PRs being written back, though the description doesn't spell out what a 'push' overwrites on the branch.

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?

Front-loaded with the action and its effect, then the async caveat, then the refusal conditions, then the id source and alternatives – a sensible information order. It is dense and sentence-heavy, with the trailing Project/Workflow routing clause reading as a run-on, but no clause is filler.

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?

An output schema exists so return values need no explanation, and the description still covers the asynchronous contract, default delivery mode, all three refusal paths, and where the required id comes from. For an open-world, destructive background trigger, nothing an agent needs before calling is missing.

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 would be 3, but the description adds real meaning by specifying that the id comes from connect_repository or from the connected repository returned by get_project. It does not add anything for idempotencyKey or deliveryMode beyond what the schema and enum already state.

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 plus the concrete effect: locale files on a branch are translated into target languages and delivered back to the repository, by default as a pull request. That effect-based framing distinguishes it from repository-level siblings like set_repository_patterns and from a files-level tool such as translate_files.

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 explicit when-not conditions (out of credits, no locale path patterns, branch already handled by a Workflow) and names the sibling to use instead in each case (set_repository_patterns). It also routes setup cases to preview_workflow_setup and set_up_workflow, and closes by stating this tool is for repositories a Project already translates.

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.