Skip to main content
Glama

Set a product translation

upsert_product_translation
DestructiveIdempotent

Write ONE language of ONE product's translation — title, description, keywords, colour, material, pattern and its characteristics (attributes: keyed by the characteristic's name exactly as get_product returns it, each with a translated name and/or value) in that language — keeping the other languages and every field not named. A characteristic name the product does not have is refused with the list of its names. Call list_content_locales first and write only an offered language, never the base one. Use it when a marketplace publishes in another language (ebay.it reads Italian, Prom and Rozetka read uk and ru) or inspect_ebay_listings reports a title over 80 characters in the site's language. Translate the product's OWN text from get_product and add no fact it does not state; show the user the text before writing. For a product that belongs to a model the translation is the model's, so every article of it changes. Saves through the CRM's own Переклади tab operation with its version check (on CONFLICT re-read the product and retry). Idempotent. The result echoes the workspace.

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": {
      "id": "<id>",
      "locale": "<locale>"
    },
    "name": "upsert_product_translation"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe product id returned by search_products or get_product.
nameNoThe product title in this language. eBay shows at most 80 characters. An empty string clears it, so the base name publishes.
colorNoColour name.
localeYesThe language to write, as an ISO 639-1 code — for a marketplace, the site's own language (it on ebay.it, de on ebay.de, uk or ru for Prom and Rozetka).
patternNoPattern.
keywordsNoSearch keywords in this language; replaces the list.
materialNoMaterial.
attributesNoTranslated characteristics, keyed by the characteristic's BASE name exactly as the product shows it (see get_product). Each key is merged into what is stored; other characteristics and languages stay. A name the product does not have is refused.
descriptionNoThe description in this language. An empty string clears it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / locale / enum
      Previous value: -[
      -  "uk",
      -  "ru",
      -  "en",
      -  "pl",
      -  "de",
      -  "it",
      -  "fr",
      -  "es",
      -  "pt",
      -  "nl",
      -  "cs",
      -  "sk",
      -  "hu",
      -  "ro",
      -  "bg",
      -  "lt",
      -  "lv",
      -  "et",
      -  "tr"
      -]New value: +[
      +  "uk",
      +  "ru",
      +  "en",
      +  "pl",
      +  "de",
      +  "it",
      +  "fr",
      +  "es",
      +  "pt",
      +  "nl",
      +  "cs",
      +  "sk",
      +  "hu",
      +  "ro",
      +  "bg",
      +  "lt",
      +  "lv",
      +  "et",
      +  "tr",
      +  "sv"
      +]
  2. Changed1 schema field changed
    • addedInput schema / properties / attributes
      Added value: +{
      +  "additionalProperties": {
      +    "properties": {
      +      "name": {
      +        "description": "The characteristic's name in this language. An empty string clears it.",
      +        "maxLength": 160,
      +        "type": "string"
      +      },
      +      "value": {
      +        "description": "The characteristic's value in this language. An empty string clears it.",
      +        "maxLength": 500,
      +        "type": "string"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "description": "Translated characteristics, keyed by the characteristic's BASE name exactly as the product shows it (see get_product). Each key is merged into what is stored; other characteristics and languages stay. A name the product does not have is refused.",
      +  "propertyNames": {
      +    "maxLength": 160,
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  "type": "object"
      +}
  3. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations declare destructiveHint and idempotentHint, but the description adds the crucial merge semantics ('keeping the other languages and every field not named', attribute keys merged into stored values), the validation failure mode ('A characteristic name the product does not have is refused with the list of its names'), and the write path with its version check plus CONFLICT recovery. It also discloses that model-owned products propagate the translation to every article — a side effect no annotation conveys.

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?

The core action and its scoping constraint are front-loaded, and no sentence is filler — each adds a rule, a prerequisite, or a failure mode. However, it is one dense run-on paragraph with heavy parentheticals, which costs some scannability even though the information density is high.

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 9-parameter mutation with nested attributes and no output schema, the description covers merge-vs-replace semantics, validation refusal behavior, concurrency handling, idempotency, and what the result echoes. An agent could call this correctly without further research beyond the mandated list_content_locales lookup.

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 100%, so the schema already documents locale, name, attributes keys and empty-string clearing. The description reinforces the attributes keying convention ('keyed by the characteristic's name exactly as get_product returns it') but adds little beyond the schema's own wording; the 80-character eBay limit appears in both. Baseline 3 is appropriate.

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 precise verb and scope: 'Write ONE language of ONE product's translation', then enumerates the exact fields covered (title, description, keywords, colour, material, pattern, characteristics). The explicit ONE/ONE framing distinguishes it from catalog-level siblings like upsert_brand_translation and upsert_category_translation without needing their schemas.

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 concrete triggering conditions ('a marketplace publishes in another language — ebay.it reads Italian, Prom and Rozetka read uk and ru', or a title over 80 characters reported by inspect_ebay_listings) plus a hard prerequisite ('Call list_content_locales first and write only an offered language, never the base one'). It also names the read tools to pair with (get_product) and the guardrail to show the user the text before writing.

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