Skip to main content
Glama
transglot MCP server

transglot MCP server

Official
by transglot

Push (import) a translation file

push_file
Destructive

Imports a localization file into one locale: creates or updates source keys, writes target translations, and preserves human edits; merge is default, sync_removals deletes missing source keys.

Instructions

Import a localization file into one locale; pass the file content as a string (max 10 MB before JSON escaping, which can enlarge it, so a file with many non-ASCII characters may be refused below 10 MB). Formats: json_flat, json_nested, android_xml, ios_strings, ios_stringsdict, flutter_arb, laravel_php, laravel_json, xliff_12, ios_xcstrings, gettext_po, yaml, csv, xlsx, xliff_20, java_properties, resx, markdown, unity_csv, unreal_po. Pushing the SOURCE locale creates new keys and updates source values; pushing a target locale writes translations for existing keys (unknown keys are reported, never created). Values are written as human edits, but the server keeps existing human edits over pushed values and reports them as conflicts. Mode "sync_removals" (source locale only) additionally DELETES every project key missing from the file. This is destructive; the default "merge" never deletes. When the project has auto-translate on, a push may queue an AI batch (returned in batch, quota permitting; see quota_exceeded, and translation_paused for any other stop on AI spend). Optional metadata (source locale only, and not for formats that carry descriptions in the file) is a JSON sidecar of key descriptions and length ceilings keyed by key name, e.g. {"cart.title": {"description": "Cart page heading", "max_length": 40}}; null clears a field, an absent field is left alone. The result then carries a metadata block, and a warning if the server ignored the sidecar. Requires the "push" 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": {
      "format": "<format>",
      "locale": "<locale>",
      "content": "<content>"
    },
    "name": "push_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNo"merge" (default) never deletes; "sync_removals" deletes keys absent from a SOURCE-locale file.
formatYesThe file format id, e.g. "json_flat".
localeYesThe locale the file contains.
contentYesThe raw file content, exactly as it would sit on disk.
filenameNoOptional upload filename; defaults to "<locale>.<ext>".
metadataNoOptional key-metadata sidecar (JSON text, max 1 MiB): {"<key>": {"description": string|null, "max_length": integer|null}}. Source-locale push only.

Output Schema

NameRequiredDescriptionDefault
batchYes
metadataNo
warningsYes
conflictsYes
keys_createdYes
keys_deletedYes
unknown_keysYes
quota_exceededYes
source_updatedYes
translation_pausedNo
translations_writtenYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.5/5.0
Behavior5/5

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

Adds substantial behavior beyond annotations: 10 MB/JSON-escaping limit caveat, conflict handling for human edits, sync_removals deletion semantics, auto-translate batch queueing, metadata null/absent semantics, and required 'push' ability. This is exactly the kind of operational context the annotations cannot convey, and it is consistent with destructiveHint=true because deletion is scoped to sync_removals.

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-loads the core operation and size caveat, then covers behavior in a mostly efficient single paragraph. The full 20-format list duplicates the schema enum and the dense parentheticals make it harder to scan, so it is not maximally concise.

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?

Given the tool's complexity, the description is complete: it covers formats, modes, source/target behavior, deletion risk, conflict handling, auto-translate side effects, metadata, and permissions. Because an output schema exists, it does not need to document return values, and it still mentions the returned batch/metadata signals.

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

Parameters5/5

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

Schema coverage is 100%, but the description still adds meaning beyond the schema: the practical 10 MB limit and escaping caveat, source-only mode constraint, and metadata sidecar example plus null-vs-absent behavior. The format list duplicates the enum, but the operational semantics are valuable.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Starts with a specific verb and resource ('Import a localization file into one locale') and makes the bulk-file scope clear. It does not explicitly name sibling alternatives such as upsert_translation or pull_file, so the differentiation is implied rather than stated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explains source-locale vs target-locale behavior and when sync_removals applies (source locale only), with a clear destructive warning. It does not explicitly route the agent to alternatives like upsert_translation for single-key changes, so it lacks full when-to-use-vs-alternative guidance.

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