Skip to main content
Glama

Selectively repair a single Mirak storyboard scene

mirak_repair_scene
Read-onlyIdempotent

Revise a single scene (1 to 4) in a Miracle Ads (Mirak 2.0) storyboard while keeping the other three scenes byte-identical and re-running the automated compliance preflight QA audit (3 credits). Non-persistent read-only computation: does not modify or overwrite saved workspace projects — call mirak_save_project separately to save the updated draft. Use this to improve one specific scene instead of regenerating the full blueprint with mirak_plan_ad. Returns ok, repaired blueprint and unchanged-scene verification fields, qa scorecard, studio_url, and credits.

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": {
      "brief": "<brief>",
      "scene_index": "<scene_index>",
      "action": "<action>"
    },
    "name": "mirak_repair_scene"
  }
}

Input Schema

NameRequiredDescriptionDefault
briefYesBase campaign brief used to reconstruct and revise the storyboard (required, minimum 5 characters).
actionYesTargeted revision type: sharper_hook (stronger scroll-stop), clearer_demo_proof (clearer product proof), stronger_cta (clearer call-to-action), tighter_pacing (shorter beat timing), fix_compliance (remove policy/guarantee risks), or custom (apply custom_instruction).
languageNoOutput language for the revised scene and Studio link: en (default), ht (Haitian Creole), fr (French), or es (Spanish).
scene_indexYes1-based scene number to repair (1 to 4; defaults to 1 if out of range).
custom_instructionNoOptional custom directing revision applied to that single scene (recommended when action is custom).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnlyHint/idempotent/non-destructive, so the bar is lower, yet the description adds non-obvious behavior: non-persistent computation that does not overwrite saved workspace projects, a 3-credit cost, and re-running of the compliance preflight QA audit. These are exactly the facts an agent needs before deciding to call 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?

Three dense sentences with the core action and invariant front-loaded and the persistence caveat immediately after. The first sentence is long with multiple parentheticals and could be split, but nothing is wasted.

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?

Covers action, invariants, side-effect profile, cost, follow-up save step, the alternative it replaces, and even the return fields (repaired blueprint, unchanged-scene verification, qa scorecard, studio_url, credits) despite no output schema. Nothing material is missing for a 5-parameter mutation-adjacent tool.

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%, including enum documentation for action and language, so the schema already carries the parameter burden. The description only adds the 1–4 scene range hint, which the scene_index schema also states, so it adds little beyond structured data.

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 (Revise) and resource (a single scene, 1–4, of a Mirak storyboard) plus the key invariant that the other three scenes stay byte-identical. It also names the sibling it replaces (mirak_plan_ad), so the agent can distinguish it without opening any 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?

Gives explicit when-to-use guidance: 'Use this to improve one specific scene instead of regenerating the full blueprint with mirak_plan_ad.' It also clarifies the follow-up requirement to call mirak_save_project separately for persistence, which is the main misuse risk.

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.

Resources