Skip to main content
Glama

ClipRelay AI

generate_video

提交异步 AI 视频生成任务(返回 task_id,随后调用 get_task 查询进度与成片 MP4 地址)。推荐模型:seedance-2.5, seedance-2.5-flash, kling-4.0, grok-imagine-video-1.5, gemini-omni-1.2-flash, minimax-h3, wan-3.0, magi-2, seedance-2.0, seedance-2.0-fast, seedance-2.0-mini, kling-3.0, wan-3, wan-3-prime, kling-4.0-flash。

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
modelNo视频模型 ID,默认 seedance-2.5。可选:seedance-2.5, seedance-2.5-flash, kling-4.0, grok-imagine-video-1.5, gemini-omni-1.2-flash, minimax-h3, wan-3.0, magi-2, seedance-2.0, seedance-2.0-fast, seedance-2.0-mini, kling-3.0, wan-3, wan-3-prime, kling-4.0-flash
promptYes分秒级视频画面与镜头运动提示词
durationNo视频时长秒数(如 5, 6, 10, 15),默认 6
resolutionNo视频清晰度(推荐先用 480p 省钱试拍,正式出片用 1080p),默认 720p
aspect_ratioNo画幅比例,如 16:9, 9:16, 1:1, 3:4, 4:3, 21:9
last_frame_urlNo可选尾帧参考图 URL(首尾帧过渡)
first_frame_urlNo可选首帧参考图 URL(图生视频)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior3/5

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

没有提供 annotations,因此描述承担了全部行为说明责任;它确实透明地告知了操作是异步的,并且结果需要轮询获取。但它没有说明 token 或成本消耗、生成失败和退款,也没有说明超时或速率限制;这些信息只表现为 schema 中的分辨率提示,而 schema 不属于描述。

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?

第一句在前,明确核心操作、返回值以及下一步要调用的工具,因此很高效。13 个模型 ID 的列表重复了 schema 中已经有的枚举内容,增加了不必要的篇幅,而没有提供额外信息。

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?

由于没有 output schema,描述必须说明返回结构,而它通过 task_id 和 MP4 地址交接做到了这一点。对于一个有 7 个参数、参数说明齐全的异步工具来说,description 已经接近完整;唯一实质性缺口是成本和失败处理说明。

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 描述覆盖率为 100%,所以每个参数的默认值、枚举值和说明都已经在 schema 中记录,这只能得到基线分 3。描述中长串的模型列表逐字重复了 schema 中已经定义的 model 枚举,因此没有增加新的参数信息。

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?

该描述使用了具体的动词和资源('提交异步 AI 视频生成任务'),并说明结果是 task_id,以及首尾帧过渡与图生视频所需的 MP4 地址来自哪里。它还明确把后续的进度查询交给 get_task,因此 agent 能区分这两个工具。

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?

描述交代了使用上下文:提交任务后,再调用 get_task 查询进度并获取完成后的 MP4 地址,这清楚区分了本工具与 get_task 的关系。它没有明确说明何时不应使用本工具(例如仍应使用 generate_image 处理静态图片的情况),也没有说明积分或权限方面的前提条件。

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