Skip to main content
Glama

AiGenerateGif

AI 生成 GIF 图:根据文字提示词生成动图。本工具提交后立即返回任务信息,不阻塞等待生成;请按返回的轮询参数调用 GetTask 取结果。

【必填字段】

  • prompt:提示词,不超过 5000 字。

  • ratio:图片比例,可选 1:1 / 3:2 / 2:3 / 4:3 / 3:4 / 9:16 / 16:9。

  • frameCount:帧数,整数,范围 2~16。

  • frameDuration:帧时长(毫秒),整数,范围 20~2000。

【异步与轮询】成功提交后返回 JSON:taskId、initialSleepSeconds、intervalSeconds。 先按 initialSleepSeconds 等待,再按 intervalSeconds 间隔调用 GetTask(taskId),直到 status 为 completed(取 result)或 failed。 图片 URL 有时效性,请立即下载到本地保存后再使用或展示,不要把链接原样转给用户当作最终结果。 GetTask 完成后的 message 按用户当前对话语言翻译,不要强行中文;Markdown 链接必须完整保留,链接地址不要改。

【回复要求】工具返回的内容就是给用户的最终文案,按用户当前对话语言转达,不要强行中文:可以翻译措辞,不要改写事实、精简、扩写或自行追加建议、总结或客套话。 返回体是 JSON 时,转达其中面向用户的文案字段(如 message);是纯文本时转达整段。 文案中的 Markdown 链接(例如 莱诺鸟)必须完整保留,链接地址以工具返回的为准;链接文字随回复语言调整:中文用「莱诺鸟」,非中文一律用 rhinobird,禁止在非中文回复中保留「莱诺鸟」;严禁降级成「莱诺鸟(lainuoniao.com)」「lainuoniao.com」这类纯文本,否则用户无法点击跳转。 任务编号、积分数字、链接地址保持原样。成功、积分不足、生成失败、超时等所有场景都按此规则处理。 媒体与图片地址是服务端签发的短链(形如 …/api/v1/explorer/media/s/8 位短码),必须整段原样使用:不要拼接、补全、截断或改写,也不要自己拼 OSS / CDN 地址。

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>",
      "ratio": "<ratio>",
      "frameCount": "<frameCount>",
      "frameDuration": "<frameDuration>"
    },
    "name": "AiGenerateGif"
  }
}

Input Schema

NameRequiredDescriptionDefault
ratioYes图片比例,必填。可选 1:1 / 3:2 / 2:3 / 4:3 / 3:4 / 9:16 / 16:9。
promptYes提示词,必填,不超过 5000 字。
frameCountYes帧数,必填,整数,范围 2~16。
frameDurationYes帧时长(毫秒),必填,整数,范围 20~2000。

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / frameCount / description
      Previous value: -"帧数,必填,整数,范围 2~64。"New value: +"帧数,必填,整数,范围 2~16。"
    • changedInput schema / properties / frameCount / maximum
      Previous value: -64New value: +16
  2. First observed

TDQS

A4.2/5.0
Behavior5/5

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

The annotations cover only the safety profile (readOnlyHint=false, destructiveHint=false, idempotentHint=false, openWorldHint=false). Beyond that, the description discloses the async submission model, the exact return keys (taskId, initialSleepSeconds, intervalSeconds), the polling loop and terminal statuses, and the fact that image URLs expire and must be downloaded immediately. It also says that short media URLs must be used verbatim rather than rewritten. These are substantive behavioral details that the annotations cannot provide.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The structure is front-loaded and clearly sectioned (required fields, async/polling, reply rules), which helps scanning. However, the reply-format section is very long and repeats the same rules: '不要强行中文' appears twice, and the rhinobird link-preservation and no-plain-text rules are restated three times. Those repetitions do not earn their place in a tool definition.

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?

There is no output schema, yet the description fully specifies the return shape (taskId, initialSleepSeconds, intervalSeconds), the polling cadence, and the two terminal states with what to do in each. For an async generation tool with four required parameters, an agent has everything needed to submit, poll, and handle results correctly.

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%, and all four parameters have enum or range constraints documented in the schema. The description's 【必填字段】 block restates the same prompt, ratio, frameCount, and frameDuration facts, with no additional syntax, format, or interaction guidance. Baseline 3 applies because the schema does the heavy lifting and the description adds nothing.

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?

The opening line gives a specific verb and resource: 'AI 生成 GIF 图:根据文字提示词生成动图' (generate an animated GIF from a text prompt). It also distinguishes this tool from the polling sibling by stating that it returns task info immediately and does not block, and it names GetTask as the follow-up. That is enough to tell it apart from siblings such as AiGenerateSvg and GenerateVideo without opening any schema.

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?

The definition gives clear usage context: four required fields, an allowed ratio list, and an explicit instruction to poll GetTask rather than wait. It does not explain when to choose GIF instead of GenerateVideo or AiGenerateSvg, and it gives no exclusions or prerequisites such as credit cost. A clear context exists, but missing alternatives keep it below 5.

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