Skip to main content
Glama

render_edit

Build an edit from a recipe as a job and check its result before publishing the finished video.

Instructions

Build an edit from a recipe, as a job, and check it. First version: recipe={name, cut} (cut = rough_cut's cut) plus what you need: frame {shape '9:16'|'16:9'|'1:1'|'4:5'|'source', crop}, over (picture layers: alpha graphics or b-roll, with at/in/out), music and sfx (file, at, gain_db), steps (commands that make the layers, run in _edit//), cover (a thumbnail). Next version: base= and changes (a JSON merge patch on the newest recipe; a list replaces the whole list; {"name": "hook-vertical"} starts a new line). Only if asked: frame.crop.follow_face pans the crop with the face; over[i].hide_in_silence fades a layer out in pauses (effect hide-in-silence); pointer {smooth, hide_idle} for the drawn screen pointer; keys: true shows logged shortcuts. Takes uses the clean voice once and never uses a finished edit as an input. One render of a name runs at a time: to compare two options, give the second a new name. Returns a job; then publish_edit.

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": {
      "session": "<session>"
    },
    "name": "render_edit"
  }
}

Input Schema

NameRequiredDescriptionDefault
baseNoThe edit to start from: 'hook' (its newest version), 'hook-v4' or 'edits/hook-v4.mp4'. Required when the session has more than one edit name with a recipe.
recipeNoA whole recipe. For a first version, or to rebuild an edit that has no recipe. Times in over, music and sfx are seconds of the cut (a cover adds its own).
wait_sNoWait up to this many seconds (max 120) and return the finished result inline. Default 0.
changesNoA JSON merge patch on the base recipe. A list replaces the whole list, so repeat the whole entry: {"music": [{"file": "@library/audio/Music/Calm.mp3", "at": 0, "in": 14, "gain_db": -21, "duck_db": 8, "fade_out": 1.5}]}. {"name": "hook-vertical"} starts a new edit line. null removes a field ("cover": null).
go_backNotrue to build on an older version on purpose. Without it, an old base is refused.
sessionYesSession: 'Project/folder', an absolute path or its id (from get_session). Old paths still work.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2026.11.11
    • changedInput schema / properties / session / description
      Previous value: -"Session as 'Project/folder', an absolute path, or its id (from get_session). An old path still works after a rename or move."New value: +"Session: 'Project/folder', an absolute path or its id (from get_session). Old paths still work."
  2. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint=false, destructiveHint=false), so the bar is lower, and the description pays it off with real behavioral facts: the output is a job with an optional inline wait (wait_s up to 120), only one render per name runs concurrently, takes consumes the clean voice once, and a finished edit can never be an input. Failure modes, cost, and what happens to an existing edit line on rebuild are not covered.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded and information-dense, with 'First version' / 'Next version' / 'Only if asked' acting as useful markers, but the middle is a run-on wall of parenthetical abbreviations ('frame {shape ... crop}', 'over[i].hide_in_silence') that an agent must parse rather than skim. Nothing is filler, yet formatting costs readability.

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 6-parameter tool with nested objects and no output schema, the description supplies the missing return contract ('Returns a job', inline result when wait_s is set) and the follow-on call, plus the exclusivity rules that govern correctness. Only edge behavior — errors, partial builds, deletion/overwrite of an existing name — is unaddressed.

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, but the description genuinely adds meaning the schema lacks: it defines recipe shape ({name, cut}), pins cut to rough_cut's cut, enumerates frame shapes ('9:16'|'16:9'|'1:1'|'4:5'|'source'), explains over/music/sfx semantics, and clarifies that steps run in _edit/<name>/. It duplicates some of what the schema already says about changes (merge patch, list replacement), which keeps it out of the top band.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening clause gives a concrete verb and resource ('Build an edit from a recipe, as a job') and closes with the natural next step ('Returns a job; then publish_edit'), which separates it from publish_edit and check_edit. What 'and check it' means is never spelled out, so the purpose statement is clear but slightly muddied at the edges.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description is unusually explicit about modes: 'First version' versus 'Next version' with base/changes, plus 'Only if asked' gating for the advanced fields (crop.follow_face, hide_in_silence, pointer, keys). It also states a real constraint — 'One render of a name runs at a time: to compare two options, give the second a new name' — and ties input validity to rough_cut's cut. It stops short of naming specific sibling alternatives beyond publish_edit.

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