Skip to main content
Glama

Shipi18n

CI npm MCP ライセンス

出荷前に壊れた翻訳を検出します。 ロケールファイルのためのオープンソースのQAゲート——そして、必要に応じて、あなた自身のLLMキーで動作するi18n翻訳エンジンでもあります。

英語が Hello {{name}} と言っているのに、あなたの es.json は Hola と言っています。プレースホルダーが消え、ビルドは成功し、バグがリリースされます。Shipi18n はそれを見つけ、さらに難しい種類も見つけます。すべてのプレースホルダーを備えながら、それでも誤った内容を言っている文字列です。

shipi18n checkが欠落したプレースホルダーを検出し、その後LLMが英語では「delete」である翻訳を「will save」と訳しているのを検出する様子

実際の実行であり、モックアップではありません — docs/check-demo.tape で再現できます。

npx @shipi18n/cli check ./locales -s en

APIキー不要、アカウント不要、設定不要。欠落キー、失われたプレースホルダー、折りたたまれた複数形、空の値、未翻訳の文字列を、人間が読める出力、JSON、SARIF(GitHub PRアノテーション)、またはJUnitとして報告します。

そして、意味をチェックしたい場合は、ご自身のキーを持ち込んでください。ジャッジ機能を使用するには、CLIに加えてプロバイダーSDKが必要です:

npm i -D @shipi18n/cli @anthropic-ai/sdk       # or `openai`
export ANTHROPIC_API_KEY=sk-ant-...            # or OPENAI_API_KEY
npx shipi18n check ./locales -s en --semantic

LLMが各ペアを読み、誤訳、欠落、追加を報告します:

⚠ es  coverage 100.0%  0 error(s), 1 warning(s)
    warning  delete  semantic-mistranslation — Translation says 'will save' (guardará)
                     instead of 'will delete' (eliminará/borrará)

すべてのプレースホルダーが無傷で、すべてのキーが存在するため、構造チェックはこのファイルを通過します。バグを検出できるのは、それを読むことだけです。デフォルトではアドバイザリです — 警告はしますが、ビルドを失敗させません。

測定された結果であり、主張ではありません。 ジャッジが書かれる前にコミットされた228ペアのコーパス(60d699b)で、しきい値を先に固定した上でテスト: 植え込まれたエラー54/54を検出(100%)、正常ペアでの誤検出は12/168(7.1%)、用語集違反は6/6件見つかりました。独立した2回の実行(2026-08-16と2026-08-17)で再現され、claude-haiku-4-5、3パス、約59kトークンを156秒で処理しました。ラベルの精度は実行間で変動しました(100% → 98.1%)— モデルによるものなので、これらは定数ではなく範囲として読んでください。ハーネスは evals/semantic/ です。ご自身のモデルで実行してください。

私たちのサーバーを経由するものは何もありません。そもそもサーバーが存在しないからです。唯一のネットワーク呼び出しは、あなたのマシンから選択したプロバイダーへのものです。

パッケージ

パッケージ

説明

@shipi18n/core

エンジン: 翻訳チェック、セマンティックジャッジ、プレースホルダー検証に加え、プロバイダー非依存で構造を保持し、インクリメンタルな翻訳機能を提供。

@shipi18n/cli

CI用のshipi18n check ./locales、意味を確認する--semantic、手動編集を保護するlock、必要なときに使うtranslate。

@shipi18n/mcp

MCPサーバー — Claude Desktop、Cursor、または任意のMCPクライアントからロケールファイルをチェック、差分表示、レビューできます。検証にはAPIキーは不要です。

vite-plugin-shipi18n

ビルド時にロケールファイルを翻訳するViteプラグイン。キャッシュ付き。

shipi18n-github-action

push/PR時に翻訳を同期し続けるGitHub Action。

Related MCP server: kaeris-mcp

なぜ

翻訳の生成は解決済みの問題です。優れたツールがいくつもあり、ロケールファイルを埋めてくれます。エージェントなら無料でやってくれます。しかし、結果をチェックするものは何もありません。 あなたのCIはJavaScriptをリントし、型をチェックし、テストを実行します——そして、誰も読んでいないde.jsonを、誰も監査していないモデルが生成したまま出荷します。

既存のチェックは構造的なものだけです。キー集合の差分を調べて、そこで止まります。それで欠落キーは検出できます。しかし、すべてのキーとすべてのプレースホルダーを持ちながら、ドイツ語のユーザーに意図したことと逆のことを伝える翻訳は検出できません。

Shipi18n は、その欠けていたゲートを2つの層で提供します:

  • 決定的、オフライン、キー不要。 欠落・孤立したキー、欠落または不正なプレースホルダー({{name}}、{count}、%s、%d、%1$s、$t(...)、%{name}、HTML)、折りたたまれた複数形、空の値、未翻訳の文字列、言語ごとのカバレッジ。

  • セマンティック、自分のキーで。 変更されたキーだけを対象に、LLMをジャッジとするパスを実行します。単一パスのジャッジスコアは不安定なため、複数パスの多数決を行います。誤訳、欠落、追加を報告します。デフォルトではアドバイザリです — ビルドを失敗させるQAツールはアンインストールされてしまうからです。

さらに、日常的に使えるようにするための機能:

  • JSONを超えたフォーマット。 Flutterの.arbとAppleの.xcstringsに対応し、%@/%lld指定子も含みます。

  • CIネイティブ。 正しい終了コード、--fail-on、--min-coverage、PRアノテーション用のSARIF、JUnit。

  • 手動編集を保護。 shipi18n lock は、人間が承認した翻訳を記録し、それらを上書きするものがあれば警告します。ソースがその下で移動した場合も警告します。

  • エディタからキー不要。 MCPサーバーのバリデータはモデルを一切呼び出しません。

  • 翻訳機能も搭載。 プロバイダー非依存で、構造を保持し、インクリメンタル — AnthropicとOpenAIが同梱されており、complete(prompt)メソッドを持つ任意のオブジェクトが有効なアダプターです。

エディタからチェック — APIキー不要

@shipi18n/mcp は、チェック機能をあらゆるMCPクライアントに提供します。検証ツールはモデルを呼び出さないため、キーはまったく必要ありません:

// claude_desktop_config.json
{
  "mcpServers": {
    "shipi18n": { "command": "npx", "args": ["-y", "@shipi18n/mcp"] }
  }
}

「./locales を英語と照合して、スペイン語で何が壊れているか教えてください。」

review_locales は、キーを必要とせずにさらに進みます。翻訳ペアとレビュー基準をエージェントに渡し、エージェントは既に実行中のモデルで意味について推論します。

CIでチェック — キー不要

チェックはあらゆるソースからの翻訳に対して機能します — TMS、他のツール、エージェント、人間など。すべてのプッシュで実行してください:

npx @shipi18n/cli check ./locales -s en

欠落キー、失われたプレースホルダー、折りたたまれた複数形、空の値、未翻訳の文字列を、人間が読める出力、JSON、SARIF(GitHub PRアノテーション)、またはJUnitとして報告します。プレーンなJSONツリー、Flutterの.arbバンドル、Appleの.xcstringsカタログで動作します。決定的でオフライン: LLMもAPIキーも不要です。

手動編集された翻訳を保護

文字列を手動で修正し、ロックすると、check は、何かがそれを上書きしようとした場合、または英語側がその下で移動した場合に警告します:

npx @shipi18n/cli lock ./locales --keys 'legal.*'

.shipi18n/locks.json はハッシュのみを保存するため、コミットしても安全です。これらの検出結果は警告です — 人間の作業を保護することは、パイプラインを決してブロックしてはなりません。詳細は CLI README を参照してください。

翻訳機能も搭載

チェックはどこからの翻訳でも機能しますが、Shipi18n に翻訳の生成もさせたい場合は、それも可能です — あなたのキーとあなたのモデルを使用し、その間に何も介在しません。

npm i -D @shipi18n/cli @anthropic-ai/sdk       # or `openai`
export ANTHROPIC_API_KEY=sk-ant-...            # or OPENAI_API_KEY
npx shipi18n translate locales/en.json -t es,fr,de
✔ es → locales/es.json (2 translated, 0 reused)

またはNodeから(同じSDK要件):

import { translateJSON } from '@shipi18n/core'

const { result, stats } = await translateJSON({
  content: { greeting: 'Hello {{name}}' },
  from: 'en',
  to: 'es',
  provider: 'anthropic',        // 'anthropic' | 'openai' | custom { complete } adapter
})
// result → { greeting: 'Hola {{name}}' }

構造を保ち、プレースホルダーを安全に扱い、インクリメンタル — 新規または変更されたキーだけがモデルに送信されます。その後、同じツールで結果をチェックできます。

開発

これは pnpm + turbo のモノレポです。

pnpm install
pnpm test          # all packages
pnpm --filter @shipi18n/core test

バージョン管理はChangesetsが担当します: 追加するには pnpm changeset を実行します。

コントリビューション

Issueとプルリクエストを歓迎します — CONTRIBUTING.md を参照してください。pnpm install && pnpm test はモックアダプターに対して105件のテストを実行するため、これに取り組むのにAPIキーは必要ありません。

ライセンス

Apache-2.0 © Shipi18n。 NOTICE を参照してください。

Available Tools

8 tools
check_glossaryCheck glossary complianceA

Enforce do-not-translate terms and locked per-language translations across a locale tree. Deterministic string matching — no API key and no model call required.

ParametersJSON Schema
NameRequiredDescriptionDefault
pathYesPath to the locale tree, .arb directory, or .xcstrings file
sourceNoSource language codeen
glossaryPathYesPath to a glossary JSON file

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations provided, the description carries full responsibility. It explicitly states 'Deterministic string matching — no API key and no model call required,' which transparently explains the method and resource needs. This exceeds the minimum but could mention side effects (e.g., read-only, exit codes).

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?

The description is two concise sentences with no redundant wording. The first sentence states the core purpose, and the second clarifies the technical approach. Ideal for quick agent comprehension.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool is simple (3 params, no output schema) and the description is enough for an agent to understand its role and behavior. It does not specify return format or error handling, but for a checking tool with no output schema, this is not critical. The mention of deterministic matching covers the execution context.

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?

The schema covers all three parameters and the descriptions add useful context (e.g., 'Path to locale tree, .arb directory, or .xcstrings file' for path, 'Source language code' for source, 'Path to a glossary JSON file' for glossaryPath). Since coverage is 100% and descriptions are meaningful, this scores above baseline.

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 uses a specific verb ('enforce') and identifies the resource (glossary compliance) across a locale tree. It clearly differentiates from sibling tools like check_locales or check_placeholders, which focus on different aspects of localization.

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

Usage Guidelines3/5

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

The description implies the tool is for checking glossary terms but does not explicitly state when to prefer it over alternatives or list exclusion criteria. It could benefit from a note like 'Use when you need to validate glossary adherence rather than general locale structure.'

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

check_localesCheck locale filesA

Validate translated locale files against the source language: missing/orphaned keys, dropped or invented placeholders, collapsed plurals, empty values, untranslated copy. Deterministic — no API key and no model call required.

ParametersJSON Schema
NameRequiredDescriptionDefault
pathYesPath to the locale tree, .arb directory, or .xcstrings file
sourceNoSource language codeen
ignoreKeysNoComma-separated '*' globs of keys to silence
glossaryPathNoPath to a glossary JSON file

TDQS

A4.3/5.0
Behavior3/5

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

The description enumerates the checks performed (missing/orphaned keys, dropped/invented placeholders, collapsed plurals, empty values, untranslated copy) and states determinism, but does not specify the output format, return codes, or behavior on success/failure. Users know what it does but not exactly what they will receive.

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?

The description is a single, well-structured sentence that lists the validation checks in a clear sequence. It is concise without unnecessary detail, providing essential information in a compact form.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description gives sufficient context about the tool's function within the set of sibling tools (e.g., validation vs. diffing or reviewing), but it omits an output schema and details about error handling or return structure. Without these, users may need additional information to fully integrate the tool.

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?

All four parameters are described clearly in the schema: path indicates the locale tree/directory/file, source specifies the language code, ignoreKeys explains the glob pattern for silencing, and glossaryPath points to a JSON glossary. The descriptions fully cover the parameters with no ambiguity.

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 clearly states the tool's purpose: validating translated locale files against a source language, listing specific validation checks (missing keys, placeholders, plurals, empty values, untranslated copy). It also notes that the tool is deterministic and requires no API key or model call, reinforcing its intended use.

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?

The description implies usage by listing what it validates and noting it requires no API key or model call, which suggests it can be run offline. However, it does not explicitly state when to prefer this tool over siblings like diff_locales or review_locales, or what conditions trigger its use.

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

check_placeholdersCheck PlaceholdersA

Verify a translated string preserves all placeholders from the source (no LLM call).

ParametersJSON Schema
NameRequiredDescriptionDefault
sourceYesThe source string
translationYesThe translated string to check

TDQS

A4/5.0
Behavior3/5

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

With no annotations provided, the description carries the full burden. It correctly indicates a verification action (implying read-only), but does not disclose return format, error behavior, or placeholder syntax expectations.

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?

The description is a single, focused sentence with no redundant words. It conveys the essential function and a notable characteristic ('no LLM call') efficiently.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple verification tool, the description is mostly complete. It lacks an output schema and specifics about placeholder format, but the inputs are simple and the purpose is clear enough for an agent to use it correctly.

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 descriptions are minimal ('The source string', 'The translated string to check'), but the tool description clarifies that placeholders are the focus, giving meaningful context to both parameters. Coverage is complete.

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 clearly states the tool's purpose: verifying that a translated string preserves all placeholders from the source. The verb 'Verify' and specific object make the action unambiguous, and it is distinct from sibling tools.

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

Usage Guidelines3/5

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

The description implies usage through '(no LLM call)' suggesting a lightweight deterministic check, but it does not explicitly state when to prefer this over siblings or provide exclusions. The context is minimal.

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

diff_localesDiff locales against the sourceA

Answer "what needs translating?": per language, the keys missing from the translation and the keys present that no longer exist in the source. No API key required.

ParametersJSON Schema
NameRequiredDescriptionDefault
langNoLimit to one language
pathYesPath to the locale tree, .arb directory, or .xcstrings file
sourceNoSource language codeen

TDQS

A3.8/5.0
Behavior3/5

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

No annotations are provided, so the description must convey behavior. It discloses the output type (missing and obsolete keys per language) and notes that no API key is required, but it does not state whether the operation is read-only, whether it modifies anything, or how errors are handled. This is partial transparency.

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?

The description is concise and well-structured. It front-loads the key question ('what needs translating?') and then specifies the two output categories, followed by a short authentication note. Every sentence adds value with no redundant fluff.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's simplicity and lack of an output schema, the description provides sufficient context: it explains the output conceptually (per-language missing and obsolete keys) and mentions authentication. It does not specify the return format or edge cases, but for a diff tool this is adequate, though not exhaustive.

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% with descriptions for all three parameters. 'path' and 'source' are well-defined, but 'lang' is vague ('Limit to one language') – it does not specify if this is a target language code, a filter, or its relationship to 'source'. Overall, the descriptions add meaning beyond parameter names, but the ambiguity of 'lang' prevents a top score.

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 clearly states the tool's purpose: to answer 'what needs translating?' by listing missing keys and obsolete keys per language. This is specific and distinguishes it from general locale tools, though it doesn't explicitly name siblings. The core function is unambiguous.

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

Usage Guidelines2/5

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

No explicit guidance is given on when to use this tool versus alternatives like check_locales or review_locales. The description implies use for identifying translation gaps, but it does not state conditions, exclusions, or comparisons to sibling tools, leaving the agent to infer applicability.

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

list_languagesList LanguagesA

List the language codes and names Shipi18n recognizes (any BCP-47 code works; these have friendly names).

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

A4.3/5.0
Behavior3/5

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

With no annotations, the description carries the burden. It mentions that BCP-47 codes work and that some have friendly names, which gives a hint of behavior but doesn't disclose return format or any other constraints. For a simple list tool this is adequate but not rich.

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?

A single sentence that is front-loaded with the purpose and includes a clarifying note about BCP-47. No wasted words.

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 zero-parameter listing tool, the description is complete: it states what is returned and the scope. No output schema exists, but the description covers what an agent needs to know to call it.

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?

The tool has zero parameters, so the schema is empty. The description adds meaning by explaining that it returns recognized codes and friendly names, which compensates for the lack of parameters. Baseline for 0 params is 4, and the description maintains that.

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 clearly states the tool lists language codes and names that Shipi18n recognizes, with a specific verb and resource. It distinguishes itself from sibling tools (check, diff, review, translate) by being a listing operation.

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?

The description provides context on when to use it: to get recognized language codes and friendly names, and notes that any BCP-47 code works. It doesn't explicitly exclude alternatives, but for a list tool the usage is self-evident among the siblings.

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

review_localesGet translation pairs for semantic reviewA

Return source/translation pairs plus review criteria so YOU can judge translation quality with your own reasoning. The server performs no model call and needs no API key. Structurally broken keys are excluded — run check_locales for those.

ParametersJSON Schema
NameRequiredDescriptionDefault
langYesLanguage to review
pathYesPath to the locale tree, .arb directory, or .xcstrings file
limitNoMaximum pairs to return
sourceNoSource language codeen

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations provided, the description carries the behavioral burden and does well by disclosing that the server makes no model call, needs no API key, and excludes structurally broken keys. It also states what is returned—source/translation pairs plus review criteria—giving agents the essential behavioral context without requiring them to infer it.

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?

The description is three tight sentences, each earning its place: it states the purpose and output, discloses the no-model-call/no-API-key behavior, and routes broken-key work to check_locales. It is front-loaded and contains no filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a retrieval tool with no output schema and no annotations, the description explains what the response contains, the key behavioral constraints, and the boundary with check_locales. It leaves the exact content of 'review criteria' unspecified, but the stated purpose gives an agent enough context to call the tool correctly.

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 the baseline is 3. The description does not add parameter-specific meaning beyond what the schema already documents for path, lang, limit, and source, but that is acceptable because the schema fully covers all parameters.

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 uses a specific verb and resource: 'Return source/translation pairs plus review criteria,' and clearly states the tool's purpose—enabling semantic review of translation quality. It also differentiates from the sibling check_locales by noting that structurally broken keys are excluded.

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?

The description clearly implies when to use the tool: when an agent needs to judge translation quality using its own reasoning, with no model call or API key. It also explicitly routes structurally broken key checks to check_locales, though it does not discuss when to prefer other siblings like check_glossary or diff_locales.

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

translate_fileTranslate FileA

Read a JSON locale file from disk, translate it into one or more languages, and write .json files. Set incremental=true to reuse existing output files and only translate new/missing keys.

ParametersJSON Schema
NameRequiredDescriptionDefault
toYesTarget language code(s), comma-separated, e.g. "es,fr,de"
fromNoSource language code (default: en)
pathYesPath to the source locale JSON file, e.g. locales/en.json
modelNo
outDirNoOutput directory (default: same directory as the source file)
providerNo
incrementalNoReuse existing <lang>.json and only translate new keys

TDQS

A3.5/5.0
Behavior3/5

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

The description explains the core behavior of reading, translating, and writing, and implies overwriting by mentioning incremental mode. However, it does not mention error handling, provider selection, or output details beyond file names.

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?

The description is concise, with two sentences, and effectively communicates the main function without unnecessary detail.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description lacks context about how it relates to sibling tools like translate_json, and does not specify the provider/model usage or potential side effects, making it incomplete for full context.

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?

Most parameters have descriptions (5 out of 7), but 'model' and 'provider' lack descriptions. The provider has an enum, but model is completely unspecified, leaving ambiguity.

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 clearly states the tool reads a JSON locale file, translates it, and writes output files, which is specific and distinct from potential sibling tools like translate_json.

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

Usage Guidelines2/5

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

The description gives a tip about using incremental=true but does not explicitly state when to choose this tool over siblings like translate_json, so guidance is minimal.

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

translate_jsonTranslate JSONA

Translate an i18n locale JSON object to one or more target languages, preserving structure and placeholders. Requires your own LLM key (ANTHROPIC_API_KEY/OPENAI_API_KEY). For key-free work use the validation tools. Legacy: the MCP client's model via sampling.

ParametersJSON Schema
NameRequiredDescriptionDefault
toYesTarget language code(s), comma-separated, e.g. "es,fr,de"
fromNoSource language code (default: en)
modelNoOverride the provider default model
contentYesThe source locale as a JSON string, e.g. {"greeting":"Hello {{name}}"}
providerNoForce a provider: anthropic or openai. Omit to auto-detect from the environment.

TDQS

A4.1/5.0
Behavior3/5

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

Without annotations, the description provides some behavioral insight (preserving structure/placeholders, using external LLM keys, legacy mode) but does not explicitly state whether the operation is read-only or has side effects. It implies a translation action but lacks a clear safety profile.

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?

The description is three sentences, each providing useful information: core functionality, key requirement, and legacy behavior. It is fairly concise but the legacy note adds a slight layer of complexity that could be separated or clarified.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description gives context about the tool's purpose, prerequisites, and alternatives. It does not describe output format or error scenarios, but for a translation tool these are not essential for basic usage and the schema covers parameter specifics.

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?

The schema already provides 100% coverage with descriptions for all five parameters, so the description adds little beyond what is already known. It mentions 'target languages' and 'source locale' but doesn't elaborate on each parameter's meaning or constraints beyond the 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 clearly states the tool's function: translating an i18n locale JSON object to one or more target languages while preserving structure and placeholders. It also distinguishes itself from validation tools and mentions legacy behavior, giving a full picture of its purpose.

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 explicitly states the requirement for an LLM key, directs users to validation tools for key-free work, and mentions legacy mode. This gives clear guidance on when to use this tool versus alternatives.

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

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 8 tool updatesv0.1.0
    • First observedcheck_glossary
    • First observedcheck_locales
    • First observedcheck_placeholders
    • First observeddiff_locales
    • First observedlist_languages
    • First observedreview_locales
    • First observedtranslate_file
    • First observedtranslate_json

TDQS

A4.2/5.0

Scored across 8 tools

Disambiguation4/5

Tools are mostly distinct, but translate_json and translate_file overlap in purpose, and check_locales/diff_locales/review_locales cover related validation concerns that could occasionally be confused.

Naming Consistency5/5

All tools follow a clear verb_noun pattern (check_, diff_, review_, translate_, list_), with consistent and descriptive naming throughout.

Tool Count5/5

Eight tools is a reasonable, focused set for an i18n workflow, covering validation, diffing, translation, glossary, and language listing without feeling bloated.

Completeness5/5

The toolset covers the core i18n lifecycle: listing languages, translating JSON/files, validating structure, checking glossaries, identifying missing keys, and reviewing translation quality. No major gaps are apparent.

Maintenance

ActivityActive
ResponsivenessSlow

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    B
    maintenance
    AI localization from your editor — translate an app's string files into 46 languages with placeholder-safe, reproducible output. Eleven formats (JSON, .arb, .po, .strings, Android XML and more), and every translation is read back and checked before it lands.
    7
    MIT
  • A
    license
    Not graded
    quality
    B
    maintenance
    Enables deterministic linting of locale files across JSON, Laravel PHP, gettext, and YAML, with no LLM or network, verifying translations for missing keys, placeholders, plural forms, glossary consistency, and stale entries.
    10 npm
    MIT
  • A
    license
    A
    quality
    C
    maintenance
    Enables comparing local JSON/YAML locale files to find missing or extra keys against a base locale, detect empty, null, or whitespace translations, and list flattened dot-path keys for a single file. Works entirely on local files with no network calls or translation APIs.
    3
    MIT