Skip to main content
Glama

Render an edit

render_edit

Assemble delivered video clips into a captioned 9:16 MP4, adding voice, music, holds, and sound where specified, then poll the film run for success or failure.

Instructions

Input: the same fields as quote_edit, plus attempt. Paid once per delivered cut, after quote_edit. Cuts windows of your own delivered generate_video clips (run_id) or video assets (asset_id) back to back, holds the last frame for hold seconds, lays the make_voice take (whole at voice.at, or its sentences as voice.pieces on the seconds their pictures start), plays a clip's own sound where it has sound: true (a clip made with audio: true, never under the voice's words), lays music if asked and burns in captions: one vertical 9:16 720p MP4 at 25 fps, up to 60 s. music is a library track (free) or one made for the cut (charged only when the delivered cut carries it); it plays from music.at to the end, lower under the voice. A clip up to 3% off 9:16 is cropped to fill it; one further off is shown whole with bars; warnings name each. An edit that fails costs nothing. Returns at once; call get_film_run until it is succeeded (video_url) or failed. Read each take you made on take_frames (free) before you cut it; check_take is optional, worth it on a product shot or when the user asks, and a verdict on a clip's file is said in warnings. With ad_id every clip names its slot. Mistakes to avoid: rendering without the quote's go-ahead; cutting a take you have not looked at; changing the arguments between quote and render; expecting a zoom (it has none); music under a voice-led ad at volume above -6; a music-only cut without music; a caption over the product, its print, the hands or the face. The same arguments and attempt return the run already started, whatever its state; to repeat a failed run, pass attempt + 1 (attempt 2 after the first), which starts a new run, charged as its quote says.

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

Input Schema

NameRequiredDescriptionDefault
holdNo
ad_idNo
clipsYes
musicNo
voiceNo
attemptNo
ambienceNo
captionsNo
max_creditsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.78.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations only say readOnlyHint=false and destructiveHint=false, so the description carries the real weight: money is charged once per delivered cut, a failed edit costs nothing, music is charged only when the delivered cut carries it, and music volume above -6 under a voice-led ad is flagged as a mistake. It also discloses idempotency ('the same arguments and attempt return the run already started, whatever its state') and the attempt+1 retry mechanic. Gaps remain around what max_credits and ambience actually change behaviorally.

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?

Nearly every sentence carries real information (output spec, billing, retry, mistake list), but it is delivered as one sprawling paragraph with long run-on clauses such as the clip-cropping and voice-placement sentences. Critical operational facts — billing and idempotency — are buried at the end rather than front-loaded after the input reference.

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 complex, nested, paid, asynchronous tool with no output schema, the description covers the return contract (returns at once; poll get_film_run for video_url or failed), cost behavior, retry, and common failure modes. It falls short only on the semantics of max_credits and ambience, which an agent would have to guess at.

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?

With 0% schema coverage and 9 parameters including nested objects, the description compensates well: it explains hold seconds, voice.at vs voice.pieces sync, music.at and ducking, ad_id slot naming, clips as run_id/asset_id windows, captions burn-in, and attempt semantics. However, max_credits and ambience are never explained, and the nested shape of clips/music/voice is only described narratively rather than mapped to fields.

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 names a specific verb and outcome: it cuts windows of delivered generate_video clips or video assets back to back, holds the last frame, lays voice/music/captions, and produces 'one vertical 9:16 720p MP4 at 25 fps, up to 60 s'. It also anchors itself to a sibling ('the same fields as quote_edit, plus attempt'), so an agent can tell what it produces and where it sits in the pipeline.

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?

Usage is explicit and sequenced: it runs 'after quote_edit', is 'paid once per delivered cut', and the mistakes list names the exact alternative actions ('rendering without the quote's go-ahead', 'cutting a take you have not looked at' via take_frames, check_take optional on product shots). It also says to poll get_film_run until succeeded or failed rather than expecting an inline result.

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