Render Iterate
Immutable Catalog Entry
This descriptor comes from the active versioned Portal catalog.
- Contract tier:
agent_ready - Risk:
write - Catalog version:
2026-07-12.3 - Descriptor hash:
fe703158bf989f6483f6f259e5fa76f05f583a9bdcf864e90d5bba3693e34c18
Use this to render, analyze, and boundedly iterate an approved social ad, testimonial, or offer card until its rubric threshold or iteration limit is reached. It queues a non-trivial workflow and never publishes results.
Request Body
{
"jsonrpc": "2.0",
"id": "ffmpeg-render-iterate-example",
"method": "tools/call",
"params": {
"name": "ffmpeg.render_iterate",
"arguments": {
"render_type": "render_type_example",
"primary_asset_id": "primary_asset_id_123",
"cta": "",
"hook": "",
"price": "",
"quote": "",
"author": "",
"quality": "",
"headline": "",
"priority": ""
}
}
}
Arguments Schema
{
"type": "object",
"required": [
"render_type",
"primary_asset_id"
],
"properties": {
"cta": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Optional call-to-action copy for the render."
},
"hook": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Optional short opening hook copy for a social render."
},
"price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Optional price or offer copy for the render."
},
"quote": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Optional testimonial quotation copy for the render."
},
"author": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Optional testimonial attribution copy for the render."
},
"quality": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Approved render quality mode, normally draft or final."
},
"headline": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Optional headline copy for the render."
},
"priority": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Optional queue priority configured by the server, such as urgent or batch."
},
"strategy": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Approved iteration strategy controlling which bounded changes may be attempted."
},
"audio_lra": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"description": "Target loudness range used by normalization."
},
"fail_fast": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"description": "When true, stop after the first non-recoverable QA failure."
},
"lock_audio": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"description": "When true, iteration may not change audio controls."
},
"music_gain": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"description": "Background-music gain multiplier within server limits."
},
"voice_gain": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"description": "Voice-track gain multiplier within server limits."
},
"words_json": {
"anyOf": [
{
"type": "array",
"items": {
"type": "object",
"additionalProperties": true
}
},
{
"type": "null"
}
],
"description": "Timed word objects containing word, start, and end values; provide only one caption source."
},
"render_type": {
"type": "string",
"description": "Approved iterative render type: social_ad, testimonial_clip, or offer_card."
},
"rubric_name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Exact approved quality rubric name."
},
"brand_kit_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Existing local brand-kit identifier."
},
"captions_srt": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Inline SRT caption text; provide only one caption source."
},
"captions_vtt": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Inline WebVTT caption text; provide only one caption source."
},
"framing_mode": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Approved fit, fill, crop, or safe framing behavior."
},
"include_16_9": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"description": "When true, add a 16:9 variant to the default social outputs."
},
"lock_framing": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"description": "When true, iteration may not change framing controls."
},
"max_crop_pct": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"description": "Maximum percentage of the source frame that iteration may crop."
},
"trim_silence": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"description": "Whether the render pipeline should trim leading and trailing silence."
},
"ducking_ratio": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"description": "Compressor ratio used for voice-driven music ducking."
},
"lock_captions": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"description": "When true, iteration may not change caption controls."
},
"highlight_mode": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Approved caption word-highlight behavior."
},
"max_iterations": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"description": "Maximum bounded render-analysis iterations."
},
"music_asset_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Stable ID of the staged background music asset."
},
"music_gain_max": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"description": "Maximum allowed value for this iteration control. Background-music gain multiplier within server limits."
},
"music_gain_min": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"description": "Minimum allowed value for this iteration control. Background-music gain multiplier within server limits."
},
"pass_threshold": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"description": "Rubric score that ends iteration successfully."
},
"voice_asset_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Stable ID of the staged voice or dialogue audio asset."
},
"audio_true_peak": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"description": "Maximum true-peak target in dBTP."
},
"broll_asset_ids": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "null"
}
],
"description": "Optional ordered staged asset IDs used as supporting B-roll."
},
"caption_position": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Approved overlay or caption position name."
},
"min_duration_sec": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"description": "Minimum output duration iteration must preserve."
},
"primary_asset_id": {
"type": "string",
"description": "Stable ID of the primary staged media asset for the render."
},
"audio_target_lufs": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"description": "Target integrated loudness in LUFS."
},
"caption_box_color": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Safe FFmpeg color used for the text background box."
},
"caption_font_name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Allowlisted server font filename or name."
},
"caption_font_size": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"description": "Font size in pixels within configured minimum and maximum bounds."
},
"caption_max_chars": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"description": "Maximum characters per caption line within server limits."
},
"caption_max_lines": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"description": "Maximum lines in one caption cue within server limits."
},
"caption_max_words": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"description": "Maximum words in one caption cue within server limits."
},
"ducking_attack_ms": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"description": "Ducking compressor attack time in milliseconds."
},
"ducking_threshold": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"description": "Signal threshold used to trigger ducking."
},
"safe_zone_profile": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Approved platform safe-zone profile for caption placement."
},
"allow_trim_silence": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"description": "Whether iteration may enable silence trimming."
},
"caption_font_color": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Safe FFmpeg color used for text."
},
"caption_padding_px": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"description": "Caption box padding in pixels within server limits."
},
"ducking_release_ms": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"description": "Ducking compressor release time in milliseconds."
},
"caption_box_opacity": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"description": "Caption background opacity from 0.0 through 1.0."
},
"trim_silence_min_sec": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"description": "Minimum silence duration in seconds that the render pipeline may trim."
},
"caption_font_asset_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Optional staged font asset ID used for caption rendering."
},
"caption_font_size_max": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"description": "Maximum allowed value for this iteration control. Font size in pixels within configured minimum and maximum bounds."
},
"caption_font_size_min": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"description": "Minimum allowed value for this iteration control. Font size in pixels within configured minimum and maximum bounds."
},
"caption_box_opacity_max": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"description": "Maximum allowed value for this iteration control. Caption background opacity from 0.0 through 1.0."
},
"caption_box_opacity_min": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"description": "Minimum allowed value for this iteration control. Caption background opacity from 0.0 through 1.0."
},
"caption_highlight_color": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Safe color used for highlighted caption words."
},
"caption_safe_zone_top_px": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"description": "Additional top safe-zone inset in pixels."
},
"trim_silence_threshold_db": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"description": "Silence detection threshold in decibels."
},
"caption_safe_zone_bottom_px": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"description": "Additional bottom safe-zone inset in pixels."
}
},
"additionalProperties": false
}
Output Schema
{
"type": "object",
"required": [
"job_id",
"cache_hit"
],
"properties": {
"job_id": {
"type": "string",
"description": "Stable iterative-render job ID."
},
"result": {
"type": "object",
"description": "Completed iteration result when available from cache.",
"additionalProperties": true
},
"cache_hit": {
"type": "boolean",
"description": "Whether a cached iterative result was reused."
}
},
"additionalProperties": false
}
Code Examples
- cURL
- Node.js
- Python
curl -X POST 'https://portal.madpanda3d.com/api/mcp' \
-H 'Authorization: Bearer mad_live_***' \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc": "2.0",
"id": "ffmpeg-render-iterate-example",
"method": "tools/call",
"params": {
"name": "ffmpeg.render_iterate",
"arguments": {
"render_type": "render_type_example",
"primary_asset_id": "primary_asset_id_123",
"cta": "",
"hook": "",
"price": "",
"quote": "",
"author": "",
"quality": "",
"headline": "",
"priority": ""
}
}
}'
const response = await fetch('https://portal.madpanda3d.com/api/mcp', {
method: 'POST',
headers: {
Authorization: 'Bearer mad_live_***',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"jsonrpc": "2.0",
"id": "ffmpeg-render-iterate-example",
"method": "tools/call",
"params": {
"name": "ffmpeg.render_iterate",
"arguments": {
"render_type": "render_type_example",
"primary_asset_id": "primary_asset_id_123",
"cta": "",
"hook": "",
"price": "",
"quote": "",
"author": "",
"quality": "",
"headline": "",
"priority": ""
}
}
}),
});
const data = await response.json();
console.log(data);
import requests
url = 'https://portal.madpanda3d.com/api/mcp'
headers = {
'Authorization': 'Bearer mad_live_***',
'Content-Type': 'application/json',
}
payload = {
"jsonrpc": "2.0",
"id": "ffmpeg-render-iterate-example",
"method": "tools/call",
"params": {
"name": "ffmpeg.render_iterate",
"arguments": {
"render_type": "render_type_example",
"primary_asset_id": "primary_asset_id_123",
"cta": "",
"hook": "",
"price": "",
"quote": "",
"author": "",
"quality": "",
"headline": "",
"priority": ""
}
}
}
response = requests.post(url, headers=headers, json=payload, timeout=60)
print(response.json())
Example Responses
- 200 Success
- 502 Upstream Error
{
"ok": true,
"message": "Tool ffmpeg.render_iterate executed successfully.",
"note": "Response shape varies by MCP tool. Inspect live responses for exact fields."
}
{
"ok": false,
"classification": "upstream_http_error",
"message": "Upstream MCP returned a non-success status."
}