Skip to main content
Glama

generate_video

Generate videos from text descriptions or reference images. Tasks process asynchronously and save locally to your project directory.

Instructions

提交异步视频生成任务,后台 Worker 会自动轮询远程服务器并下载视频到本地。视频保存到 projectDir/outputSubdir/ 目录下(默认 mclans-image 子文件夹,可通过 outputSubdir 参数自定义)。支持文生视频和图生视频。任务提交后立即返回,视频生成通常需要较长时间。请询问用户:是需要我持续跟踪任务进度直到完成,还是提交后由系统自动处理、后续按需查询?

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
promptYes视频内容描述
projectDirYes必填:当前项目根目录的绝对路径。请先执行 pwd 或 echo %cd% 获取当前工作目录,然后将结果填入此参数。视频将保存到该路径下的输出子文件夹中
fileNameYes必填:保存的文件名(不含扩展名),请根据视频内容取一个简短有意义的英文名,如 cat-running、ocean-waves 等
modelNo视频生成模型:ltx(LTX-2.3,默认)或 wan(Wan2.2)
imagePathNo参考图片的路径,传入则为图生视频,不传则为文生视频
resolutionNo视频分辨率,如 1024x576(默认)
numFramesNo视频帧数,默认 33
outputSubdirNo输出子文件夹名称,默认为 mclans-image。视频将保存到 projectDir/outputSubdir/ 目录下。可根据项目需要自定义,如 videos、assets、output 等
Behavior3/5

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

Discloses async polling, saving to projectDir, and support for text/image-to-video. With no annotations, this carries full burden, but it omits details like return value (task ID?), error handling, authentication, or failure behavior, leaving gaps.

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?

Description is a single concise paragraph that front-loads the main purpose, then details, then user guidance. It is appropriately sized but could be more structured (e.g., bullet points) for clarity.

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?

Covers async nature, output path, modes, and user interaction. However, with 8 parameters, no output schema, and no annotations, it misses critical details like what the tool returns (task reference) and how to handle errors or check progress, making it only moderately complete.

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 covers all 8 parameters with descriptions (100% coverage). The description adds practical tips for projectDir (use pwd) and fileName (meaningful English name), and clarifies outputSubdir defaults and usage, enhancing usability beyond schema.

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?

The description clearly states it submits an asynchronous video generation task that saves to local directory, and mentions text-to-video and image-to-video modes. However, it doesn't explicitly differentiate from sibling tools like generate_image, but the unique verb 'generate_video' and async nature suffice.

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

Usage Guidelines3/5

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

Provides guidance on the async nature and instructs the agent to ask the user about tracking progress. However, it lacks explicit when-to-use vs. alternatives (e.g., generate_image) and does not mention limitations or prerequisites.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/YupegLV/mclans-create-image-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server