Skip to main content
Glama

准备人物与分镜衔接

prepare_story_shot
Read-onlyIdempotent

Merges project settings, character references, and start/end states into next-shot parameters, returning a reusable context to save locally and pass forward for consistent multi-shot continuity.

Instructions

不收费、不生成:按 AI 创作网页的规则,把项目设定、人物基准图、起止状态合并成下一镜生成参数。将返回的 next_shot_context 保存到本地项目文件并在后续镜头传回,避免依赖聊天记忆;素材不兼容时明确报错,不丢弃人物图。

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": {
      "operation_id": "<operation_id>",
      "model": "<model>",
      "prompt": "<prompt>"
    },
    "name": "prepare_story_shot"
  }
}

Input Schema

NameRequiredDescriptionDefault
nNo图片张数,原样带入返回的生成参数
briefNo各镜头共同的故事、画风、场景设定
imageNo视频首帧或单张编辑参考图:HTTPS、JPEG/PNG/WebP data URL 或本地图片路径
modelYes先从 list_media_models 选择可用模型
promptYes用户希望生成的内容
durationNo视频秒数,原样带入返回的生成参数
end_stateNo这一镜结束时的状态,返回为下一镜的 start_state
charactersNo本镜出场人物;沿用同一组基准图和外观描述
credentialNo密钥别名;多把密钥时必填,不能传密钥本身
resolutionNo模型支持的清晰度;以 list_media_models 为准
start_stateNo继承上一镜的结束状态,包括人物位置、道具、朝向
aspect_ratioNo模型支持的比例;图片默认 1:1,视频默认 16:9
operation_idYes本次创作唯一标识,例如 UUID。重试同一请求须复用原值,防止重复提交;新的用户需求才用新值
reference_imagesNo有序参考图片列表;格式同 image,素材合计不超过 14 MB。Grok 图片最多 3 张,视频经典版 7/1.5 版 14 张;已适配 Seedance 2.0 最多 9/2.5 最多 14 张、Kling Omni 7 张、Midjourney 10 张、部分 GPT Image 14 张。准确型号与首帧组合限制以 list_media_models.inputs 为准

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0-rc.13

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly, non-destructive and idempotent, and the description adds genuinely useful behavior: no charge, no generation, an explicit error when materials are incompatible, and the guarantee that character images are not discarded. It also names the returned artifact (next_shot_context), which annotations cannot convey.

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?

The cost/no-generation constraint is front-loaded and the rest is dense but purposeful, covering output handling and the error policy in two sentences. Minor redundancy in restating the no-generation point, but no filler.

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?

For a 14-parameter preparation tool with no output schema, the description supplies the missing return-value concept (next_shot_context) and the failure mode, which is what an agent most needs. It stops short of describing the full return payload or how incompatibility is reported.

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 coverage is 100%, so all 14 parameters are already documented. The description reinforces the roles of the setting/brief, character reference images and start/end state, but adds no syntax or format detail beyond the 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 states a concrete action: merging project settings, character reference images and start/end state into the generation parameters for the next shot, and explicitly says it does not generate or charge. This separates it from generate_image/generate_video in spirit, though it never names those siblings directly.

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?

Usage is implied through the workflow: the returned next_shot_context must be saved locally and passed back for subsequent shots so the agent does not rely on chat memory. There is no explicit statement of when to prefer this over calling a generation tool, nor any when-not condition.

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