Skip to main content
Glama

docugen_translate_document

Rewrite a document in the other language ("en" or "pt") with AI, instead of generating it again. Keeps every identifier (RN-01, RF-07, DA-03, AT01...), the Markdown structure, tables, code identifiers and file paths, translates the headings and follows the project glossary (see docugen_get_project). The previous text is saved as a version "Before translation" in the History, where the user can restore it. Does not use the plan quota; at most 20 translations per hour per user, above that it answers rate_limited with the seconds to wait. Refused for documents approved or implemented (the approver approved the other text), being generated, already in that language, or while another API key has an edit session open on it. When the translation drops an identifier or comes back cut, nothing is saved and the call answers validation_error (missingIds lists the identifiers when the key can read documents). Returns the new revision; read the document again before editing it.

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": {
      "documentId": "<documentId>",
      "language": "<language>"
    },
    "name": "docugen_translate_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
languageYesTarget language: "en" or "pt"
documentIdYesDocument id

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does so well: version snapshot named "Before translation" in History, quota-free but capped at 20/hour returning rate_limited with seconds to wait, and validation_error with missingIds on dropped/cut identifiers with nothing saved. The only shortfall is that it never says what the revision payload itself looks like beyond 'the new revision'.

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?

Front-loaded with the action and the contrast to generation, then the invariants, then failure modes, then the return value. The single dense paragraph is long but nearly every clause carries distinct operational information an agent needs.

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 two-parameter mutation with no output schema and no annotations, the description supplies side effects, rate limits, refusal conditions, and error shapes. Only the returned revision's structure is left unspecified, which is a minor gap given no output schema exists.

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 coverage is 100% and both parameters are documented in the schema, so the baseline of 3 applies. The description reinforces the target-language constraint but adds no syntax, format, or edge-case meaning for documentId beyond what the schema states.

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?

States a specific verb and resource ("Rewrite a document in the other language") and immediately distinguishes itself from the sibling generate tool ("instead of generating it again"). The scope constraints (identifiers, Markdown, glossary) make the operation unmistakable.

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?

Explicitly routes agents away from regeneration and enumerates when the call is refused (approved/implemented docs, in-generation, already in target language, foreign edit session). It also points to docugen_get_project for the glossary and warns to re-read the document before editing, which is genuine when-to-use guidance.

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