Skip to main content
Glama
Hermoso

Hermoso

Official

Fix a video beat

fix_beat

Re-render one 1.5-8s video window or one film block and splice it back without changing other video or audio; use for broken shots while preserving completed parts.

Instructions

Surgically re-render ONE time window (1.5-8s) of an existing rendered video and splice it back on the VIDEO TRACK ONLY — the rest of the video and ALL audio stay byte-identical. Use when one beat/shot is broken ('the shot at 8 seconds glitches') and a full re-render would waste the parts that worked; bills only the replacement clip's seconds (~1/3 of a full render). Do NOT pick a window covering spoken dialogue (a video-only splice under speech breaks lip-sync) — pass speechWindows to enforce this. A FINISHED VIDEO-BLOCKS FILM (make_explainer's explainer or faceless channel; get_job says it is editable) is edited ONE BLOCK at a time instead: pass job (its job id) and block (1-based) or atSeconds, with prompt for a different shot and/or line for new narration words. Only that block is re-rendered and/or re-read; every other block, take, the music and the captions are the film's own and stay aligned. It is priced as that block alone and charged exactly what it quotes (dryRun). The original film is kept; a new film comes back, and it can be edited again. Feedback maps to one named move, never a re-render: quieter/louder (music db, audio_gain), faster/slower (speed; slower = zooms and pans at 0.7x), tighten (trim), retime (to a word anchor), recut (order, in-out points), regrade (timeline exposure/contrast/saturation keys).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "fix_beat"
  }
}

Input Schema

NameRequiredDescriptionDefault
jobNoa finished video-blocks film (explainer / faceless channel): its job id. Edits one block of it instead of splicing a window
lineNowith `job`: the new narration for that block, the exact words to say (said as written, never rewritten; refused for free when it cannot fit the block)
blockNowith `job`: which block, 1-based (block 3 = 20-30s of a film of 10s blocks)
dryRunNotrue = return the estimated credits this fix reserves and render nothing
promptNowhat the replacement footage should show — describe the shot, matching the master's style. With `job`: the change to that block's picture, in words
get_costNotrue: return the price only; nothing runs or bills
refImageNooptional product/style anchor image URL
videoUrlNothe served URL of the master video to fix (not needed with `job`)
atSecondsNowith `job`: the moment in the film instead of `block` ("the line at 0:12" = 12)
endSecondsNowindow end in seconds (window 1.5-8s; not needed with `job`)
startSecondsNowindow start in seconds (not needed with `job`)
speechWindowsNo[[start,end],...] windows with spoken lines — the fix window must not overlap these
idempotency_keyNochosen once, resent unchanged on retries: the same key never buys twice
expected_creditsNothe get_cost price; refused unbilled if the live price differs

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.1.532
    • addedInput schema / properties / expected_credits
      Added value: +{
      +  "description": "the get_cost price; refused unbilled if the live price differs",
      +  "type": "number"
      +}
    • addedInput schema / properties / get_cost
      Added value: +{
      +  "description": "true: return the price only; nothing runs or bills",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / idempotency_key
      Added value: +{
      +  "description": "chosen once, resent unchanged on retries: the same key never buys twice",
      +  "type": "string"
      +}
  2. Changed9 schema fields changedv0.1.519
    • addedInput schema / properties / atSeconds
      Added value: +{
      +  "description": "with `job`: the moment in the film instead of `block` (\"the line at 0:12\" = 12)",
      +  "type": "number"
      +}
    • addedInput schema / properties / block
      Added value: +{
      +  "description": "with `job`: which block, 1-based (block 3 = 20-30s of a film of 10s blocks)",
      +  "type": "number"
      +}
    • changedInput schema / properties / endSeconds / description
      Previous value: -"window end in seconds (window 1.5-8s)"New value: +"window end in seconds (window 1.5-8s; not needed with `job`)"
    • addedInput schema / properties / job
      Added value: +{
      +  "description": "a finished video-blocks film (explainer / faceless channel): its job id. Edits one block of it instead of splicing a window",
      +  "type": "string"
      +}
    • addedInput schema / properties / line
      Added value: +{
      +  "description": "with `job`: the new narration for that block, the exact words to say (said as written, never rewritten; refused for free when it cannot fit the block)",
      +  "type": "string"
      +}
    • changedInput schema / properties / prompt / description
      Previous value: -"what the replacement footage should show — describe the shot, matching the master's style"New value: +"what the replacement footage should show — describe the shot, matching the master's style. With `job`: the change to that block's picture, in words"
    • changedInput schema / properties / startSeconds / description
      Previous value: -"window start in seconds"New value: +"window start in seconds (not needed with `job`)"
    • changedInput schema / properties / videoUrl / description
      Previous value: -"the served URL of the master video to fix"New value: +"the served URL of the master video to fix (not needed with `job`)"
    • removedInput schema / required
      Removed value: -[
      -  "videoUrl",
      -  "startSeconds",
      -  "endSeconds",
      -  "prompt"
      -]
  3. Changed1 schema field changedv0.1.435
    • changedInput schema / properties / dryRun / description
      Previous value: -"true = return the exact credits this fix reserves and render nothing"New value: +"true = return the estimated credits this fix reserves and render nothing"
  4. Changed1 schema field changedv0.1.320
    • addedInput schema / properties / dryRun
      Added value: +{
      +  "description": "true = return the exact credits this fix reserves and render nothing",
      +  "type": "boolean"
      +}
  5. Changed1 schema field changedv0.1.161
    • changedOutput schema / (root)
      Previous value: -{
      -  "$schema": "http://json-schema.org/draft-07/schema#",
      -  "additionalProperties": false,
      -  "properties": {
      -    "jobId": {
      -      "description": "the render job id — poll get_job with this id to resume or inspect",
      -      "type": "string"
      -    },
      -    "model": {
      -      "anyOf": [
      -        {
      -          "type": "string"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "description": "the product-facing label of the model that rendered it"
      -    },
      -    "raw": {
      -      "description": "the raw job result payload (e.g. images[] for carousel template ads)"
      -    },
      -    "stillRendering": {
      -      "description": "true when the render is still in progress — keep polling get_job with jobId",
      -      "type": "boolean"
      -    },
      -    "url": {
      -      "anyOf": [
      -        {
      -          "type": "string"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "description": "the served URL of the finished media (absent/null while still rendering)"
      -    }
      -  },
      -  "type": "object"
      -}New value: +null
  6. Addedv0.1.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only declare readOnly=false, openWorld=true, idempotentHint=false, destructive=false; the description adds substantial context beyond that: only the replacement seconds are billed (~1/3 of a full render), the original film is preserved and a new film returns editable, `line` is refused free when it cannot fit, and dryRun/get_cost quote exactly what will be charged. It also discloses the lip-sync failure mode that motivates speechWindows, which no annotation conveys.

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 core purpose and the window constraint are front-loaded, and most sentences carry real information. The closing sentence enumerates six feedback-to-move mappings in one dense run, which is useful routing guidance but reads as a catalog appended to an already long block; a tighter structure would isolate it.

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?

For a 14-parameter, dual-mode, billed mutation with no output schema, the definition covers mode selection, cost/quotation behavior, preservation guarantees, and the speech-overlap pitfall. The remaining gap is the return payload — it says 'a new film comes back' but not what identifier or URL the caller receives, which matters for chaining into get_job.

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 parameter interaction the schema only states piecewise — `job`+`block` (with a concrete example, block 3 = 20-30s of 10s blocks) or `atSeconds` as an alternative selector, and `videoUrl`/start/end not being needed in job mode. It also gives operational meaning to `speechWindows` as the enforcement mechanism rather than just a list of ranges.

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 ('surgically re-render ONE time window (1.5-8s) of an existing rendered video and splice it back on the VIDEO TRACK ONLY') and then covers the second mode (editing one block of a finished video-blocks film). It explicitly separates itself from full re-render and names sibling pathways (make_explainer, get_job). An agent can tell what to call it for without opening the 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 an explicit trigger ('Use when one beat/shot is broken'), an explicit exclusion ('Do NOT pick a window covering spoken dialogue ... pass speechWindows'), and routes non-render feedback to alternatives (quieter/louder, faster/slower, tighten, retime, recut, regrade). The two mutually exclusive invocation modes (window splice vs. `job`+`block`/`atSeconds`) are spelled out with when to use each.

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

Deploy Server

Other Tools