Skip to main content
Glama

generate_video

Creates AI videos from text prompts, start/end images, and optional audio, with controls for model, resolution, aspect ratio, duration, and batch size.

Instructions

Generates a video from text prompt, image, and optional audio using AI models like Character-3, Veo, Sora, Kling, MiniMax

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": {
      "ai_model_id": "<ai_model_id>",
      "text_prompt": "<text_prompt>"
    },
    "name": "generate_video"
  }
}

Input Schema

NameRequiredDescriptionDefault
seedNoSeed for reproducible generation
audio_idNoID of an uploaded audio asset to use
batch_sizeNoNumber of video variations to generate (1-8)
resolutionNoVideo resolution (e.g., 540p, 720p)
ai_model_idYesID of the AI model to use (get from list_models)
duration_msNoVideo duration in milliseconds
text_promptYesText prompt describing the video content
aspect_ratioNoVideo aspect ratio (16:9, 9:16, 1:1)
end_keyframe_idNoID of an uploaded image asset to use as end keyframe
start_keyframe_idNoID of an uploaded image asset to use as start keyframe
start_keyframe_urlNoURL of image to use as start keyframe (alternative to start_keyframe_id)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden and falls short: video generation is presumable long-running, yet nothing says it is asynchronous, whether it returns a job ID to poll via get_generation_status, or that it consumes credits. It also omits that this is a costly side-effecting generation call rather than a read.

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?

A single front-loaded sentence with no wasted preamble. The trailing model list is somewhat verbose but arguably useful for model selection context.

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

Completeness2/5

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

For an eleven-parameter, unannotated, long-running generation tool with no output schema, the description is too thin. It should state the async/job-return behavior, credit cost, and model-fetch requirement, none of which appear.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the eleven parameters are already documented in the schema, and the description only echoes the text/image/audio inputs. Baseline 3 is appropriate since the schema does the heavy lifting and the description adds no formatting or constraint detail beyond it.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names a specific verb and resource ("Generates a video") and enumerates the input modalities (text prompt, image, optional audio) plus the backing models. It does not distinguish itself from the sibling generate_video_with_tts, so an agent cannot tell which video generator to pick from the description alone.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No explicit when-to-use, prerequisites, or exclusions. The phrase "optional audio" hints that audio is not required, but nothing tells the agent when to prefer generate_video_with_tts or how this interacts with list_models for the required ai_model_id.

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