Skip to main content
Glama

Regenerate one story frame

regenerate_story_frame
Destructive

Redraws ONE scene's opening picture of an episode parked at frames review (story.stage: "frames_review"), from the scene's own text, cast and continuity references. There is no prompt argument. WHEN: the user dislikes THE PICTURE itself (hands, framing, a face that came out wrong, a failed lane). scene_index is that frame's zero-based scene_index in get_video's story.frames. If what HAPPENS in the scene is wrong, a redraw only buys another picture of the same rejected beat: use change_story_scene. AFTER: returns image_id (status generating) and a report to RELAY as written (redrawn from the existing text; what happens, who is in frame and the spoken lines are unchanged). This call opens its own card with the scene marked as redrawing: no show_generation, no narrating the wait; poll get_video only to see the outcome (the lane's regenerate entry; the frame's url is then the new image). A failed redraw keeps the old frame. CHECK attached: false means the image is charged but will NOT replace the frame at fire: say so and redraw again before firing. cast_member_ids only when the user asks who is in the frame. COST: one standard image at the series' RESOLVED start-frame model (not the model the episode was created with, and not the discounted create rate): pricing.frame_regen_tokens on the series' full list_series entry (the series_id call), or estimate_only when null. State it every time: a standing go does not cover a redraw. THE GO THIS ONE NEEDS: one redraw, one named scene, one priced ask. A complaint ('scene 3 looks off') is a reason to OFFER it, never a go; never redraw more scenes than named. A redraw is not firing. 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>",
      "scene_index": "<scene_index>"
    },
    "name": "regenerate_story_frame"
  }
}

Input Schema

NameRequiredDescriptionDefault
video_idYesThe episode's job id from `generate_story_video`.
scene_indexYesThe zero-based scene index exactly as `get_video`'s `story.frames` lists it (users count from ONE: 'redraw scene 2' is the SECOND frame).
estimate_onlyNoPrice only; creates nothing.
cast_member_idsNoCast member library ids for this redraw. Omit for the scene's own cast; `[]` for no characters.
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.8/5.0
Behavior5/5

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

Goes well past the annotations (readOnlyHint=false, destructiveHint=true) by disclosing the mutation's actual footprint: the frame is replaced at fire, a failed redraw keeps the old frame, `attached: false` means charged-but-not-replacing, and the original text/spoken lines stay unchanged. It also describes process side effects the annotations cannot express — the call opens its own card with the scene marked as redrawing, no `show_generation`, poll `get_video` for the lane's `regenerate` entry — and the token cost against the series' resolved start-frame model. Nothing here contradicts the destructive/openWorld hints; it sharpens them.

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-loads the verb, scope and precondition, and the WHEN/AFTER/CHECK/COST/GO blocks make it scannable despite its length. Some material is redundant — the token-spend warning and the `idempotency_key` pointer to server instructions repeat rules stated elsewhere, and heavy caps use dilutes emphasis — but nearly every sentence carries decision-relevant content for a costly, irreversible call.

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?

With no output schema, the description still covers the return contract (`image_id` with status `generating`, plus a `report` to relay verbatim), the failure mode, the polling path, and the pricing lookup (`pricing.frame_regen_tokens` or `estimate_only` when null). For a destructive, token-spending tool with a state-machine precondition, that is everything an agent needs before invoking it.

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 already 100%, so the baseline is 3; the description still adds real meaning, notably that `scene_index` must match `get_video`'s zero-based `story.frames` while users count from one, and that `cast_member_ids` should only be supplied when the user asks who is in the frame. It reinforces `estimate_only` as the pricing path but says little extra about `video_id` or `idempotency_key` beyond pointing at existing conventions, so it falls short of a full 5.

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 ("Redraws ONE scene's opening picture") plus the exact precondition (episode parked at `story.stage: "frames_review"`) and scope (from the scene's own text, cast and continuity references). It explicitly separates itself from the nearest sibling by naming `change_story_scene` for beat-level changes, so an agent can choose without opening either schema.

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?

Provides an explicit WHEN trigger (the user dislikes the picture itself: hands, framing, a bad face, a failed lane) and an explicit counter-case routed to another tool (wrong beat → `change_story_scene`). It also sets the go/no-go bar — a complaint is a reason to OFFER, never a go; never redraw more scenes than named — which is guidance no schema field carries.

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.