Skip to main content
Glama

Import strings corpus

strings_import

Import a Transept Strings corpus (.tstrings.json shape). Locales: explicit params win; with none named the corpus header target_locales apply (no locales anywhere → sync no_target_languages). A single-locale import is ONE version row carrying the corpus (language_group_id null until more locales join). Async: returns processing_job_id — poll processing_job_get. Translations the corpus carries land active and bill nothing.

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": {
      "document": "<document>"
    },
    "name": "strings_import"
  }
}

Input Schema

NameRequiredDescriptionDefault
documentYesThe .tstrings.json corpus inline, e.g. {"format":"transept-strings","version":1,"source_locale":"en","units":[{"id":"auth.title","source":"Sign in"}]}. A unit may carry targets ({"de":"Anmelden"}), which land unbilled.
project_idNoProject to file the document in (id from project_list).
target_languageNoThe master version’s target language: a language code, e.g. "de" or "zh".
target_languagesNoLanguages to produce, one version each: language codes, e.g. ["de", "fr"].
document_categoryNoCategory that tunes the prompts: general_document, legal, marketing or technical.
use_target_localesNoWith no languages passed, use the corpus header’s target_locales.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • addedInput schema / properties / document / description
      Added value: +"The .tstrings.json corpus inline, e.g. {\"format\":\"transept-strings\",\"version\":1,\"source_locale\":\"en\",\"units\":[{\"id\":\"auth.title\",\"source\":\"Sign in\"}]}. A unit may carry targets ({\"de\":\"Anmelden\"}), which land unbilled."
    • addedInput schema / properties / document_category / description
      Added value: +"Category that tunes the prompts: general_document, legal, marketing or technical."
    • addedInput schema / properties / project_id / description
      Added value: +"Project to file the document in (id from project_list)."
    • addedInput schema / properties / target_language / description
      Added value: +"The master version’s target language: a language code, e.g. \"de\" or \"zh\"."
    • addedInput schema / properties / target_languages / description
      Added value: +"Languages to produce, one version each: language codes, e.g. [\"de\", \"fr\"]."
    • addedInput schema / properties / use_target_locales / description
      Added value: +"With no languages passed, use the corpus header’s target_locales."
  2. First observed

TDQS

A4/5.0
Behavior5/5

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

Annotations only declare the non-readonly, non-destructive, non-idempotent, closed-world profile; the description goes well past that by disclosing asynchronous execution, the returned job id, the version-row shape for single-locale imports (language_group_id null), and that carried translations land active and bill nothing. Those data-model and billing facts are exactly what an agent cannot get from structured fields.

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 what is being imported, then locale precedence, then the async contract and billing note — a sensible order with no filler. Some sentences are terse to the point of shorthand ("no locales anywhere → sync no_target_languages"), costing a little readability.

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 6-parameter, nested-object, async tool with no output schema, the description covers the essentials: accepted format, locale resolution, job id and how to poll for results, and the billing/activation consequence. Minor gaps remain around failure behavior and whether project_id is optional in practice.

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; the description still adds precedence semantics the schema does not state — explicit locale params win, otherwise the corpus header target_locales applies, otherwise sync with no_target_languages. That resolves the interaction between target_language, target_languages and use_target_locales, which the schema documents only individually.

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?

States a specific verb and resource ("Import a Transept Strings corpus") and pins the accepted format with the .tstrings.json shape, so an agent knows exactly what payload belongs here. It does not contrast itself with the sibling strings_reimport, leaving the import/reimport split to be inferred.

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?

Gives an actionable post-call workflow ("Async: returns processing_job_id — poll processing_job_get") and a precedence rule for locales, which is real usage guidance. However it never says when to choose this over strings_reimport or document_create/document_add_languages, so the sibling choice is unaddressed.

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.