Skip to main content
Glama

Change what happens in one scene (and redraw it)

change_story_scene
Destructive

CHANGES WHAT HAPPENS IN ONE SCENE of an episode parked at frames review and redraws its opening picture from the change. You pass a PLAIN SENTENCE ('the kid should look super sad', 'move it outside at night'); aicut rewrites that scene's setting / people / action text from it and draws the new picture: ONE image generation. The change STICKS (the scene video made at fire uses it). It is the tool for 'change scene 2, X should be Y'; regenerate_story_frame draws the SAME scene again from the SAME text. CAN: change the SETTING, the ACTION and WHO IS IN FRAME. CANNOT: the SPOKEN LINES, the scene's LENGTH, or a scene pinned to a reference still (the web editor's). An ask ONLY about what somebody SAYS is REFUSED, 400 dialogue_only, nothing written or charged (an estimate_only refuses it too): say dialogue is edited in the web editor and offer a visible change. A MIXED ask applies the VISIBLE half only and the response says so: relay it, never let the user believe the line changed. You never write scene text: pass the user's words as one sentence and do not read the rewrite back. WHEN: story.stage is frames_review; scene_index is zero-based in story.frames (users count from ONE); each frame's summary and dialogue are what you check the ask against before you spend. AFTER: returns image_id (status generating), changed (which parts moved) and a report: RELAY THE report AS WRITTEN. An empty changed means NOTHING moved, whatever the new image_id suggests. This call opens its own card with the scene marked as redrawing: no show_generation, no narrating the wait. CHECK attached: false means the image is charged but will NOT replace the frame at fire: say so and redraw before firing. IF THE PICTURE FAILS OR THE ACCOUNT RUNS OUT (402) THE SCENE HAS ALREADY CHANGED (changed_text: true): it has the new beat and its old picture; regenerate_story_frame draws the new one, and you must NOT send this again (a second rewrite and picture). changed_text_unknown: true means aicut DOES NOT KNOW whether the scene changed, and neither do you: not a success, never re-send at once (it would apply twice): say it could not be confirmed, read that scene's summary in get_video, and send again only if it lacks the change. COST: one standard image at the series' RESOLVED start-frame model, the same as regenerate_story_frame (pricing.frame_regen_tokens). estimate_only: true spends nothing and changes NOTHING: pass the real change with it so a refusal (dialogue_only, a reference-built scene) comes back BEFORE you ask for a spend (best-effort; it can answer 429 utility_rate_limited). THE GO THIS ONE NEEDS: one change, one named scene, one priced ask: a complaint ('scene 3 is wrong') is a reason to ASK what should change and OFFER this with its price, never a go. Never change more scenes than named. Changing a scene 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: idempotency_key keys the PICTURE only: a reused key replays that picture, but the scene's text is rewritten again on every call, so after an unknown outcome check get_video first (see above) instead of resending.

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>",
      "change": "<change>"
    },
    "name": "change_story_scene"
  }
}

Input Schema

NameRequiredDescriptionDefault
changeYesWhat should be different, as ONE plain sentence in the user's own words. It must be VISIBLE (setting, action, who is in frame): a sentence only about what somebody SAYS is refused (`dialogue_only`).
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: 'change scene 2' is the SECOND frame).
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 / change / description
      Previous value: -"What should be different, as ONE plain sentence in the user's own words ('the kid should look super sad'). It must be VISIBLE (setting, action, who is in frame): a sentence only about what somebody SAYS is refused (`dialogue_only`). At most 600 characters."New value: +"What should be different, as ONE plain sentence in the user's own words. It must be VISIBLE (setting, action, who is in frame): a sentence only about what somebody SAYS is refused (`dialogue_only`)."
  2. Changed1 schema field changed
    • changedInput schema / properties / idempotency_key / description
      Previous value: -"Retry-safety key (IDEMPOTENCY)."New value: +"Retry key (IDEMPOTENCY)."
  3. First observed

TDQS

A4.8/5.0
Behavior5/5

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

The annotations already flag this as destructive, open-world, non-read-only, and non-idempotent; the description adds substantial operational context: it spends one standard image, charges at `pricing.frame_regen_tokens`, returns `image_id`/`changed`/`report`/`attached`, and explains failure cases like 402 with `changed_text: true` and unknown outcomes with `changed_text_unknown: true`. It also clarifies the idempotency nuance that the key only replays the picture while the scene text is rewritten on every call, which is consistent with the non-idempotent annotation rather than contradicting it.

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?

The description is long, but it is front-loaded and organized with clear sections for capability, refusals, preconditions, return behavior, cost, and idempotency. Most sentences carry necessary edge-case guidance for a costly mutation; some repetition and dense caps formatting make it less concise than a 5, but it is appropriately sized for the tool's complexity.

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?

For a high-complexity, destructive, cost-bearing tool with no output schema, the description covers the missing return semantics (`image_id`, `changed`, `report`, `attached`) and the important failure states (402 with changed text, unknown outcome, dialogue-only refusal). It also gives the agent the post-call behavior and retry guidance, so nothing critical for correct invocation appears to be missing.

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 schema already documents all five parameters. The description still adds meaning beyond the schema by explaining that `idempotency_key` keys only the picture and not the text rewrite, that `estimate_only` should carry the real `change` so a refusal arrives before spending, and that a mixed ask applies only the visible half with a response the agent must relay.

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 opens with a specific verb and resource: it changes what happens in one scene of an episode at frames_review and redraws the scene's opening picture. It explicitly distinguishes itself from `regenerate_story_frame`, which redraws the same scene from the same text, so an agent can route correctly 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?

It gives explicit preconditions (`story.stage` is `frames_review`), a zero-based indexing rule, and a concrete alternative (`regenerate_story_frame` for the same scene and text). It also states when the tool is refused (`dialogue_only`), how mixed asks behave, and that a complaint is not a go but a reason to ask and offer the priced change.

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.