Skip to main content
Glama

Import localization file

import_file
DestructiveIdempotent

Imports a localization file (JSON, Android XML, iOS .strings, Flutter ARB, gettext PO, PHP array, Java .properties, CSV, YAML). In the source language it creates the strings that do not exist yet; in another language it adds approved translations to existing strings with matching keys. Max 2 MB / 3000 strings per call.

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": {
      "file_name": "<file_name>",
      "content": "<content>"
    },
    "name": "import_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
contentYesFull file content as text.
projectNoProject id (from list_projects) or exact project name. Optional when connected with a project API key.
languageNoLanguage of the file. Defaults to the project source language. Language code ("es", "pt-BR") or English name ("Spanish").
file_nameYesOriginal file name; the extension helps detect the format (e.g. "en.json", "strings.xml").
category_idNoCategory for new strings. Defaults to the first category.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and readOnlyHint=false, so the safety profile is known. The description adds real value beyond that: it clarifies the mutation is partial (only missing strings are created, only matching keys get translations) and imposes concrete limits of 2 MB / 3000 strings per call. It does not cover what happens to conflicting existing translations or permission requirements, keeping it short of a 5.

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?

Two tightly packed sentences with zero filler. The core two-mode behavior is front-loaded and the size limits are stated last where a caller will still see them before calling.

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 destructive bulk import with no output schema, the description covers formats, mode semantics and limits well. The main remaining gap is what the call returns or how partial failures/duplicate keys are reported, which an agent handling a 3000-string import would want to know.

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 schema already documents all five parameters including format detection from file_name and the language/category defaults. The description reinforces format detection by listing accepted extensions, adding a small amount of meaning over the baseline of 3 without contradicting 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?

States a specific verb and resource ('Imports a localization file') and enumerates the eight supported formats. It also spells out the two distinct outcomes — creating strings in the source language versus adding approved translations in a target language — which is enough to separate it from create_strings and set_translations without opening either 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?

The source-language versus target-language conditions imply when the tool will create versus translate, which is useful guidance. However, it never names an alternative (e.g. create_strings or set_translations) or states when a caller should prefer those over a bulk file import, so routing is left to inference.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources