Skip to main content
Glama

uebersetze_dokument

Destructive

Translate a Word document (docx) into another language while keeping its layout (tables, headers/footers, images, styles stay; only the text changes). Required: document_id (a docx from documents) OR storage_path (a docx path of this tenant in entity-docs, e.g. a report_path), sprache ('it'|'fr'|'en'|'de'). Optional: glossar [{quelle, ziel}] for fixed technical terms, bezug {typ, id} (e.g. {typ:'deal', id:'1000'}). The server splits the document into paragraphs and hands the job to the tenant's 'Übersetzungs-Agent' (Claude in the runner); poll get_uebersetzung(auftrag_id) — when status is 'fertig', ziel_document_id is the translated docx (title gets the language). Same document + language again returns the existing job. If you ARE the Übersetzungs-Agent, call get_uebersetzungsauftrag next and translate yourself.

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": {
      "sprache": "<sprache>"
    },
    "name": "uebersetze_dokument"
  }
}

Input Schema

NameRequiredDescriptionDefault
bezugNoRecord the translation belongs to, e.g. {typ:'deal', id:'1000'}
glossarNoFixed translations for technical terms
spracheYesLanguage code (e.g. de, en)
document_idNoID of the document
storage_pathNoAlternative to document_id: docx path of this tenant (entity-docs).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • addedInput schema / properties / bezug / description
      Added value: +"Record the translation belongs to, e.g. {typ:'deal', id:'1000'}"
    • addedInput schema / properties / bezug / properties / id / description
      Added value: +"ID of the related record"
    • addedInput schema / properties / bezug / properties / typ / description
      Added value: +"Type of the related record (e.g. deal)"
    • addedInput schema / properties / document_id / description
      Added value: +"ID of the document"
    • addedInput schema / properties / glossar / description
      Added value: +"Fixed translations for technical terms"
    • addedInput schema / properties / glossar / items / properties / quelle / description
      Added value: +"Term in the source language"
    • addedInput schema / properties / glossar / items / properties / ziel / description
      Added value: +"Required translation of the term"
    • addedInput schema / properties / sprache / description
      Added value: +"Language code (e.g. de, en)"
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations it discloses the asynchronous job model, the server-side paragraph splitting, the handoff to the tenant's Übersetzungs-Agent, the result location (ziel_document_id) and the dedup rule ('Same document + language again returns the existing job'). The dedup statement is in mild tension with idempotentHint=false, but the tool still creates a new document, so it reads as added detail rather than a contradiction; it usefully signals that a repeat call is cheap.

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?

Front-loaded with purpose and layout guarantee, then requirements, then workflow, with no filler sentences. It is a dense single block, though, and the German parameter names embedded in prose make it slower to scan than a short bulleted structure would.

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 an async, multi-step tool with nested optional objects and no output schema, the description covers everything an agent needs: inputs, the job/polling loop, the terminal status, where the result ID lives, and the special case where the caller is the translating agent. Nothing essential is left to inference.

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 would be 3, but the description adds meaning the schema lacks: the either/or relationship between document_id and storage_path (the schema only calls storage_path an 'alternative' in a property description), the concrete source of a docx ('from documents', 'entity-docs'), and an inline example for bezug. The glossar and bezug semantics are largely already in the schema, so it stops short of 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+resource ('Translate a Word document (docx) into another language') and immediately scopes the effect ('only the text changes'). It also distinguishes itself from the closely named siblings by naming the polling tool get_uebersetzung and the agent-side tool get_uebersetzungsauftrag, so an agent can pick the right one without opening 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 explicit selection rules: use document_id OR storage_path, and a clear branch ('If you ARE the Übersetzungs-Agent, call get_uebersetzungsauftrag next and translate yourself'). It also states the required follow-up action (poll get_uebersetzung until status 'fertig'), which is the kind of when-to-use guidance most definitions omit.

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.