Render Social Ad
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:
427032e217d2921b4c83ee7a9c15d9dc78ed33c5880cf3c9ca8931be25ef024d
Use this to produce approved social-ad variants from staged media, copy, captions, brand, and audio inputs. It queues bounded 9:16, 1:1, 4:5, and optional 16:9 outputs.
Request Body
{
"jsonrpc": "2.0",
"id": "ffmpeg-render-social-ad-example",
"method": "tools/call",
"params": {
"name": "ffmpeg.render_social_ad",
"arguments": {
"primary_asset_id": "primary_asset_id_123",
"cta": "",
"hook": "",
"price": "",
"quality": "",
"headline": "",
"priority": "",
"audio_lra": "",
"music_gain": "",
"voice_gain": ""
}
}
}
Arguments Schema
{
"type": "object",
"required": [
"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."
},
"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."
},
"audio_lra": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"description": "Target loudness range used by normalization."
},
"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."
},
"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."
},
"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."
},
"highlight_mode": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Approved caption word-highlight behavior."
},
"music_asset_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Stable ID of the staged background music asset."
},
"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."
},
"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."
},
"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_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 ID used with the job readback tools."
},
"cache_hit": {
"type": "boolean",
"description": "Whether a matching completed result was reused."
},
"output_asset_ids": {
"type": "array",
"items": {
"type": "string"
},
"description": "Completed output asset IDs when immediately available from cache."
}
},
"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-social-ad-example",
"method": "tools/call",
"params": {
"name": "ffmpeg.render_social_ad",
"arguments": {
"primary_asset_id": "primary_asset_id_123",
"cta": "",
"hook": "",
"price": "",
"quality": "",
"headline": "",
"priority": "",
"audio_lra": "",
"music_gain": "",
"voice_gain": ""
}
}
}'
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-social-ad-example",
"method": "tools/call",
"params": {
"name": "ffmpeg.render_social_ad",
"arguments": {
"primary_asset_id": "primary_asset_id_123",
"cta": "",
"hook": "",
"price": "",
"quality": "",
"headline": "",
"priority": "",
"audio_lra": "",
"music_gain": "",
"voice_gain": ""
}
}
}),
});
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-social-ad-example",
"method": "tools/call",
"params": {
"name": "ffmpeg.render_social_ad",
"arguments": {
"primary_asset_id": "primary_asset_id_123",
"cta": "",
"hook": "",
"price": "",
"quality": "",
"headline": "",
"priority": "",
"audio_lra": "",
"music_gain": "",
"voice_gain": ""
}
}
}
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_social_ad 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."
}