Skip to main content
Glama

Render a story episode (the final file)

render_story_video
Destructive

RENDERS an AI Video Story episode into its final delivered file (stage 3 of 3), after the scene videos are done. It is composed SERVER-side from the stored episode (scenes, captions, music, title card, watermark policy); you pass only the episode id. WHEN: get_video shows succeeded or story.stage: "ready_to_render" (an episode edited in the web editor renders with those edits; a later render replaces the file). AFTER: the answer carries render_id and story.stage: "rendering"; how to wait and which url to hand over when (story.render.url once rendered, never the raw preview before): story-episode recipe, step 9. story.render.status: "failed" means it failed and was refunded: ask before rendering again. A repeat during a render answers the SAME render_id with coalesced: true: not a failure. COST: per rendered minute at the platform render rate, from the episode's own duration. estimate_only: true works only once the episode is renderable (before then it refuses and names the stage); earlier, give pricing.render_tokens_per_minute (series' full list_series entry) as a rate or a tilde figure, never as the price. THE GO THIS ONE NEEDS: a render is its own charge and ask; approving the scene videos or saying the episode looks good is not a go to render. The user must name rendering or the final file, and a bare 'yes' counts only as the direct answer to your priced render ask. SPENDS TOKENS: price with estimate_only: true, state the price in the same message as your ask, wait for a go naming THIS purchase (SPENDING RULES: get_recipe spending-rules). idempotency_key: IDEMPOTENCY (this server's instructions).

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": {
      "video_id": "<video_id>"
    },
    "name": "render_story_video"
  }
}

Input Schema

NameRequiredDescriptionDefault
video_idYesThe episode's job id from `generate_story_video`.
estimate_onlyNoPrice only; creates nothing.
idempotency_keyNoRetry key (IDEMPOTENCY).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / idempotency_key / description
      Previous value: -"Retry-safety key (IDEMPOTENCY)."New value: +"Retry key (IDEMPOTENCY)."
  2. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare destructive, non-idempotent, open-world and mutating, so the safety profile is covered; the description goes further by disclosing cost basis (per rendered minute from episode duration), refund on failed renders, file replacement on later renders, and the coalescing behavior returning the same render_id. The only mild tension is the coalescing/idempotentHint=false pairing, but it is explained rather than contradicted. The consent rules (render is its own charge and ask, bare 'yes' only as direct answer) add strong behavioral context not present in any structured field.

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 the core action, then WHEN/AFTER/COST/CONSENT blocks; every section carries distinct information and no sentence is filler. It is dense and heavy on all-caps emphasis and cross-references, which costs some readability, but the layout is scannable and purpose-first.

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

Completeness5/5

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

Despite having no output schema, it describes exactly what comes back (render_id, story.stage: "rendering", story.render.status: "failed", story.render.url once rendered) and warns against handing over the raw preview. For a costly, destructive, irreversible-spend tool, the consent and pricing guidance closes the remaining gaps.

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 the baseline is 3; the description earns more by explaining the semantics of estimate_only (works only once renderable, otherwise refuses and names the stage) and by tying idempotency_key to the server's IDEMPOTENCY instructions. video_id gains the distinction that it is the episode job id and that the composition is server-side from stored state, so nothing else need be passed.

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 ('RENDERS an AI Video Story episode into its final delivered file') and localizes it in the pipeline as stage 3 of 3, explicitly after scene videos are done. That distinguishes it cleanly from generate_story_video, generate_video, and the read-only get_video sibling without needing their schemas.

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?

Gives an explicit precondition ('WHEN: get_video shows succeeded or story.stage: "ready_to_render"'), an explicit postcondition, and routes the agent to alternatives (get_recipe story-episode step 9 for waiting/handoff, spending-rules for pricing). It also states when not to treat a repeat as failure and when estimate_only is refused.

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.