Skip to main content
Glama
transglot MCP server

transglot MCP server

Official
by transglot

Add a language

add_language

Add a target language to a project with a BCP 47 tag, returning the canonical code for later calls; optionally start an AI translation run for existing strings.

Instructions

Add a target language to the project. Pass a BCP 47 tag ("de", "pt-BR", "zh-Hans"); the result carries the CANONICAL code (e.g. "pt_BR"), which is the one to use in every later call. Unless translate_now is false, it also starts an AI translation run of the existing strings into the new language, which SPENDS the organization AI word quota; the run happens only when the project translates on its own (auto_translate), whatever translate_now says, and otherwise batch_id and backfill_skipped_reason are both null. Poll get_batch_status with batch_id. A refused run does not refuse the add: the language is still added, batch_id is null and backfill_skipped_reason says why (quota_exceeded, translation_paused, nothing_to_translate). Fails with locale-rejected for an unknown code or a language the project already has, and plan-limit when the account plan has no room for another language. Each new language takes one of the language slots on the account plan (unless another project of the account already uses it), and it cannot be removed through the API, only in the transglot web UI, so do not add languages to experiment. Workspace admins are notified. Requires the "manage" ability.

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": {
      "locale": "<locale>"
    },
    "name": "add_language"
  }
}

Input Schema

NameRequiredDescriptionDefault
localeYesA BCP 47 tag, e.g. "de", "pt-BR" or "zh-Hans". Case and "-" or "_" do not matter.
translate_nowNoStart translating the existing strings into it now (default true). Spends AI word quota.

Output Schema

NameRequiredDescriptionDefault
batch_idYes
languageYes
backfill_skipped_reasonYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.8/5.0
Behavior5/5

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

Goes far beyond the annotations (which only say non-read-only, non-destructive): it discloses quota spend, the plan slot consumption, the fact that a refused backfill does not refuse the add, the specific skip reasons, the failure codes locale-rejected and plan-limit, the workspace-admin notification, and the "manage" ability requirement. Irreversibility (no API removal) is a material caveat an agent would otherwise miss, though it is additive rather than destructive so it does not contradict destructiveHint=false.

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, then the input format, then the side effects and failure modes in a logical order with no filler. Some sentences are dense and stacked (the auto_translate clause), but every clause carries operational information.

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 tool with real cost and irreversible side effects, the description covers inputs, side effects, conditional behavior, failure codes, follow-up polling, and permissions. An output schema exists, so the absence of return-shape detail is appropriate.

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 baseline is 3; the description adds genuine meaning by explaining that the canonical code returned (e.g. "pt_BR") differs from the input tag and must be used in later calls, and that translate_now is effectively ignored unless the project has auto_translate enabled. It stops short of restating the tag normalization rules, which the schema already covers.

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 ("Add a target language to the project") and implicitly contrasts with the read-only sibling list_languages. An agent can tell immediately that this mutates project configuration rather than querying it.

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?

Explicitly routes the agent: poll get_batch_status with the returned batch_id, and a direct warning "do not add languages to experiment" because removal is only possible in the web UI. It also explains the conditional interaction between translate_now and the project's auto_translate setting, which is exactly the kind of when-to-use reasoning an agent needs.

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