Skip to main content
Glama

Set translations of a string

wti_set_translations
DestructiveIdempotent

Saves a string's translation for one or more locales, including the source locale, and reports which locale saves failed due to validation errors.

Instructions

Save the translation of one string in one or more locales (the source locale included). Each locale is saved separately and the result says which ones failed, e.g. on WebTranslateIt validation errors.

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": {
      "translations": "<translations>"
    },
    "name": "wti_set_translations"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyNoExact key of the string, e.g. `booking_confirm_title`. Pass this or `string_id`.
file_idNoMaster file id (see wti_get_project). Only needed when the same key exists in several files.
string_idNoNumeric id of the string. Pass this or `key`.
minor_changeNoFor source-locale edits such as typo fixes: don't flag the other locales as 'to verify'.
translationsYes
skip_validationNoSave even if WebTranslateIt's checks (placeholders, length, …) fail.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare a non-read-only, destructive, idempotent, open-world operation; the description adds genuinely new behavior: each locale is saved independently and partial failures are reported per locale, and validation checks can cause failures. It stops short of saying outright that existing translation text for a locale is overwritten, which is the main residual gap for a destructive write.

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?

Two sentences, front-loaded with the action and scope, and the failure-reporting detail earns its place. The trailing 'e.g. on WebTranslateIt validation errors' clause is slightly loose, but overall there is little waste.

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 no output schema, the description usefully covers the return shape (which locales failed) and the partial-success model, and its mention of validation errors coheres with the skip_validation parameter. For a 6-parameter destructive write it could still be more explicit about overwrite behavior and permissions, but the essentials are present.

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 description coverage is 83%, so the schema already explains key/string_id/file_id, minor_change, skip_validation and the plural-form text object. The description adds only the 'source locale included' caveat and the per-locale failure framing, so it slightly exceeds but does not materially improve on the schema baseline.

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 ('Save the translation of one string') plus the cardinality ('one or more locales'), which lets an agent distinguish it from term-level siblings like wti_set_term_translation. It does not explicitly contrast itself with wti_update_string or wti_create_string, so sibling differentiation is only implicit.

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 situation (writing translation text for an existing string, including the source locale) but gives no explicit when-to-use vs. when-not guidance, nor does it point to an alternative tool for related tasks such as creating the string itself. Usage is inferable rather than stated.

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