Skip to main content
Glama

Add target languages

document_add_languages
Idempotent

Add target-language sibling versions to a document (grows its language group). Idempotent — languages already in the group are skipped.

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": {
      "document_id": "<document_id>",
      "target_languages": "<target_languages>"
    },
    "name": "document_add_languages"
  }
}

Input Schema

NameRequiredDescriptionDefault
document_idYesId of one language version of a document (from document_list or document_create).
target_languagesYesLanguages to add: language codes, e.g. ["de", "fr"].

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / document_id / description
      Added value: +"Id of one language version of a document (from document_list or document_create)."
    • addedInput schema / properties / target_languages / description
      Added value: +"Languages to add: language codes, e.g. [\"de\", \"fr\"]."
  2. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and idempotentHint=true, so the safety profile is covered. The description adds concrete behavior beyond that by specifying that already-present languages are silently skipped rather than erroring, plus the group-growth side effect. However, it says nothing about what happens after the addition — whether translations are queued, whether a run must be started (run_start/run_estimate siblings exist), or what is returned per language.

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 short sentences, zero filler, with the core operation front-loaded and the skip behavior following immediately. Every clause carries information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool is simple (2 required params, full schema coverage, no output schema), so the definition is broadly sufficient to invoke it. The gap is post-invocation context: with partial skips and partial additions possible, an agent does not know whether to expect per-language results, a group reference, or a follow-up translation run.

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 both parameters are already documented (including the language-code format and the 1–20 item bounds). The description contributes only the semantic note that target_languages entries already in the group are ignored, which is marginal added meaning over the schema; baseline 3 applies.

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 gives a specific verb and resource ('Add target-language sibling versions to a document') and clarifies the effect on the parent object ('grows its language group'). It distinguishes the operation from a plain create or update by framing it as an addition to an existing group, though it does not explicitly contrast with siblings like document_create or document_update.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied: the document_id must reference an existing language version, so the tool is for extending an existing document. There is no explicit when-not guidance, no mention of prerequisites (e.g., whether translation runs must be started separately), and no named alternative for creating a document from scratch instead.

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.