Skip to main content
Glama

Generate a video

generate_video

Start a video with the selected project key. Unless the user names a model, pick from list_models type=video featured=true, the curated current ones; a model's params.video (detail=full) lists durations, resolutions, aspect ratios and capabilities. A video takes from about 30 seconds to 30 minutes or more: this waits up to about 45 seconds, then returns status processing with id; call get_media_job with it until status is completed or failed. The result is deleted 24 hours after the job ends (1 hour on a zero-retention project) unless store is true. Normal costs and policy checks apply; usage.cost is the charge in USD. Requires runtime:call.

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": {
      "id": "<id>",
      "model": "<model>",
      "prompt": "<prompt>",
      "uuid": "<uuid>"
    },
    "name": "generate_video"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesRuntime API key ID in this project; its secret is never returned
uuidYesProject UUID in the authorized organization
imageNoFirst frame to animate (needs image_to_video). An https URL or a file_<id>.
modelYesVideo model id from list_models type=video (featured=true for the curated ones).
storeNoAlso save the result to the project's files and return a reusable file_id. Default false: only a temporary link.
promptYesWhat the clip shows.
secondsNoClip length, within params.video.min_duration and max_duration.
last_imageNoLast frame the clip moves to (needs image and last_frame). An https URL or a file_<id>.
parametersNoProvider settings, forwarded verbatim. Each model lists the keys it takes in params.video.parameters (list_models detail=full).
resolutionNoOutput tier such as 720p or 1080p, from params.video.resolutions.
aspect_ratioNoShape such as 16:9 or 9:16, from params.video.aspect_ratios.
reference_imagesNoSubject or character images to keep consistent, not frames (needs reference_images). An https URL or a file_<id>.

Output Schema

NameRequiredDescriptionDefault
idYes
urlNo
nextNo
errorNo
usageNo
statusYes
file_idNo
mime_typeNo
expires_atNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Adds substantial behavior beyond the annotations: the ~45 second wait before returning status processing with an id, the polling loop, the 24-hour retention (1 hour on zero-retention projects) unless store=true, the cost/policy check with usage.cost in USD, and the runtime:call requirement. Annotations only declare non-readonly, open-world, non-idempotent, non-destructive; the description supplies the operational semantics the agent actually needs.

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?

Four sentences, front-loaded with the action, then model selection, then lifecycle, then cost/policy. Dense but every sentence carries required information; the model-selection clause is somewhat packed and could be split for readability.

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 12-parameter asynchronous generation tool with an output schema already covering return values, the description covers the full lifecycle an agent must know: preconditions (runtime:call, model discovery), timing, polling, retention and cost. Nothing an agent needs in order to invoke and follow up correctly 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 baseline is 3; the description earns above that by explaining the consequence of `store` (retention vs. permanent file) and the procedure for choosing `model` and reading its params.video metadata. It stops short of explaining the frame-image triad (image/last_image/reference_images), which the schema already handles.

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 ("Start a video") scoped to the selected project key, which cleanly separates it from generate_image, generate_speech and call_model. An agent can identify the operation and its asynchronous nature without opening any 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?

Gives explicit conditional routing: when the user names no model, pick from list_models type=video featured=true, and consult params.video (detail=full) for durations/resolutions/aspect ratios. It also names the required follow-up alternative, get_media_job, and the termination condition (completed or failed).

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