Skip to main content
Glama

Set a glossary term translation

wti_set_term_translation
DestructiveIdempotent

Create or update a glossary term translation in one locale; pass translation_id when multiple translations exist, and set status only during creation.

Instructions

Create or update the translation of a glossary term in one locale. Updates the existing translation when the term has exactly one in that locale; pass translation_id when it has several. The status can only be set when the translation is created.

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": {
      "term_id": "<term_id>",
      "locale": "<locale>",
      "text": "<text>"
    },
    "name": "wti_set_term_translation"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYes
localeYesLocale code as used in the project, e.g. `de`, `fr-BE`, `pt-PT`.
statusNoproposed (default), approved or refused. Only applied when creating: WebTranslateIt's API can't change the status of an existing translation.
term_idYesTerm id from wti_search_glossary.
descriptionNo
translation_idNoTranslation to update, when the term has several in this locale.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare a mutating, destructive, idempotent operation, and the description adds the important operational constraint that status is only honored on creation and silently ignored on update. It does not explain what 'destructive' covers here (whether an existing translation's text is overwritten irreversibly), which is the main remaining behavioral gap.

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, front-loaded with the primary action, then the update rule, then the status caveat. No redundant or filler wording.

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 six-parameter mutating tool with no output schema, the description covers the action, the create/update branch, and the status constraint well. It falls short on the undocumented 'description' parameter and on what data a destructive update replaces.

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?

With 67% schema coverage, the schema already documents term_id provenance, locale format, status behavior, and translation_id disambiguation, and the description largely restates those same facts. The 'description' parameter is undocumented in both the schema and the description, so that gap is not compensated for.

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?

The description states a specific verb and resource ('Create or update the translation of a glossary term in one locale'), which separates it from term-level siblings like wti_create_term/wti_update_term and from string translation tools like wti_set_translations. It stops short of naming any sibling, but the scope is unambiguous.

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?

It gives concrete decision rules: update the existing translation when the term has exactly one in that locale, and pass translation_id to disambiguate when there are several. It omits when to prefer this over sibling tools such as wti_update_term, but the create-vs-update branching is explicit.

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