Skip to main content
Glama

Create strings

create_strings
Idempotent

Adds new UI strings (up to 200 per call) in the source language, optionally with ready translations, and returns their string_id and normalized string_key. Strings whose key already exists are not duplicated: their existing id is returned. Call it whenever you add user-facing text to the code.

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": {
      "strings": "<strings>"
    },
    "name": "create_strings"
  }
}

Input Schema

NameRequiredDescriptionDefault
labelsNoLabel values for all strings in this call, by label name or id (see get_project → labels), e.g. {"JS Support": "1"}. Labels not given get the project default.
projectNoProject id (from list_projects) or exact project name. Optional when connected with a project API key.
stringsYes
category_idNoCategory id. Defaults to the first category.
source_languageNoLanguage of "text". Defaults to the project source language.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior3/5

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

Adds real value beyond annotations by disclosing key-dedup behavior (existing keys are not duplicated, their existing id is returned), which explains and reinforces idempotentHint=true. It also states return values. However, it does not cover auth needs or what happens on partial failures, so with annotations already carrying the safety profile a 3 is fair.

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, no filler, with the essential behavior and return values front-loaded. Every sentence contributes distinct information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 5-param mutation with no output schema, the description covers returns, limits, and dedup but omits failure behavior or project-resolution nuances. Adequate but with visible gaps.

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 coverage is 80%, so the schema already documents all five parameters. The description adds marginal value by noting the 200-item cap and that labels default to project default, but most parameter meaning lives in the schema, keeping the baseline at 3.

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 (adds) and resource (UI strings) plus scope constraints: source language, up to 200 per call, optional translations. This is far more informative than a tautology, though it does not explicitly name a sibling like set_translations or update_source_text for contrast.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit trigger: 'Call it whenever you add user-facing text to the code.' Clear when-to-use context, but no exclusion guidance (e.g. when to prefer set_translations or update_source_text instead).

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