Skip to main content
Glama
transglot MCP server

transglot MCP server

Official
by transglot

Translate missing values with AI

translate_missing
Destructive

Starts an AI translation batch to fill missing target values and replace stale machine translations, optionally limited to specified locales or key IDs, while preserving human-edited translations.

Instructions

Start an AI translation batch that fills every MISSING target value and re-translates every STALE machine translation (one whose source text changed since), optionally restricted to given locales and/or numeric key_ids. A stale machine translation is replaced; human-edited and reviewed translations are never overwritten, stale or not. SPENDS the organization AI word quota (fails with quota-exceeded when exhausted) and conflicts with a running batch (active-batch, HTTP 409; the running batch id is in the error). Returns the queued batch immediately; poll get_batch_status with its id until the status is terminal (completed, completed_with_errors, failed, or cancelled). Requires the "manage" ability.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "translate_missing"
  }
}

Input Schema

NameRequiredDescriptionDefault
key_idsNoRestrict to these numeric key ids (from get_translation row.id); omit for all keys.
localesNoRestrict to these target locales; omit for all.

Output Schema

NameRequiredDescriptionDefault
idYes
totalYes
failedYes
statusYes
triggerYes
failuresNo
completedYes
started_atYes
finished_atYes
language_breakdownYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.7/5.0
Behavior5/5

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

Beyond destructiveHint=true, the description discloses quota consumption with the quota-exceeded failure mode, the 409 active-batch conflict including where to find the running batch id, the required 'manage' ability, and that the call returns the queued batch immediately rather than blocking. It also enumerates the terminal states to expect, removing the main ambiguity of async batch submission.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three dense sentences front-loaded with what the batch does, followed by cost/conflict semantics and then the async lifecycle. Every clause carries operative information — scope, exclusions, failure modes, permissions, follow-up — with no 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?

For an expensive, destructive, asynchronous batch operation, the description covers cost, conflicts, preservation guarantees, permissions, and post-call lifecycle; the output schema supplies the batch payload shape. Nothing an agent needs to invoke this safely is missing.

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 both parameters are already fully documented including the get_translation row.id provenance for key_ids and the omit-for-all default. The description restates that filtering is optional and combinable ('and/or') but adds no new format, limit, or interaction details, so it sits at the baseline for a fully-described schema.

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 description opens with a precise verb+resource ('Start an AI translation batch') and defines the exact two populations targeted: MISSING target values and STALE machine translations. It distinguishes this batch operation from single-record sibling tools like upsert_translation by name-checking the batch paradigm and polling flow.

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?

It states when to use it (missing values, stale MT), when the scope should be narrowed (optionally restricted to locales/key_ids), and what to do next ('poll get_batch_status with its id until terminal'). It also gives an explicit exclusion rule: human-edited and reviewed translations are never overwritten, which tells the agent when this tool is unsuitable for the desired change.

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