Skip to main content
Glama
TotersLokalise MCP Server

TotersLokalise MCP Server

by toters-eng

toterslokalise_create_keys

Create translation keys and locale-specific text from sources like Figma, keep existing values unless overwrite is set, and preview writes with dryRun.

Instructions

WRITE ACTION: create translation keys with their text, e.g. keys and strings read from a Figma design. Values are keyed by locale (use the project languages, e.g. en-US, ar-LB). Existing text is kept unless existingValues is "overwrite". New translations land as drafts in the chosen environment. Use dryRun first to preview. Writing source-language (English) text needs a credential with the source:write scope.

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": {
      "projectId": "<projectId>",
      "keys": "<keys>"
    },
    "name": "toterslokalise_create_keys"
  }
}

Input Schema

NameRequiredDescriptionDefault
keysYes
tagsNo
dryRunNo
projectIdYesLingo Rider project ID
environmentNoEnvironment slug, usually development or stagingdevelopment
existingValuesNokeep
createNamespacesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.3.0
    • changedInput schema / properties / projectId / description
      Previous value: -"TotersLokalise project ID"New value: +"Lingo Rider project ID"
  2. First observedv0.2.1

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it declares this is a write, that existing text is preserved unless existingValues is "overwrite", that new translations land as drafts in the chosen environment, and that source-language writes need an extra credential scope. It omits limits like the 2000-key cap and what the response contains, keeping it below 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?

Front-loaded with "WRITE ACTION" so the agent sees the mutation profile first. Five short sentences, each supplying distinct information (purpose, locale format, overwrite semantics, draft state, preview and auth). No filler.

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 write tool with no annotations and no output schema, the description covers the critical decision points: mutation semantics, default preservation behavior, environment targeting, preview workflow, and auth scope. Remaining gaps (tags, createNamespaces, return shape) are secondary but real.

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 only 29%, so the description must compensate. It adds real meaning for existingValues (keep vs overwrite behavior), dryRun (preview), environment (drafts land here), and the locale-keyed shape of values. It says nothing about tags, createNamespaces, or namespace, leaving several parameters undocumented in both places.

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?

"WRITE ACTION: create translation keys with their text" states a specific verb (create) and resource (translation keys) plus the payload (text). The Figma example grounds it in a concrete workflow. It doesn't explicitly distinguish itself from the import/export siblings, so it falls short of a 5.

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 actionable context: use dryRun first to preview, use the project's languages for locale codes, and note that writing source-language text requires the source:write scope. It does not name when to prefer this over the import siblings (e.g. bulk file import), leaving that inference to the agent.

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