Skip to main content
Glama

ryla_generate_video_swap

Swap a character into an existing video. Pro plan and the account 18+ confirmation required. videoUrl must be a video you already uploaded to your RYLA account; use ryla_list_characters to find a characterId and ryla_video_swap_cost for the price first. Returns a jobId; poll with ryla_video_swap_status.

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": {
      "characterId": "<characterId>",
      "videoUrl": "<videoUrl>"
    },
    "name": "ryla_generate_video_swap"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNopreserve (default) keeps the clip and swaps the person; recreate regenerates the shot
trimNoTrim range [startSeconds, endSeconds]
voiceNoVoice track for the output. Omit or source "original" keeps the clip audio (free). source "character": the influencer speaks `text` in her saved voice (needs a voice set on the character). source "tts": the ElevenLabs `voiceId` speaks `text`. tts and character ADD credits by text length (voice-note tiers); quote it with ryla_video_swap_cost (pass voice and characterId). source "upload": your own audio via `audioKey` with rightsConfirmed true; only when enabled for the account. Other sources are not available yet. A voice needs the fast openjutsu engine (short keep-the-original clips, no background change) and is refused otherwise; it is never silently dropped.
targetNoWhich person to swap in a clip with several people: the centre of their face at frameS seconds, x and y as 0..1 of the frame (x right, y down). Get it from ryla_video_swap_people (box centre = x + w/2, y + h/2). Omit for a one-person clip. Needs the fast keep-the-original swap (short clip, no background change), no custom voice, and is only available when enabled for the account; otherwise it is refused before any charge. If the person is not found or the result does not match them, the job fails with a refund.
videoUrlYesURL of the source video (must be a RYLA-hosted storage URL you own)
resolutionNoOutput resolution
sourceTypeNoSource type (default upload)
characterIdYesCharacter UUID whose face is swapped into the video
audioSettingNoorigin keeps the source audio, auto generates new audio
outfitPromptNoOutfit description, used only when outfitEnabled is true
outfitEnabledNoChange the outfit
backgroundPromptNoBackground description, used only when backgroundEnabled is true
backgroundEnabledNoChange the background
seedanceResolutionNoRecreate mode output resolution
recreateDescriptionNoRecreate mode only: the scene to restage the clip as

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / target
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Which person to swap in a clip with several people: the centre of their face at frameS seconds, x and y as 0..1 of the frame (x right, y down). Get it from ryla_video_swap_people (box centre = x + w/2, y + h/2). Omit for a one-person clip. Needs the fast keep-the-original swap (short clip, no background change), no custom voice, and is only available when enabled for the account; otherwise it is refused before any charge. If the person is not found or the result does not match them, the job fails with a refund.",
      +  "properties": {
      +    "frameS": {
      +      "maximum": 3600,
      +      "minimum": 0,
      +      "type": "number"
      +    },
      +    "x": {
      +      "maximum": 1,
      +      "minimum": 0,
      +      "type": "number"
      +    },
      +    "y": {
      +      "maximum": 1,
      +      "minimum": 0,
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "frameS",
      +    "x",
      +    "y"
      +  ],
      +  "type": "object"
      +}
  2. Changed1 schema field changed
    • addedInput schema / properties / voice
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Voice track for the output. Omit or source \"original\" keeps the clip audio (free). source \"character\": the influencer speaks `text` in her saved voice (needs a voice set on the character). source \"tts\": the ElevenLabs `voiceId` speaks `text`. tts and character ADD credits by text length (voice-note tiers); quote it with ryla_video_swap_cost (pass voice and characterId). source \"upload\": your own audio via `audioKey` with rightsConfirmed true; only when enabled for the account. Other sources are not available yet. A voice needs the fast openjutsu engine (short keep-the-original clips, no background change) and is refused otherwise; it is never silently dropped.",
      +  "properties": {
      +    "audioKey": {
      +      "maxLength": 1024,
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    "rightsConfirmed": {
      +      "type": "boolean"
      +    },
      +    "source": {
      +      "enum": [
      +        "original",
      +        "character",
      +        "tts",
      +        "upload"
      +      ],
      +      "type": "string"
      +    },
      +    "text": {
      +      "maxLength": 1500,
      +      "type": "string"
      +    },
      +    "voiceId": {
      +      "maxLength": 64,
      +      "minLength": 1,
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "source"
      +  ],
      +  "type": "object"
      +}
  3. Changed12 schema fields changed
    • addedInput schema / properties / audioSetting
      Added value: +{
      +  "description": "origin keeps the source audio, auto generates new audio",
      +  "enum": [
      +    "auto",
      +    "origin"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / backgroundEnabled / description
      Previous value: -"Enable a background-change prompt"New value: +"Change the background"
    • addedInput schema / properties / backgroundPrompt / $ref
      Added value: +"#/properties/outfitPrompt"
    • removedInput schema / properties / backgroundPrompt / type
      Removed value: -"string"
    • addedInput schema / properties / mode
      Added value: +{
      +  "description": "preserve (default) keeps the clip and swaps the person; recreate regenerates the shot",
      +  "enum": [
      +    "preserve",
      +    "recreate"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / outfitEnabled / description
      Previous value: -"Enable an outfit-change prompt"New value: +"Change the outfit"
    • addedInput schema / properties / outfitPrompt / maxLength
      Added value: +500
    • addedInput schema / properties / recreateDescription
      Added value: +{
      +  "$ref": "#/properties/outfitPrompt",
      +  "description": "Recreate mode only: the scene to restage the clip as"
      +}
    • addedInput schema / properties / resolution
      Added value: +{
      +  "description": "Output resolution",
      +  "enum": [
      +    "720P",
      +    "1080P"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / seedanceResolution
      Added value: +{
      +  "description": "Recreate mode output resolution",
      +  "enum": [
      +    "480P",
      +    "720P"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / trim
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": [
      +        {
      +          "type": "number"
      +        },
      +        {
      +          "type": "number"
      +        }
      +      ],
      +      "maxItems": 2,
      +      "minItems": 2,
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Trim range [startSeconds, endSeconds]"
      +}
    • changedInput schema / properties / videoUrl / description
      Previous value: -"URL of the source video to swap (must be a RYLA-hosted storage URL you own)"New value: +"URL of the source video (must be a RYLA-hosted storage URL you own)"
  4. Added

TDQS

A4.6/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the burden and does real work: it discloses plan and age gating, credit cost for tts/character voice, and that voice/target requests are refused rather than silently dropped, with a refund on mismatch. It stops short of stating what the returned jobId payload contains beyond the poll pointer.

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

Conciseness5/5

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

Four short sentences, front-loaded with the action, then the gate, then the input constraint, then the output/polling pointer. Nothing redundant; the heavy parameter prose is correctly delegated to the schema.

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 15-parameter, nested-object, no-output-schema tool, the description supplies the eligibility rules, cost implications, and failure/refund behavior an agent needs. It doesn't summarize mode-specific behavior or default fallbacks, but the 100%-covered schema handles per-parameter detail.

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 still adds value by constraining videoUrl to an already-uploaded RYLA-hosted URL and by naming the source for characterId. The deeper semantics (voice source tiers, target coordinates) live in the schema, which keeps this from a 5.

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?

Opens with a specific verb and resource ('Swap a character into an existing video'), and the remaining sentences position it against ryla_list_characters, ryla_video_swap_cost, and ryla_video_swap_status so an agent knows the surrounding workflow without opening their schemas.

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?

Gives an explicit prerequisite chain: Pro plan plus 18+ confirmation, videoUrl must already be uploaded to the account, look up characterId via ryla_list_characters, quote price via ryla_video_swap_cost before running, then poll with ryla_video_swap_status. The schema extends this with eligibility gates (voice/target require the fast engine and account enablement), so when-to-use is fully covered.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources