Skip to main content
Glama

translate_deck

Destructive

Translates presentation decks between Russian and English while preserving slide IDs, metrics, numbers, and schema validity; preview by default or save translated JSON.

Instructions

Translate an existing deck between Russian and English while preserving slide IDs, metrics, numbers, and schema validity. Fails closed if an English translation still contains Cyrillic characters or if the LLM is unavailable. Dry-run by default: write=false returns the translated summary without writing; write=true saves decks/-<target_lang>.json (refuses overwrite unless overwrite=true).

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": {
      "deck": "<deck>",
      "target_lang": "<target_lang>"
    },
    "name": "translate_deck"
  }
}

Input Schema

NameRequiredDescriptionDefault
deckYesSource deck JSON path inside decks/ (e.g. decks/radar-pro.json)
writeNoWhen true, save decks/<base>-<target_lang>.json; when false (default), preview only
overwriteNoAllow replacing an existing translated deck when write=true (default false refuses)
target_langYesTarget language code: en or ru
offline_onlyNoWhen true, force local Ollama only and refuse cloud LLM egress

Output Schema

NameRequiredDescriptionDefault
okYes
langYes
pathYes
slugYes
slidesYes
writtenYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.12

TDQS

A3.9/5.0
Behavior3/5

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

Adds real value beyond annotations: fail-closed on residual Cyrillic characters or unavailable LLM, refusal to overwrite by default, and the exact output path. Annotations already flag destructiveHint=true and openWorldHint=true; the description fleshes out what the mutation actually does and its safeguards, though it omits auth or rate-limit context.

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?

Three dense sentences, front-loaded with purpose then safeguards then write semantics. No filler, though the third sentence packs several clauses that could be broken out for scanability.

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?

Output schema exists, so return values needn't be explained here. The description covers the mutation, failure modes, and overwrite protection for a destructive, non-idempotent tool; only permission/scope requirements are unaddressed.

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%, so the schema already documents all five parameters including write, overwrite, and offline_only. The description reinforces the write/overwrite semantics but adds nothing on offline_only beyond what the schema states, so baseline 3 is appropriate.

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 (translate), a resource (an existing deck), and a precise scope (Russian <-> English) plus invariants (preserve slide IDs, metrics, numbers, schema validity). No sibling tool performs translation, so it is intrinsically distinguishable from tools like auto_fix_deck or critique_deck.

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?

Clearly explains the default dry-run behavior and when to escalate to writing (write=true saves, write=true plus overwrite=true replaces). It doesn't explicitly name when to choose a sibling instead, but the use case is unambiguous for a translation task.

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