Skip to main content
Glama

Generate video

generate_video

Start a video from text (text-to-video model), from a first frame and optional last frame (image-to-video model: images), or from reference images, videos and audio (reference-to-video model: references, or images for models whose inputs.images is set). The model id decides the mode — take it and its options from list_models. Spends credits: tell the user the price from list_models first. Returns a taskId right away; the video takes from about a minute to several minutes. Failed generations are refunded automatically. Media must be public https URLs; use upload_media for the user's own files.

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

Input Schema

NameRequiredDescriptionDefault
modelYesA video model id from list_models.
imagesNoImage-to-video: [first frame] or [first frame, last frame]. Image-only reference models: the reference images.
promptNoWhat happens in the video.
durationNoSeconds; one of the model's durations. Default: the model's default.
referencesNoReference-to-video models with inputs.references: images, videos and audio to follow.
resolutionNoOne of the model's resolutions. Default: the model's default.
aspect_ratioNoOne of the model's aspect ratios. Default: the model's first.
generate_audioNoOnly for models whose audio is "optional". Default: on.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior3/5

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

Adds substantial context beyond the annotations: it is a credit-spending mutation with a required price disclosure, it returns a taskId immediately rather than the result, latency is roughly a minute to several minutes, failures are refunded, and inputs must be public https URLs. That is a meaningful supplement to annotations that only declare non-read-only, non-destructive, non-idempotent. The only caveat is a mild tension with openWorldHint=false, since the tool fetches external public URLs, though this is not a direct contradiction of the description.

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?

Front-loaded with the mode enumeration, and every subsequent sentence carries distinct load (model selection, price disclosure, async return, latency, refunds, URL constraints). The first sentence is a heavy run-on with nested parentheticals, which costs a little readability but no sentence is wasted.

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?

There is no output schema, and the description compensates by stating the return shape (taskId, immediate) and the expected wait time. Combined with the cost/refund and URL constraints, an agent has everything needed to call this async generative tool correctly and set user expectations.

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% and the per-parameter descriptions are already detailed, so the baseline would be 3. The description still adds cross-parameter logic the schema cannot express: which of `images`/`references` is valid depends on the selected model id and its inputs configuration, which is the key ambiguity for an 8-parameter tool.

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?

States a specific verb and resource and then enumerates all three operating modes (text-to-video, image-to-video via `images`, reference-to-video via `references`), naming the exact parameter each mode uses. An agent can tell this apart from generate_image and from list_models/upload_media 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 routing rules: the model id decides the mode and its options must be taken from list_models; the user must be told the price from list_models before spending credits; the user's own files must go through upload_media rather than being passed directly. Alternatives are named with the condition that selects them.

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.