Skip to main content
Glama

Translate Knowledge Base Article

translate_kb_article
Destructive

Translate an article from the language it is written in into other locales, the knowledge base's main language included. Targets must be enabled on the knowledge base (any number can be). Charges workspace credits per article per target language (see get_credit_costs); if the balance can't cover every target, nothing is translated.

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": {
      "articleId": "<articleId>",
      "targetLocales": "<targetLocales>"
    },
    "name": "translate_kb_article"
  }
}

Input Schema

NameRequiredDescriptionDefault
articleIdYes
targetLocalesYesLocale codes, e.g. ['es','de']

Output Schema

NameRequiredDescriptionDefault
articleIdNo
translatedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior3/5

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

Adds genuine behavior beyond the annotations: per-article-per-locale credit cost and all-or-nothing atomicity ('if the balance can't cover every target, nothing is translated'). However, annotations declare destructiveHint=true and the description never says whether existing translations in a target locale are overwritten or preserved, which is exactly the destructive aspect an agent needs.

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?

Two sentences, both load-bearing, with the core action front-loaded and the cost/atomicity caveat trailing. No filler or restatement of the tool name.

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?

With an output schema present, return values need not be described, and the description covers the credit model, the atomic failure mode, and the 'targets must be enabled' prerequisite for a 2-param mutation. Only the overwrite semantics for pre-existing translations are 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 only 50%, yet the description compensates: it explains that targetLocales is a set of enabled locales of arbitrary size and that the KB's main language may be included as a target. articleId remains undocumented in both places, so the compensation is partial.

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?

States a specific verb and resource: 'Translate an article ... into other locales.' The resource noun ('article') inherently separates it from the translate_manual / translate_video / translate_ai_scene siblings, but the description never names an alternative or draws the boundary explicitly.

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 the real prerequisite for a successful call ('Targets must be enabled on the knowledge base') and points to get_credit_costs for pricing, which is a useful sibling routing signal. It does not say when NOT to use it, e.g. what to do for a single-locale article already translated.

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