Skip to main content
Glama

Set translations

set_translations
Destructive

Writes translations for one language, the same as typing on the canvas in that language. Saved at once, like every edit in Xodia; pushing to Git and publishing stay the user's. entries: page texts, each { text, value } with text exactly as get_translations gave it and value the translation ("" removes one); never put CMS item text here, it is translated with collection and items. collection with items: each item's translatable fields, its publish state in this language and its translated slug, written to the item's translation file; shared fields (dates, prices, images, references) are refused because they are the same in every language. Keep every numbered tag (<0>...</0>, <1/>) around the words it formats and every {0} {1} number placeholder exactly as in the text; translate the words between them. Translate for a website: natural wording, the brand and product names as they are, the site's tone. Each entry and item gets its own result (set, removed, unchanged or failed with why): fix and send only the failed ones again. Translate only when the user asks for it (a Translate with your AI request, or their own words); never on your own while building or editing. Languages past the site's allowance are refused (plan_limit).

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": {
      "locale": "<locale>",
      "projectId": "<projectId>"
    },
    "name": "set_translations"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemsNoCMS item translations, up to 25 a call
branchNoOptional branch; default the branch the workspace has open
localeYesA language code from list_locales (not the default language)
entriesNoPage texts (not CMS text), up to 100 a call
projectIdYesProject id from list_projects
collectionNoWith items: the collection the items are in

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only say readOnlyHint=false and destructiveHint=true; the description goes well beyond by stating edits are saved at once while pushing to Git and publishing remain the user's, that '' removes a translation, that shared fields are refused, and that languages over the site allowance return plan_limit. The per-entry result contract (set/removed/unchanged/failed with reason, retry only failures) is exactly the kind of partial-success behavior an agent cannot infer from annotations.

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?

Core operation is front-loaded and nearly every sentence carries operational content (limits, refusal reasons, retry strategy). The mid-section is a dense semicolon-chained block with no visual structure, making the entry/item distinction harder to scan than it needs to be, and some phrasing duplicates the schema descriptions.

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

Completeness5/5

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

A complex dual-mode mutation with six parameters, no output schema, and per-element outcomes — yet the description covers persistence semantics, the deploy boundary, refusal cases, failure recovery, and the translation quality bar. Nothing an agent needs to invoke it correctly or interpret results is missing.

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 baseline is 3, and the description adds real meaning on top: the placeholder/tag preservation contract ('keep every numbered tag ... and every {0} {1} number placeholder') and the page-vs-CMS split governing entries vs items/collection. It largely restates the schema's own 'exactly as get_translations gave it' wording, which caps it below a 5.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb and resource ('Writes translations for one language') plus an analogy ('the same as typing on the canvas in that language') that pins down scope immediately. It then splits the two write modes — page 'entries' vs CMS 'collection with items' — which is exactly the distinction an agent needs to pick correctly against siblings like get_translations.

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

Usage Guidelines5/5

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

Gives explicit routing rules ('never put CMS item text here, it is translated with collection and items') and an explicit prohibition ('Translate only when the user asks for it ... never on your own while building or editing'). It also states the read-side dependency on get_translations for the source text, so the when-and-how is fully determined.

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