Skip to main content
Glama

run_batch_factory

DestructiveIdempotent

Turns one validated deck into multi-language (RU/EN) variants, 9:16 Short cutdowns, OTIO timelines, PNG covers, and a SHA-256 manifest. Runs dry-run by default; set dry_run=false to write artifacts.

Instructions

Multi-Lang Batch Factory: turn one validated source deck into multi-language variants (RU/EN), 9:16 vertical Short cutdowns, OpenTimelineIO (.otio) NLE timelines, offline 16:9 + 9:16 PNG cover cards, and a SHA-256 batch_manifest.json under work/batch//. Dry-run by default (dry_run=true). Set dry_run=false to write artifacts; optionally translate=true (requires LLM) or render=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>"
    },
    "name": "run_batch_factory"
  }
}

Input Schema

NameRequiredDescriptionDefault
deckYesPath to source deck JSON inside decks/ (e.g. decks/radar-pro.json)
langsNoTarget languages (e.g. ['ru', 'en']); defaults to source deck language
renderNoWhen dry_run=false, also run build_deck.py full MP4 renders (off by default)
dry_runNoWhen true (default), validate and return the batch plan without writing files
translateNoTranslate missing languages via translate_deck.py (fails closed if LLM key/Ollama is unavailable)
include_otioNoExport OpenTimelineIO (.otio) timelines for main and short decks
offline_onlyNoWhen translate=true, restrict translation to local Ollama only
include_shortNoGenerate 9:16 vertical Short cutdown per ready language
include_thumbnailsNoRender offline 1280x720 + 1080x1920 PNG cover cards and Remotion thumbnail props

Output Schema

NameRequiredDescriptionDefault
okYes
dry_runYes
variantsYes
artifactsYes
batch_dirYes
source_deckNo
source_langYes
source_slugYes
manifest_pathYes
artifacts_countYes
requested_langsYes
generated_at_utcNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.22

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true, and idempotentHint=true, so the safety profile is partly covered. The description adds genuine context beyond them: artifacts land under work/batch/<slug>/, and translation 'fails closed if LLM key/Ollama is unavailable'. It stops short of saying what an existing batch directory loses on a non-dry-run rerun, which is the key gap given destructiveHint=true.

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 artifact list, followed by the default/opt-in contract in a short second block — no filler. The opening sentence is very dense and would scan better as a list of artifacts, but every clause carries information.

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 nine-parameter orchestrator with full schema coverage, an output schema, and annotations present, the description supplies the essential operational facts: default dry-run, output path, and fail-closed translation. The main remaining gap is overwrite/destructive semantics on reruns, which matters given destructiveHint=true but does not block correct invocation.

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 every one of the nine parameters is already documented in the schema, including defaults and the enum for langs. The description only restates the dry_run/translate/render behavior that the schema already carries, adding no new syntax, ordering, or interaction detail; baseline 3 applies.

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?

The description names a concrete verb and resource — 'turn one validated source deck into' — then enumerates the exact outputs: RU/EN variants, 9:16 Short cutdowns, .otio timelines, PNG cover cards, and batch_manifest.json. This makes it distinguishable from single-purpose siblings such as translate_deck, make_short_cutdown, and export_otio, which each do only one of these steps.

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?

It clearly states the invocation contract (dry-run by default, set dry_run=false to write, opt in via translate=true or render=true), which is useful operational guidance. However, it never says when to choose this batching tool over calling the individual sibling tools, nor any exclusion or precondition such as validating the deck first, so guidance is implied rather than explicit.

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