Skip to main content
Glama

Set translations

set_translations

Writes translations for one language, as unsaved changes the user reviews and saves in Xodia (the same as typing on the canvas in that language). 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 readOnly=false, destructive=false, openWorld=false; the description adds far more: writes land as unsaved changes the user reviews and saves in Xodia, new item translations default to draft, shared fields (dates, prices, images, references) are refused, and languages beyond the plan allowance are refused with plan_limit. Per-entry outcomes (set, removed, unchanged, failed with why) are disclosed so the agent knows partial success is possible.

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?

It is one dense paragraph but well ordered: purpose, then payload rules, then formatting/quality rules, then the opt-in policy. Slight cost for length and for restating the numbered-tag rule that the schema already carries, but nearly every clause carries operational information rather than filler.

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?

For a 6-parameter write tool with no output schema, the description covers everything an agent needs: what gets written and where, the unsaved/draft state, two refusal conditions, per-entry results and the retry loop, plus translation style and placeholder-safety constraints. No significant gap remains that would cause a mis-call.

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 description coverage is 100%, so the baseline is 3; the description earns above that by defining the cross-parameter routing ('entries: page texts ... never put CMS item text here') and the back-reference requirement that `text` be exactly what get_translations returned. The tag/placeholder preservation rule is repeated from the schema but framed as a translation-quality constraint rather than a format note.

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') and immediately distinguishes the two payloads it accepts: page texts via `entries` versus CMS item text via `collection` + `items`. It also names the sibling that produces the input text ('as get_translations gave it'), so an agent can tell it apart from get_translations and update_item without opening a schema.

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 an explicit when-to-use rule ('Translate only when the user asks for it... never on your own while building or editing') and an explicit when-not-to-route-here rule ('never put CMS item text here, it is translated with collection and items'). It also states the retry protocol ('fix and send only the failed ones again'), which is exactly the guidance an agent needs after a partial failure.

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