mcp
v0.3.0Read, edit, branch, translate and QA-check Translatize translation labels from AI agents.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_project_info Get Project Info
Get an overview of the Translatize project this server is connected to: its name and id, the configured languages and the source language, the base branch the API token is bound to, the token's role, the branch scope (fixed = only the base branch is writable; create-own = the token may also create and manage its own branches), the names of the branches this token may write to, the total number of label (translation-key) records, and per-language completeness percentages. Use this first to learn which project, branch, languages and scope you are working with. Takes no arguments.
list_labels List Labels
List translation label keys on a branch, optionally filtered by namespace (a dotted key prefix, so "checkout" matches "checkout.title") and/or status. Returns each label's key, status and tags; pass include_values=true to also get the per-language translation strings. Use this to browse or enumerate keys. Values are omitted by default to keep the response small. When include_values is true and more than 300 labels match, only the first 300 are returned with a note; narrow the result using the namespace filter. Reads the token's base branch unless `branch` names another allowed branch.
| Parameter | Type | Description |
|---|---|---|
branch | string | Branch to operate on. Defaults to the token's base (bound) branch. May name any branch in the token's allowed set: its base branch, plus branches this token created (only when the token's scope is cre… |
include_values | boolean | Include the per-language translation values (defaults to false). |
namespace | string | Only keys beginning with "<namespace>." (a dotted prefix). |
status | string | Only labels carrying this exact status string. |
get_labels Get Labels
Fetch the full record (all per-language values, status and tags) for a specific set of label keys on a branch. Use this when you already know the exact keys you need, for example from list_labels or search_labels, and want their complete translations. Returns the found labels plus a not_found list of any requested keys that do not exist on the branch. Reads the token's base branch unless `branch` names another allowed branch.
| Parameter | Type | Description |
|---|---|---|
keys * | array | The exact label keys to fetch (at least one). |
branch | string | Branch to operate on. Defaults to the token's base (bound) branch. May name any branch in the token's allowed set: its base branch, plus branches this token created (only when the token's scope is cre… |
search_labels Search Labels
Case-insensitive substring search across labels on a branch. Set in='keys' to match only key names, in='values' to match only translation text, or in='both' (the default) for either. Returns matching labels with their full values, capped at 100 matches. Use this to find keys by a fragment of the key path or by the wording of an existing translation. Reads the token's base branch unless `branch` names another allowed branch.
| Parameter | Type | Description |
|---|---|---|
query * | string | The substring to look for (case-insensitive). |
branch | string | Branch to operate on. Defaults to the token's base (bound) branch. May name any branch in the token's allowed set: its base branch, plus branches this token created (only when the token's scope is cre… |
in | string | Where to search: key names, translation values, or both (default). |
upsert_label Create or Update Label
Create or update a single label on a branch (upsert by key). Provide the key plus any of values (an object of languageCode -> string), status, or tags. Every language in values must be configured on the project, or the call is rejected with unknown_languages. Returns whether the label was created or updated and its resulting stored state. Use this to add a new translation key or change an existing one. Give every NEW key its `context` (a description of the UI element, plus charLimit/location when known) so translators and the AI get it right. Writes to the token's base branch unless `branch` n…
| Parameter | Type | Description |
|---|---|---|
key * | string | The dotted label key, e.g. "checkout.pay_button". |
branch | string | Branch to operate on. Defaults to the token's base (bound) branch. May name any branch in the token's allowed set: its base branch, plus branches this token created (only when the token's scope is cre… |
context | object | Translator context (developer role or higher). AI translation and the QA length check use it. |
status | string | Optional status string to set on the label. |
tags | array | Optional tags to set on the label (developer role or higher). |
values | object | Per-language values as { languageCode: string }; only configured languages are allowed. |
upsert_labels Create or Update Labels (Batch)
Create or update many labels on a branch in one call (batched automatically, with no client-side size limit). Pass labels as an array of { key, values?, status?, tags?, context? }. Returns counts of created and updated labels plus a failed list of any individual items the server rejected (for example, an unknown language on one item). Use this instead of repeated upsert_label calls when writing more than a couple of keys, and give every new key its `context` (description, plus charLimit/location when known). Writes to the token's base branch unless `branch` names another allowed branch.
| Parameter | Type | Description |
|---|---|---|
labels * | array | The labels to create or update (at least one). |
branch | string | Branch to operate on. Defaults to the token's base (bound) branch. May name any branch in the token's allowed set: its base branch, plus branches this token created (only when the token's scope is cre… |
translation_status Translation Coverage
Report translation coverage on a branch: for every configured language, the total number of keys, how many are translated (have a non-empty value), how many are missing, and up to 50 example missing keys. Use this for a quick coverage overview; use get_missing_translations to get the actual keys and source text to translate. Reads the token's base branch unless `branch` names another allowed branch.
| Parameter | Type | Description |
|---|---|---|
branch | string | Branch to operate on. Defaults to the token's base (bound) branch. May name any branch in the token's allowed set: its base branch, plus branches this token created (only when the token's scope is cre… |
list_branches List Branches
List every branch in the project, each flagged with writable (whether this token may read/write/export it) and createdByThisToken (whether this token created it). Also returns baseBranch (the branch the token is bound to) and branchScope (fixed = only the base branch is writable; create-own = the token may additionally create branches and manage the ones it creates). Use this to see which branches exist and which you are allowed to act on before compare/merge/delete. Takes no arguments.
create_branch Create Branch
Create a new branch, forked from the token's base branch (you cannot choose a different base), then work on it by passing its name as `branch` to the label tools. Requires a create-own scoped token and the developer role or higher. A fixed-scope token fails with branch_scope_fixed; when that happens, tell the user to issue a create-own token under Project Settings -> Integrations. Name rules: 1-100 characters matching ^[a-zA-Z0-9_-]+$, and not "main". Returns the created branch. This is the typical first step of a change: create a branch, edit/translate on it, review_changes, then merge_branch…
| Parameter | Type | Description |
|---|---|---|
name * | string | New branch name: 1-100 chars matching ^[a-zA-Z0-9_-]+$, and not "main". |
description | string | Optional human-readable description (max 500 chars). |
compare_with_base Compare Branch With Base
Compare a branch (the source) against the token's base branch (the target): returns the changed, added and deleted keys, each with the differing per-language source/target values, plus a summary of counts. The branch must be in the token's allowed set. Use this to see exactly what a branch would bring into the base before merging. For a capped, human-oriented review view, use review_changes instead.
| Parameter | Type | Description |
|---|---|---|
branch * | string | The branch to compare against the base (the source of the diff). |
get_merge_conflicts Get Merge Conflicts
List the per-key, per-language merge conflicts between a branch (source) and the token's base branch (target): the cases where both sides hold a different non-empty value. Returns a flat conflicts array plus hasConflicts / conflictCount. An empty list means the branch is safe to merge with the default (overwrite) strategy. When there ARE conflicts and you want to resolve each one explicitly, use this first, then pass the resolutions to merge_branch with strategy "manual". The branch must be in the token's allowed set.
| Parameter | Type | Description |
|---|---|---|
branch * | string | The branch to check for conflicts against the base (the source). |
merge_branch Merge Branch Into Base
Merge a branch this token created back into the token's base branch (the implicit, only-allowed target). Requires a create-own token with the developer role or higher. The merge does NOT delete the source branch. Call delete_branch afterwards to clean it up. Strategies: overwrite (default; a non-destructive union where the source wins conflicts and keys only on the base are kept), keep-newer (whichever side changed more recently wins), manual (you supply per-conflict resolutions obtained from get_merge_conflicts), branch-changes (only labels created or changed on the branch since it was create…
| Parameter | Type | Description |
|---|---|---|
branch * | string | The branch to merge into the base (must be one this token created). |
conflicts | array | Per-conflict resolutions; only consulted with strategy "manual" (get them from get_merge_conflicts). |
strategy | string | Merge strategy (default overwrite). branch-changes applies only what changed on the branch. Use replace only when explicitly told; it is destructive. |
delete_branch Delete Branch
Delete a branch this token created (createdByThisToken=true in list_branches). Requires the developer role or higher. The base branch and any branch the token did not create can never be deleted; deleting them fails with not_token_branch. Use this to clean up after a successful merge_branch.
| Parameter | Type | Description |
|---|---|---|
branch * | string | The branch to delete (must be one this token created). |
reset_branch Reset Branch
DESTRUCTIVE: make a branch this token created an exact copy of another branch – the token's base by default, or another branch this token created (`from`). Every label on the branch is replaced with the source's (values, statuses, comments, context, tags) and keys the source lacks are removed; it cannot be undone. Unlike delete_branch + create_branch, the branch keeps its name and every API token bound to it keeps working. Requires the developer role or higher. The QA merge gate checks the texts it brings in, as for a merge, into the branch and can refuse it with qa_gate_blocked (tokens cann…
| Parameter | Type | Description |
|---|---|---|
branch * | string | The branch to reset (must be one this token created; never main). |
from | string | The branch to copy: the token's base or another branch this token created. Defaults to the branch's own base. |
get_missing_translations Find Missing Translations
Find labels that still need translation on a branch. For each key with at least one empty target-language value, returns { key, source: { lang, value }, missing: [languages] }, where the source language is the project's source language (see get_project_info). Optionally restrict to specific `languages` and cap the rows with `limit` (default 200); the response reports the true total and notes truncation. Use this to translate the missing values YOURSELF (works on any plan) and then write them back with upsert_labels. For server-side AI on paid plans, use auto_translate instead. Reads the token'…
| Parameter | Type | Description |
|---|---|---|
branch | string | Branch to operate on. Defaults to the token's base (bound) branch. May name any branch in the token's allowed set: its base branch, plus branches this token created (only when the token's scope is cre… |
languages | array | Restrict to these target languages; omit to check every non-source project language. |
limit | integer | Maximum rows to return (default 200). |
auto_translate Auto-Translate (Platform AI)
Trigger Translatize's PLATFORM AI to fill in missing translations on a branch as a background job. It is available only on plans that include it (professional/agency), and it is metered against the AI quota. It translates from the project's source language. Optionally scope to specific target_languages (defaults to every project language except the source), specific label_keys, and set overwrite_translated to re-translate values that already exist. Returns the started job (poll it with translation_job_status) or a no-op when nothing needs translating. If it fails with feature_not_available, th…
| Parameter | Type | Description |
|---|---|---|
branch | string | Branch to operate on. Defaults to the token's base (bound) branch. May name any branch in the token's allowed set: its base branch, plus branches this token created (only when the token's scope is cre… |
label_keys | array | Restrict to these label keys; omit to translate every label needing work. |
overwrite_translated | boolean | Re-translate values that already have a translation (default false). |
target_languages | array | Languages to translate INTO; defaults to every project language except the source. |
translation_job_status AI Translation Job Status
Report the project's current or most-recent AI translation job: its status (queued/running/completed/failed), target languages, progress counts, and (while queued) its position in the global queue. Also returns the AI quota (used / limit / remaining; a limit of -1 means unlimited). Use this to watch a job started by auto_translate, or to check the remaining quota before starting one. Takes no arguments.
set_labels_status Set Labels Status
Set the workflow status of many labels at once (draft, review, approved or rejected) WITHOUT changing their translation values. Pass the keys and the target status. Use this to mark keys as reviewed or approved as part of a review workflow. Returns the updated/created counts and any per-key failures. Writes to the token's base branch unless `branch` names another allowed branch.
| Parameter | Type | Description |
|---|---|---|
keys * | array | The label keys whose status to set (at least one). |
status * | string | The workflow status to apply to every listed key. |
branch | string | Branch to operate on. Defaults to the token's base (bound) branch. May name any branch in the token's allowed set: its base branch, plus branches this token created (only when the token's scope is cre… |
review_changes Review Branch Changes
Produce a review packet for a branch: the added and changed keys (with their new per-language values, and the previous values for changed keys), a summary of counts, the deleted keys, and a platformUrl a human can open to review on the Translatize web app. Capped at 100 keys with a truncation note. After you finish translation work on a branch, use this, then ASK THE USER whether they want to review the changes here in the conversation or on the Translatize platform (share the platformUrl). Wait for their decision, and for their approval to merge, before calling merge_branch. Defaults to the t…
| Parameter | Type | Description |
|---|---|---|
branch | string | The branch to review against the base; defaults to the token's base branch. |
set_label_context Set Label Context
Set translator context on existing keys in one batch, without touching their values: a description of which UI element the key is and where it appears, a charLimit when the UI clearly limits the length, the source location as path:line, doNotTranslate for text that stays the same in every language (product names, brands, codes), and tags. AI translation and the QA length check use this context, so give every key you create one. Only the fields you pass are sent. A key that does not exist fails with label_not_found (create it with upsert_labels first). Needs the developer role or higher. Writes…
| Parameter | Type | Description |
|---|---|---|
labels * | array | One entry per key; each needs at least one of description, charLimit, location, doNotTranslate or tags. |
branch | string | Branch to operate on. Defaults to the token's base (bound) branch. May name any branch in the token's allowed set: its base branch, plus branches this token created (only when the token's scope is cre… |
get_glossary Get Glossary
Get the project's glossary (project terms plus its workspace's): each term with its required translation per language, whether it is case-sensitive, and whether it is prohibited. A translation equal to the term means "do not translate"; a prohibited term must never appear in a translation. Read it before writing or translating copy so terminology stays consistent – the QA glossary check enforces it. Takes no arguments.
find_translation_memory Find Translation Memory
Look up earlier approved or human-edited translations of similar source texts (fuzzy, placeholder-aware). For each text, returns up to 3 matches with the stored translation, a match score (100 = exact) and its quality. Use it when translating yourself, to reuse wording the project already uses. source_lang defaults to the project's source language. Takes no branch – the memory is shared across branches.
| Parameter | Type | Description |
|---|---|---|
target_lang * | string | The language to find translations in. |
texts * | array | Source texts to look up (sent in chunks of 100). |
source_lang | string | The language of `texts`; defaults to the project's source language. |
threshold | integer | Minimum match score, 50–100 (server default 75). |
run_qa Run QA Checks
Run the rule-based QA checks on a branch now and return the result: counts per severity (error / warning / info) and the issues, each with key, language, check, code and params. Checks: placeholders, ICU syntax and plural categories, HTML tags, length vs charLimit, whitespace, untranslated, glossary, numbers and punctuation. It changes no translation. Use it after translating: fix every error (rewrite the value or fix its placeholders), run it again, then call check_merge_gate before merging. Pass `keys` to re-check only some keys. Checks the token's base branch unless `branch` names another a…
| Parameter | Type | Description |
|---|---|---|
branch | string | Branch to operate on. Defaults to the token's base (bound) branch. May name any branch in the token's allowed set: its base branch, plus branches this token created (only when the token's scope is cre… |
keys | array | Only re-check these keys. |
get_qa_issues Get QA Issues
List the stored QA issues of a branch, one page at a time, with the counts per severity. Filter by severity, key, language or source (rule = the built-in checks, ai = AI review findings). Pass nextCursor back as `cursor` for the next page. Reads the token's base branch unless `branch` names another allowed branch.
| Parameter | Type | Description |
|---|---|---|
branch | string | Branch to operate on. Defaults to the token's base (bound) branch. May name any branch in the token's allowed set: its base branch, plus branches this token created (only when the token's scope is cre… |
cursor | string | The nextCursor of the previous page. |
key | string | Only issues on this key. |
lang | string | Only issues in this target language. |
limit | integer | Page size, max 500 (default 100). |
severity | string | Only this severity. |
source | string | rule = QA checks, ai = AI review findings. |
check_merge_gate Check Merge Gate
Preview the QA merge gate for merging a branch into the token's base branch. The gate re-checks only the key × language pairs the merge would change. Returns its mode (off / warn / block), whether it applies to this target, whether it would BLOCK the merge, and the error and warning counts with the issues. When blocked, merge_branch fails with qa_gate_blocked until the errors are fixed. Pass the strategy you will give merge_branch: the pairs differ per strategy (branch-changes checks only what changed on the branch, overwrite every key that differs from the base). Call it after run_qa and bef…
| Parameter | Type | Description |
|---|---|---|
branch * | string | The branch you want to merge into the base (the source). |
strategy | string | The merge strategy to preview (default overwrite) – the same one you will pass to merge_branch. |
start_ai_review Start AI Review
Start a platform AI review of a branch's translations as a background job: each key × language pair gets a score and findings (accuracy, fluency, terminology, style, length, placeholders). Findings are warnings at most and never block a merge. Professional plan or higher, billed on its own AI review quota by the characters of target text reviewed – so scope it with `keys` / `langs` when you can. Needs the developer role. Poll ai_review_status; the findings then appear in get_qa_issues with source "ai". Errors: feature_not_available (plan), ai_review_quota_exceeded, ai_review_in_progress. Re…
| Parameter | Type | Description |
|---|---|---|
branch | string | Branch to operate on. Defaults to the token's base (bound) branch. May name any branch in the token's allowed set: its base branch, plus branches this token created (only when the token's scope is cre… |
keys | array | Only review these keys. |
langs | array | Only review these target languages. |
ai_review_status AI Review Status
Report the project's latest AI review job: status (queued / running / completed / failed), its branch, progress counts (total, reviewed, failed, issues found) and the characters billed. Returns job: null when no review has run. Takes no arguments.
list_distributions List OTA Distributions
List the project's over-the-air delivery distributions: id, name, the branch each one publishes, its format, whether it publishes all values or approved labels only, its status, the latest published version and the public manifest URL apps load strings from. Only distributions on branches this token may use are listed. Takes no arguments.
publish_release Publish OTA Release
Publish a distribution's branch to the CDN as a new version. Live apps using the Translatize OTA SDK pick it up on their next refresh, so this changes what end users see, and everything published is PUBLIC. Only call it when the user has explicitly asked to publish, and pass confirm: true – without it nothing is published. Needs the developer role, and the distribution's branch must be in the token's allowed set (otherwise branch_not_allowed). Get the id from list_distributions.
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true: confirms the user explicitly asked to publish this release to end users. |
distribution_id * | string | The distribution id from list_distributions. |
list_tasks List Tasks
List the project's translation tasks on the branches this token may use: title, status, type, branch, due date, scope and progress (how many scoped values are translated, QA-clean and approved). Open work by default. Progress is cached: `computedAt` says how fresh it is, and it is null until the first count.
| Parameter | Type | Description |
|---|---|---|
branch | string | Branch to operate on. Defaults to the token's base (bound) branch. May name any branch in the token's allowed set: its base branch, plus branches this token created (only when the token's scope is cre… |
limit | integer | How many to return. Default 50. |
status | string | open, in_progress, completed, cancelled, a comma list of those, or "all". Default: open and in_progress. |
type | string | Only tasks of this type. |
create_task Create Task
Open a task for people on the project, for example the translation task for strings you just added. Give the keys in `labels`, or a `namespace`, so its progress tracks the work, and set auto_complete to close it by itself when the values are done. Needs the developer role. It defaults to the token's base branch.
| Parameter | Type | Description |
|---|---|---|
title * | string | Short, imperative title. |
auto_complete | string | Complete the task by itself when its scope reaches this state. |
branch | string | Branch to operate on. Defaults to the token's base (bound) branch. May name any branch in the token's allowed set: its base branch, plus branches this token created (only when the token's scope is cre… |
description | string | What needs doing and why. |
due_date | string | ISO-8601 date or timestamp. |
labels | array | Label keys the task covers. |
languages | array | Languages it covers. Default: every target language. |
namespace | string | Covers every key under "<namespace>.". |
priority | string | Default medium. |
type | string | Default translate. |
complete_task Complete Task
Mark a task as completed once its work is done. Works for tasks this token's creator created or is assigned to; an admin-role token can complete any task (otherwise task_not_assigned). Completing a finished task is safe and changes nothing. Get the id from list_tasks.
| Parameter | Type | Description |
|---|---|---|
task_id * | string | The task id from list_tasks. |