Skip to main content
Glama
fabkho
by fabkho

Get Missing Translations

get_missing_translations
Read-only

Identify gaps in your i18n translations by finding keys present in the reference locale but missing in target locales. Scans specific or all layers to audit i18n completeness.

Instructions

Find translation keys that exist in the reference locale but are missing in other locales. Scans a specific layer or all layers. summary.totalMissingKeys counts every missing key in the project; limit caps only how many of them are listed under missing, over the nested map flattened to one entry per locale, layer and key.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
layerNoLayer name to scope this to (e.g., "root", "app-admin"). If omitted, every layer is included. Call discover to list the layers.
limitNoMaximum number of missing keys to return. Default: 100 for a tool call, unlimited at a terminal. When the cap applies the result carries truncated: true and nextOffset — call again with offset set to that value for the next page, or narrow the request instead.
offsetNoNumber of missing keys to skip before returning any. Default: 0. Pass the nextOffset of a truncated result to continue where it stopped.
outputFileNoAbsolute path to write the full JSON output to. Only a compact summary is returned to the caller, which is what you want for a result too large to read in one piece. Example: ".i18n-reports/missing-translations.json"
projectDirNoAbsolute path to the project root. Defaults to I18N_PROJECT_DIR, then server cwd. Example: "/home/user/my-app".
targetLocalesNoLocale codes to check for missing keys (e.g., ["de", "fr", "es"]). Defaults to all locales except the reference.
referenceLocaleNoLocale code used as the source of truth (e.g., "en", "en-US"). Defaults to the project default locale.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv1.0.6
    • changedInput schema / properties / layer / description
      Previous value: -"Layer name to scan (e.g., \"root\", \"app-admin\"). If omitted, scans all layers. Call discover to discover available layers."New value: +"Layer name to scope this to (e.g., \"root\", \"app-admin\"). If omitted, every layer is included. Call discover to list the layers."
    • addedInput schema / properties / limit
      Added value: +{
      +  "description": "Maximum number of missing keys to return. Default: 100 for a tool call, unlimited at a terminal. When the cap applies the result carries truncated: true and nextOffset — call again with offset set to that value for the next page, or narrow the request instead.",
      +  "maximum": 9007199254740991,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / offset
      Added value: +{
      +  "description": "Number of missing keys to skip before returning any. Default: 0. Pass the nextOffset of a truncated result to continue where it stopped.",
      +  "maximum": 9007199254740991,
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • changedInput schema / properties / outputFile / description
      Previous value: -"Absolute path to write full JSON output. Returns only a compact summary to the caller — use this for large outputs to avoid flooding the conversation context. Example: \"/tmp/missing-translations.json\""New value: +"Absolute path to write the full JSON output to. Only a compact summary is returned to the caller, which is what you want for a result too large to read in one piece. Example: \".i18n-reports/missing-translations.json\""
    • changedInput schema / properties / projectDir / description
      Previous value: -"Absolute path to the Nuxt project root. Defaults to I18N_PROJECT_DIR, then server cwd. Example: \"/home/user/my-app\"."New value: +"Absolute path to the project root. Defaults to I18N_PROJECT_DIR, then server cwd. Example: \"/home/user/my-app\"."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "https://json-schema.org/draft/2020-12/schema",
      +  "anyOf": [
      +    {
      +      "additionalProperties": false,
      +      "properties": {
      +        "message": {
      +          "description": "The step to take next — how to continue a capped read. Present when there is one.",
      +          "type": "string"
      +        },
      +        "missing": {
      +          "additionalProperties": {
      +            "additionalProperties": {
      +              "description": "Dot-path keys of that layer.",
      +              "items": {
      +                "type": "string"
      +              },
      +              "type": "array"
      +            },
      +            "propertyNames": {
      +              "description": "Layer name.",
      +              "type": "string"
      +            },
      +            "type": "object"
      +          },
      +          "description": "Locale → layer → keys the reference locale defines and this locale does not. A locale with nothing missing is absent.",
      +          "propertyNames": {
      +            "description": "Locale code.",
      +            "type": "string"
      +          },
      +          "type": "object"
      +        },
      +        "nextOffset": {
      +          "description": "The offset to pass to continue where this result stopped. Present only when truncated.",
      +          "maximum": 9007199254740991,
      +          "minimum": -9007199254740991,
      +          "type": "integer"
      +        },
      +        "summary": {
      +          "additionalProperties": false,
      +          "description": "What was compared, and how much of it is missing. This is what comes back when the full result is diverted to a file.",
      +          "properties": {
      +            "layersScanned": {
      +              "description": "Layer names the scan covered.",
      +              "items": {
      +                "type": "string"
      +              },
      +              "type": "array"
      +            },
      +            "message": {
      +              "description": "The step to take next, as the surface the call ran on phrases it. Present when there is one.",
      +              "type": "string"
      +            },
      +            "referenceLocale": {
      +              "anyOf": [
      +                {
      +                  "description": "Locale code, e.g. \"de\".",
      +                  "type": "string"
      +                },
      +                {
      +                  "additionalProperties": false,
      +                  "properties": {
      +                    "code": {
      +                      "description": "Canonical locale code, e.g. \"en-US\". This is the spelling to pass back to another call.",
      +                      "type": "string"
      +                    },
      +                    "file": {
      +                      "description": "Locale file name, e.g. \"en-US.json\". Absent for directory-per-locale layouts such as Laravel.",
      +                      "type": "string"
      +                    },
      +                    "language": {
      +                      "description": "BCP-47 language tag, e.g. \"en-GB\". Absent when the framework config carries none.",
      +                      "type": "string"
      +                    },
      +                    "name": {
      +                      "description": "Human-readable language name, e.g. \"Deutsch\". Absent unless the framework config names one.",
      +                      "type": "string"
      +                    }
      +                  },
      +                  "required": [
      +                    "code"
      +                  ],
      +                  "type": "object"
      +                }
      +              ],
      +              "description": "The locale the missing keys were compared against."
      +            },
      +            "targetLocales": {
      +              "description": "The locales that were checked.",
      +              "items": {
      +                "anyOf": [
      +                  {
      +                    "description": "Locale code, e.g. \"de\".",
      +                    "type": "string"
      +                  },
      +                  {
      +                    "additionalProperties": false,
      +                    "properties": {
      +                      "code": {
      +                        "description": "Canonical locale code, e.g. \"en-US\". This is the spelling to pass back to another call.",
      +                        "type": "string"
      +                      },
      +                      "file": {
      +                        "description": "Locale file name, e.g. \"en-US.json\". Absent for directory-per-locale layouts such as Laravel.",
      +                        "type": "string"
      +                      },
      +                      "language": {
      +                        "description": "BCP-47 language tag, e.g. \"en-GB\". Absent when the framework config carries none.",
      +                        "type": "string"
      +                      },
      +                      "name": {
      +                        "description": "Human-readable language name, e.g. \"Deutsch\". Absent unless the framework config names one.",
      +                        "type": "string"
      +                      }
      +                    },
      +                    "required": [
      +                      "code"
      +                    ],
      +                    "type": "object"
      +                  }
      +                ],
      +                "description": "The locale, either as a bare code or resolved to its code, language tag and file."
      +              },
      +              "type": "array"
      +            },
      +            "totalMissingKeys": {
      +              "description": "Missing keys across every locale and layer. The counter the missing gate reads.",
      +              "maximum": 9007199254740991,
      +              "minimum": -9007199254740991,
      +              "type": "integer"
      +            }
      +          },
      +          "required": [
      +            "referenceLocale",
      +            "targetLocales",
      +            "layersScanned",
      +            "totalMissingKeys"
      +          ],
      +          "type": "object"
      +        },
      +        "truncated": {
      +          "description": "True when limit cut the result short. The totals still count everything.",
      +          "type": "boolean"
      +        }
      +      },
      +      "required": [
      +        "truncated",
      +        "missing",
      +        "summary"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "additionalProperties": false,
      +      "properties": {
      +        "reportFile": {
      +          "description": "Absolute path the full JSON result was written to. Read the file for the findings; the summary below is all that came back.",
      +          "type": "string"
      +        },
      +        "summary": {
      +          "additionalProperties": false,
      +          "description": "The counts from the full result, so a caller can act on them without reading the file.",
      +          "properties": {
      +            "layersScanned": {
      +              "description": "Layer names the scan covered.",
      +              "items": {
      +                "type": "string"
      +              },
      +              "type": "array"
      +            },
      +            "message": {
      +              "description": "The step to take next, as the surface the call ran on phrases it. Present when there is one.",
      +              "type": "string"
      +            },
      +            "referenceLocale": {
      +              "anyOf": [
      +                {
      +                  "description": "Locale code, e.g. \"de\".",
      +                  "type": "string"
      +                },
      +                {
      +                  "additionalProperties": false,
      +                  "properties": {
      +                    "code": {
      +                      "description": "Canonical locale code, e.g. \"en-US\". This is the spelling to pass back to another call.",
      +                      "type": "string"
      +                    },
      +                    "file": {
      +                      "description": "Locale file name, e.g. \"en-US.json\". Absent for directory-per-locale layouts such as Laravel.",
      +                      "type": "string"
      +                    },
      +                    "language": {
      +                      "description": "BCP-47 language tag, e.g. \"en-GB\". Absent when the framework config carries none.",
      +                      "type": "string"
      +                    },
      +                    "name": {
      +                      "description": "Human-readable language name, e.g. \"Deutsch\". Absent unless the framework config names one.",
      +                      "type": "string"
      +                    }
      +                  },
      +                  "required": [
      +                    "code"
      +                  ],
      +                  "type": "object"
      +                }
      +              ],
      +              "description": "The locale the missing keys were compared against."
      +            },
      +            "targetLocales": {
      +              "description": "The locales that were checked.",
      +              "items": {
      +                "anyOf": [
      +                  {
      +                    "description": "Locale code, e.g. \"de\".",
      +                    "type": "string"
      +                  },
      +                  {
      +                    "additionalProperties": false,
      +                    "properties": {
      +                      "code": {
      +                        "description": "Canonical locale code, e.g. \"en-US\". This is the spelling to pass back to another call.",
      +                        "type": "string"
      +                      },
      +                      "file": {
      +                        "description": "Locale file name, e.g. \"en-US.json\". Absent for directory-per-locale layouts such as Laravel.",
      +                        "type": "string"
      +                      },
      +                      "language": {
      +                        "description": "BCP-47 language tag, e.g. \"en-GB\". Absent when the framework config carries none.",
      +                        "type": "string"
      +                      },
      +                      "name": {
      +                        "description": "Human-readable language name, e.g. \"Deutsch\". Absent unless the framework config names one.",
      +                        "type": "string"
      +                      }
      +                    },
      +                    "required": [
      +                      "code"
      +                    ],
      +                    "type": "object"
      +                  }
      +                ],
      +                "description": "The locale, either as a bare code or resolved to its code, language tag and file."
      +              },
      +              "type": "array"
      +            },
      +            "totalMissingKeys": {
      +              "description": "Missing keys across every locale and layer. The counter the missing gate reads.",
      +              "maximum": 9007199254740991,
      +              "minimum": -9007199254740991,
      +              "type": "integer"
      +            }
      +          },
      +          "required": [
      +            "referenceLocale",
      +            "targetLocales",
      +            "layersScanned",
      +            "totalMissingKeys"
      +          ],
      +          "type": "object"
      +        }
      +      },
      +      "required": [
      +        "reportFile",
      +        "summary"
      +      ],
      +      "type": "object"
      +    }
      +  ],
      +  "type": "object"
      +}
  2. Changed2 schema fields changedv1.0.3
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedInput schema / properties / projectDir / description
      Previous value: -"Absolute path to the Nuxt project root. Defaults to server cwd. Example: \"/home/user/my-app\"."New value: +"Absolute path to the Nuxt project root. Defaults to I18N_PROJECT_DIR, then server cwd. Example: \"/home/user/my-app\"."
  3. First observedv1.0.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already establish this as a safe, local read (readOnlyHint=true, openWorldHint=false), so the bar is lower, but the description adds genuinely non-obvious behavior: summary.totalMissingKeys counts all missing keys while limit only caps what is listed, and outputFile switches to a compact summary. That is real behavioral context beyond the annotations and schema.

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?

Three sentences, front-loaded with purpose and followed by the scoping and counting semantics. The final sentence is dense but each clause carries distinct, useful information; nothing is padding.

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?

With an output schema present and full schema coverage, return values need no further explanation, and the description covers purpose, scoping, counting semantics, and the truncation contract. Only the routing against sibling discovery tools is left implicit.

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 the baseline is 3, but the description adds meaning the schema does not: it clarifies that limit bounds the listed entries rather than the computed count, and that the nested map is flattened to one entry per locale/layer/key. This disambiguates the most confusing parameter.

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 with an exact defining condition: keys present in the reference locale but absent in other locales. That precision separates it from siblings like find_undefined_keys (used-in-code but undefined) and find_orphan_keys (unused keys) without the agent needing to open any schema.

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?

It conveys scope ("Scans a specific layer or all layers") and the schema points to discover for layer names, but there is no explicit when-to-use/when-not guidance or routing against alternatives such as get_translation_status or find_undefined_keys. Usage is implied rather than stated.

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