Skip to main content
Glama

Create a video

create_video

Start generating a video from a text description with GenMagic (or animate an image: pass 'image' as the opening frame), with any text-to-video model, clip length, resolution and sound the model supports (list_models with category "video" shows them and the per-second price). Video is asynchronous, so this returns a job id immediately (nothing is charged yet). Poll it with the get_video tool every few seconds until the status is "completed" to get the hosted video URL. A failed render is never charged. On-brand automatically when the account has brand personalization on.

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": {
      "prompt": "<prompt>"
    },
    "name": "create_video"
  }
}

Input Schema

NameRequiredDescriptionDefault
imageNoOptional image (an https URL or a data:image URL) the clip opens on: image-to-video. The prompt then describes the motion. list_models shows each model's frame_images, and in its video prices image_input_usd or image_to_video_usd_per_second where a model bills image-to-video apart.
modelNoOptional GenMagic model id for the video (call list_models with category "video" for the ids and prices). Omit it to let GenMagic choose its default.
voiceNoTalking-photo models only (list_models marks them talking_photo: true): the voice that says the prompt word for word, by name from the model's voices (for example Cassidy or Leonie), or a HeyGen voice id. Send the portrait as 'image'. Omit for the default multilingual voice.
promptYesA description of the video to create.
durationNoClip length in seconds, one of the lengths the model supports (list_models shows durations_seconds). Omit for the model's default.
last_frameNoOptional image (an https URL or a data:image URL) the clip ends on, for models whose frame_images include last_frame.
referencesNoOptional reference images (https URLs or data:image URLs) of characters, objects or a look the clip keeps consistent, none of them a frame of it: reference-to-video. Name what each shows in the prompt. Not combined with image or last_frame. list_models marks the models made for it with references: true.
resolutionNoOutput resolution the model supports, e.g. 720p or 1080p (list_models shows resolutions). Omit for the model's default.
aspect_ratioNoAspect ratio: 16:9 (landscape), 9:16 (portrait), or 1:1 (square). Defaults to the opening image's shape when 'image' is portrait or landscape, otherwise 16:9.
generate_audioNoGenerate sound with the clip on models that support it (list_models shows audio_supported; a model with audio_always makes sound on every clip). Omit for the model's default.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / voice
      Added value: +{
      +  "description": "Talking-photo models only (list_models marks them talking_photo: true): the voice that says the prompt word for word, by name from the model's voices (for example Cassidy or Leonie), or a HeyGen voice id. Send the portrait as 'image'. Omit for the default multilingual voice.",
      +  "type": "string"
      +}
  2. Changed3 schema fields changed
    • changedInput schema / properties / aspect_ratio / description
      Previous value: -"Aspect ratio: 16:9 (landscape), 9:16 (portrait), or 1:1 (square). Defaults to 16:9."New value: +"Aspect ratio: 16:9 (landscape), 9:16 (portrait), or 1:1 (square). Defaults to the opening image's shape when 'image' is portrait or landscape, otherwise 16:9."
    • removedInput schema / properties / audio
      Removed value: -{
      -  "description": "Optional https URL of an MP3 or WAV voice line or track (2 to 30 seconds) the clip speaks or moves to, so one voice made once with generate_speech carries every clip of a character. Only for models that take audio (Wan 2.6 and 2.7); with no model named, one that does is chosen.",
      -  "type": "string"
      -}
    • changedInput schema / properties / generate_audio / description
      Previous value: -"Generate sound with the clip on models that support it (list_models shows audio_supported). Omit for the model's default."New value: +"Generate sound with the clip on models that support it (list_models shows audio_supported; a model with audio_always makes sound on every clip). Omit for the model's default."
  3. Changed1 schema field changed
    • addedInput schema / properties / audio
      Added value: +{
      +  "description": "Optional https URL of an MP3 or WAV voice line or track (2 to 30 seconds) the clip speaks or moves to, so one voice made once with generate_speech carries every clip of a character. Only for models that take audio (Wan 2.6 and 2.7); with no model named, one that does is chosen.",
      +  "type": "string"
      +}
  4. Changed1 schema field changed
    • addedInput schema / properties / references
      Added value: +{
      +  "description": "Optional reference images (https URLs or data:image URLs) of characters, objects or a look the clip keeps consistent, none of them a frame of it: reference-to-video. Name what each shows in the prompt. Not combined with image or last_frame. list_models marks the models made for it with references: true.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "maxItems": 9,
      +  "type": "array"
      +}
  5. Changed1 schema field changed
    • changedInput schema / properties / image / description
      Previous value: -"Optional image (an https URL or a data:image URL) the clip opens on: image-to-video. The prompt then describes the motion. list_models shows each model's frame_images."New value: +"Optional image (an https URL or a data:image URL) the clip opens on: image-to-video. The prompt then describes the motion. list_models shows each model's frame_images, and in its video prices image_input_usd or image_to_video_usd_per_second where a model bills image-to-video apart."
  6. Changed2 schema fields changed
    • addedInput schema / properties / image
      Added value: +{
      +  "description": "Optional image (an https URL or a data:image URL) the clip opens on: image-to-video. The prompt then describes the motion. list_models shows each model's frame_images.",
      +  "type": "string"
      +}
    • addedInput schema / properties / last_frame
      Added value: +{
      +  "description": "Optional image (an https URL or a data:image URL) the clip ends on, for models whose frame_images include last_frame.",
      +  "type": "string"
      +}
  7. Changed4 schema fields changed
    • addedInput schema / properties / duration
      Added value: +{
      +  "description": "Clip length in seconds, one of the lengths the model supports (list_models shows durations_seconds). Omit for the model's default.",
      +  "type": "integer"
      +}
    • addedInput schema / properties / generate_audio
      Added value: +{
      +  "description": "Generate sound with the clip on models that support it (list_models shows audio_supported). Omit for the model's default.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / model
      Added value: +{
      +  "description": "Optional GenMagic model id for the video (call list_models with category \"video\" for the ids and prices). Omit it to let GenMagic choose its default.",
      +  "type": "string"
      +}
    • addedInput schema / properties / resolution
      Added value: +{
      +  "description": "Output resolution the model supports, e.g. 720p or 1080p (list_models shows resolutions). Omit for the model's default.",
      +  "type": "string"
      +}
  8. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false and openWorldHint=true, but the description adds real behavioral context beyond them: the call is asynchronous and returns a job id immediately, nothing is charged yet, failed renders are never charged, and brand personalization may apply automatically. The only gap is it doesn't say how long renders typically take or what the job id looks like, but the async contract and billing semantics are the important disclosures.

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

Conciseness4/5

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

The text is front-loaded with the core action, then the async/polling contract, then cost and brand notes — a sensible priority order with little filler. It is one dense block, though; splitting the polling and billing sentences would make it easier to scan, and the parenthetical about list_models partially duplicates schema text.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 10-parameter asynchronous generation tool with no output schema, the description covers everything an agent needs: how to start, that the return is a job id rather than a video, how to retrieve the result, and the cost model. Nothing essential to correct invocation is missing.

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 schema already documents all ten parameters; the description's value is in framing the two modes (text-to-video vs. passing 'image' as the opening frame) and noting that the prompt then describes motion. It doesn't add much parameter-level syntax beyond the schema, so it sits just above the high-coverage baseline.

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 opening sentence gives a specific verb and resource ('Start generating a video from a text description') and immediately covers the image-to-video variant. It names the provider (GenMagic) and the knobs (model, length, resolution, sound), so an agent can distinguish it from generate_image or generate_music without opening the schema.

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?

It routes the agent explicitly: use list_models with category "video" to discover models and per-second price, and use get_video to poll until status is "completed". It also states when to pass 'image' (animate an image as the opening frame), which is the main branch point versus plain text-to-video.

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.