Skip to main content
Glama

generate_video

Generate a video from a text prompt with an optional first-frame image URL, returning a video URL for text-to-video workflows.

Instructions

Generate a video from a text prompt (optional first-frame image_url).

Blocks until the task finishes or timeout (seconds). Returns video_url. Video rendering is slow; if the host may time out, use submit_video_task

  • get_video_task instead.

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": "generate_video"
  }
}

Input Schema

NameRequiredDescriptionDefault
sizeNo
modelNowan2.2-t2v-plus
ratioNo
promptYes
timeoutNo
durationNo
image_urlNo
resolutionNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations, the description carries the full load and does well: it discloses that the call blocks until completion or the timeout elapses, that rendering is slow, and that video_url is returned. It omits cost/quota implications and what happens on timeout (error vs partial result), which matters for a long-running paid generation.

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 short lines, front-loaded with purpose, then blocking semantics, then the fallback. Little waste; 'Returns video_url' is slightly redundant given an output schema exists but it reinforces the blocking contract.

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

Completeness3/5

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

An output schema exists, so return-value detail is optional, and the blocking/timeout behavior is covered. However, for an 8-parameter generation tool with zero schema coverage, the absence of guidance on model, resolution, ratio, and duration leaves real gaps an agent must guess at.

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

Parameters2/5

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

Schema description coverage is 0% across 8 parameters, so the description must compensate and largely doesn't. It explains only prompt, image_url as first frame, and timeout in seconds; size, model, ratio, duration, and resolution — all of which materially change output — get no meaning, allowed values, or defaults.

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?

States a specific verb and resource ('Generate a video from a text prompt') plus the key input variant (optional first-frame image_url). It clearly differs from the sibling image/text tools, though the sharper distinction from submit_video_task only emerges in the later sentence.

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

Usage Guidelines4/5

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

Gives an explicit conditional routing rule: if the host may time out, use submit_video_task + get_video_task instead. It also notes rendering is slow, which motivates the rule. It stops short of stating when the blocking form is preferred (short clips, interactive flows) beyond the timeout criterion.

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