Skip to main content
Glama

Generate video

generate_video

Start generating a NEW video from a text prompt in a thread (create one with create_thread first). modelKey comes from list_models (a video model) and durationSeconds must be one that model supports. Spends credits; use estimate_cost first if unsure. Optionally pass sourceFileIds (file ids from upload_image or the library) as start/reference frames. Returns immediately with a nodeId and status; poll get_generation_status until it is COMPLETED or FAILED.

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": {
      "threadId": "<threadId>",
      "prompt": "<prompt>",
      "modelKey": "<modelKey>",
      "durationSeconds": "<durationSeconds>"
    },
    "name": "generate_video"
  }
}

Input Schema

NameRequiredDescriptionDefault
promptYesWhat to generate.
modelKeyYesVideo model key from list_models.
threadIdYesThread to generate in.
resolutionNoResolution. Defaults to 480p.
aspectRatioNoAspect ratio. Defaults to auto.
sourceFileIdsNoOptional input image file ids.
durationSecondsYesClip length in seconds; must be supported by the model.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / prompt / maxLength
      Previous value: -2000New value: +2500
  2. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations only cover the safety profile (non-read-only, non-idempotent, non-destructive); the description adds the operationally critical behavior: credits are spent, the call returns immediately with a nodeId and status, and the agent must poll get_generation_status until COMPLETED or FAILED. That is exactly the lifecycle information an agent needs to avoid assuming a synchronous result.

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 dense sentences, front-loaded with the action, then prerequisites, cost, optional inputs, and the async return contract. Every clause carries actionable information with no restatement of the tool name or filler.

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 7-parameter async generation tool with no output schema, the description covers prerequisites, cost risk, optional inputs, and the full return-and-poll cycle. An agent can invoke it and handle the result without consulting other documentation.

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 goes further by tying modelKey to list_models video models, constraining durationSeconds to model-supported values, and explaining that sourceFileIds act as start/reference frames rather than generic inputs. It does not add anything for resolution or aspectRatio beyond their schema enums/defaults, which keeps it 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?

States a specific verb and resource ('Start generating a NEW video from a text prompt') plus the key differentiator from siblings like image_to_video/edit_video/extend_video: it is prompt-driven and creates a new node. The 'NEW' emphasis signals it does not modify an existing video.

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?

Explicitly routes to prerequisites and alternatives: create_thread for the thread, list_models for a valid video modelKey, estimate_cost when cost is uncertain, and upload_image or the library as the source of sourceFileIds. It also states when the optional parameter applies (start/reference frames).

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