Skip to main content
Glama

生成视频

generate_video

Submit a video generation task using a model and parameters. Returns the result URL if completed within the wait period, or a task ID to query later.

Instructions

提交视频生成任务(通常耗时较长)。 先用 describe_model 确认该 model 的参数。默认等待 60s:短任务直接返回结果 URL;长任务超时返回 task_id,用 get_task 继续查询。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modelYes模型 id
paramsYes请求参数对象(不含 model),如 {prompt, aspect_ratio, ...},见 describe_model
inline_imageNo图像成功时是否内联回传图片(默认 true,仅 generate_image 生效;大图自动降级为纯 URL)
wait_secondsNo最长等待秒数,默认 60,设 0 立即返回 task_id
Behavior4/5

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

No annotations are provided, so the description carries full burden. It discloses that the task is time-consuming, the default wait is 60s, short tasks return a URL, and long tasks return a task_id. This is good behavioral context, though it could further detail error handling or failure modes.

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?

The description is two sentences, front-loaded with the main action, then efficient detail. Every sentence earns its place with no wasted words.

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

Completeness4/5

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

Given the complexity of a long-running generation task and no output schema, the description covers the essential workflow: prerequisite (describe_model), default wait, and fallback to get_task. It could mention error handling or output format more explicitly, but overall it is complete enough for an agent.

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

Parameters3/5

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

Schema description coverage is 100%, so parameters are fully documented there. The description adds workflow context (use describe_model for params, wait/retry behavior) but does not provide additional semantic details beyond the schema. Baseline 3 is appropriate.

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 '提交视频生成任务' (submit a video generation task), a specific verb+resource. While it does not explicitly differentiate from sibling tools like generate_audio or generate_image, the tool name and title already do that. The description adds the long-running nature, enhancing clarity.

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?

The description advises using describe_model first to confirm parameters and mentions fallback to get_task on timeout. This provides sequential context but lacks explicit when-to-use versus alternatives or when not to use. Guidance is implied rather than explicit.

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/cookaihq/aihub-mcp'

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