Skip to main content
Glama

Create a string

wti_create_string

Adds a new string key to a WebTranslateIt master file with optional source text and translations, failing if the key already exists. Use it to register localizable strings before translating them.

Instructions

Create a new string (key) in a master file, optionally with its source text and translations. Fails if the key already exists in that file. In projects with one master file, file_id can be omitted.

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": {
      "key": "<key>"
    },
    "name": "wti_create_string"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYesKey of the new string, e.g. `home_rebook_card_title`.
labelsNoLabels, e.g. ["android", "release-5.31"].
pluralNoPlural string. Set automatically when a text is a plural object.
file_idNoMaster file to add the string to (see wti_get_project).
dev_commentNoContext for translators: where the text shows, length limits, what placeholders mean.
source_textNoText in the project's source locale.
translationsNoTranslations in other locales.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare the safety profile (readOnlyHint=false, destructiveHint=false, idempotentHint=false, openWorldHint=true), so the description's job is supplementary — and it delivers by disclosing the hard failure on duplicate keys and the conditional file_id requirement, both behaviorally significant for a create call. It does not cover permissions or the shape of the created result, 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?

Three short sentences, each carrying distinct information: what is created, the failure condition, and the file_id default. The core action is front-loaded and there is no filler or repetition of the schema.

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 7-parameter create tool with full schema documentation and no output schema, the description covers the action, the duplicate-key failure mode, and the file_id fallback — enough to invoke correctly. Minor gaps remain around what is returned on success and whether translation locales must already exist in the project.

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 a baseline of 3 applies, but the description adds a genuine semantic rule not present in the schema: file_id may be omitted when the project has a single master file. It also frames source_text and translations as optional attachments to the key, reinforcing the required/optional split beyond what the schema marks.

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?

The description states a specific verb and resource ('Create a new string (key) in a master file') and scopes it further by noting that source text and translations are optional payloads. It is clearly a creation tool, distinct from siblings like wti_update_string or wti_set_translations, though it does not name those alternatives directly.

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 supplies one concrete usage rule ('In projects with one master file, file_id can be omitted') and an implied routing signal via 'Fails if the key already exists in that file', which hints that an existing key should be handled by an update path. However, it never states when to prefer wti_update_string or wti_set_translations, so the agent must infer the alternative.

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