Skip to main content
Glama

export_script

Compile validated DramaForgeScript JSON into production deliverables: Markdown screenplay, image and video prompts, CSV storyboard, SRT subtitles, and editing cues, optionally writing all files to a directory.

Instructions

Compile a validated DramaForgeScript JSON into production deliverables: full Markdown screenplay, copy-paste batch Image/Video Prompts, CSV storyboard, CapCut/JianYing SRT subtitles, and editing cue sheet. Optionally writes all files directly to out_dir.

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": {
      "script": "<script>"
    },
    "name": "export_script"
  }
}

Input Schema

NameRequiredDescriptionDefault
formatNoOutput format to return inline (or 'all' to return all deliverables).markdown
scriptYesValidated DramaForgeScript JSON object.
out_dirNoOptional directory path to write all 5 deliverable files on disk.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A4/5.0
Behavior3/5

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

With no annotations, the description carries full behavioral burden, and it does disclose the key side effect: files are written to disk only when out_dir is supplied, and all 5 files are written in that case. It does not state whether existing files are overwritten, whether the directory must exist, what filenames are used, or what happens on invalid input — notable gaps for a tool that touches the filesystem.

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 sentences, front-loaded with the primary action and deliverables, with the optional side effect placed last. Dense enumeration with no filler or redundant restatement of the schema.

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?

No output schema exists, and the description compensates by naming each deliverable so the agent knows what comes back inline. Remaining gaps are minor but real: the meaning of 'validated' (which sibling performs validation) and disk-write failure/overwrite semantics are not covered.

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 a 3 baseline applies, but the description genuinely adds meaning: it clarifies that format governs what is returned inline while out_dir writes 'all 5 deliverable files' regardless, a distinction the schema's per-parameter descriptions do not spell out. It leaves the nested script object's expected structure to the schema, which is reasonable given the external DramaForgeScript contract.

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 ('Compile') plus the exact input resource ('a validated DramaForgeScript JSON') and enumerates the five concrete deliverables (Markdown screenplay, prompts, CSV storyboard, SRT, cue sheet). That artifact list makes it unmistakable versus generate_script (creates scripts) and lint_script (validates them), since this is clearly the downstream export stage.

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 word 'validated' signals that a script must pass validation (presumably lint_script) before export, which is useful inference. There is no explicit when-to-use statement, no when-not guidance, and no named alternative for related tasks such as prompt-only generation.

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