Skip to main content
Glama

Generate an AI video

generate_video
Destructive

Starts an AI video on the signed-in account, opens the aicut card and returns the job id at once; it does NOT wait. WHEN: the user asks for a video. Call list_models first this session (an unpublished combination is rejected); see get_recipe starter-video. CONSENT: a real person's picture only with their permission, never a public figure or celebrity. seedance-2.5 and seedance-2.0-mini often refuse a real person's image: say so BEFORE the ask, quote that it may be refused, and offer a generated character or another model. THE CARD: this call already opened the aicut card: do not call show_generation for this job. WAIT: wait_for_generation (this id, media), never timers or background shells. No card? Give the user the url. TIMING: a video takes 1-3 minutes, up to about 6: do not assume it failed before then. COST: this spends the user's tokens. SPENDS TOKENS: price with estimate_only: true, state the price in the same message as your ask, wait for a go naming THIS purchase (SPENDING RULES: get_recipe spending-rules). idempotency_key: IDEMPOTENCY (this server's instructions).

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": {
      "model": "<model>"
    },
    "name": "generate_video"
  }
}

Input Schema

NameRequiredDescriptionDefault
audioNoSound, on a model whose `list_models` entry has `audio` (it says if it costs extra). DEFAULTS TO TRUE: omitted, the video has sound; set `false` only when the user asked for a silent video. `audio_always_on` models have sound unless given a reference video. Only if the user asked; never to save tokens, never carried over.
modelYesModel id exactly as `list_models` returns it (e.g. `kling-3.0`). Use the one the user asked for; never substitute a cheaper model to save them tokens.
promptNoWhat the video should show; `list_models` gives the character limit.
scenesNoA storyboard instead of one prompt, returned as ONE video. Only where published (today `kling-3.0`): at most 5 scenes of 1-15s, 3-15s in total. Replaces `prompt`, `duration` and every image input; `model`, `resolution` and `aspect_ratio` stay REQUIRED. Priced as one generation of the combined duration; `estimate_only` first.
durationNoSeconds, one of the model's durations; longer costs more. Only if the user asked; never to save tokens, never carried over.
end_imageNo
keyframesNo
resolutionNoOne of the model's options (e.g. `1080p`); higher costs more. Only if the user asked; never to save tokens, never carried over.
start_imageNoStart image URL: a public https URL or this account's earlier generation.
aspect_ratioNoOne of the model's `aspect_ratios` (e.g. `9:16`).
character_idsNoIds of this account's UPLOADED characters (`kind: "uploaded"` in `list_characters`, up to 20, in order of appearance): a start frame placing them is drawn first (flat 0.2 tokens, included in `estimate_only`), so not with `scenes` or references. A `cast_member` id belongs to `generate_story_video`.
estimate_onlyNoPrice only; creates nothing.
studio_run_idNoThe open studio run's `run_id`; null = outside it; covered only under its run ticket, else its own priced ask.
idempotency_keyNoRetry key (IDEMPOTENCY).
reference_audiosNoSong to lip-sync (seedance-2.5) or voice sample (Kling 4, Wan 3.0; Kling: say @Audio1): `{url, start_seconds, end_seconds}` of own media; no window = whole file. For `list_models` role `reference_audio`, bounds in its medias; not with start/end images.
reference_imagesNoStyle or subject reference image URLs where the model accepts them; rules as `start_image`.
reference_videosNoReference video URLs where the model accepts them: own media or public (imported), never another account's.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / audio / description
      Previous value: -"Sound, on a model whose `list_models` entry has `audio` (it says if it costs extra). DEFAULTS TO FALSE: it renders SILENT unless set for the sound, dialogue or effects asked for. `audio_always_on` models have sound unless given a reference video. Only if the user asked; never to save tokens, never carried over."New value: +"Sound, on a model whose `list_models` entry has `audio` (it says if it costs extra). DEFAULTS TO TRUE: omitted, the video has sound; set `false` only when the user asked for a silent video. `audio_always_on` models have sound unless given a reference video. Only if the user asked; never to save tokens, never carried over."
  2. Changed1 schema field changed
    • changedInput schema / properties / reference_audios / description
      Previous value: -"Audio the video performs to (lip-sync): `{url, start_seconds, end_seconds}` of an own generation or upload; windows 2-30 s each, 30 s in total, no window = the whole file. Only where `list_models` roles include `reference_audio`; not with start/end images."New value: +"Song to lip-sync (seedance-2.5) or voice sample (Kling 4, Wan 3.0; Kling: say @Audio1): `{url, start_seconds, end_seconds}` of own media; no window = whole file. For `list_models` role `reference_audio`, bounds in its medias; not with start/end images."
  3. Changed1 schema field changed
    • changedInput schema / properties / audio / description
      Previous value: -"Sound on the video, where supported (`list_models` says whether it costs extra). DEFAULTS TO FALSE: a model sold on native audio still renders SILENT unless set for the sound, dialogue or effects the user asked for. Only if the user asked; never to save tokens, never carried over."New value: +"Sound, on a model whose `list_models` entry has `audio` (it says if it costs extra). DEFAULTS TO FALSE: it renders SILENT unless set for the sound, dialogue or effects asked for. `audio_always_on` models have sound unless given a reference video. Only if the user asked; never to save tokens, never carried over."
  4. Changed1 schema field changed
    • addedInput schema / properties / studio_run_id
      Added value: +{
      +  "description": "The open studio run's `run_id`; null = outside it; covered only under its run ticket, else its own priced ask.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
  5. Changed1 schema field changed
    • changedInput schema / properties / idempotency_key / description
      Previous value: -"Retry-safety key (IDEMPOTENCY)."New value: +"Retry key (IDEMPOTENCY)."
  6. Changed8 schema fields changed
    • removedInput schema / properties / end_image / description
      Removed value: -"End-frame image URL; rules as `start_image`."
    • addedInput schema / properties / keyframes
      Added value: +{
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "seconds": {
      +        "type": "number"
      +      },
      +      "url": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "url",
      +      "seconds"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • changedInput schema / properties / reference_images / description
      Previous value: -"Image URLs for style or subject references, where the model accepts them; rules as `start_image`."New value: +"Style or subject reference image URLs where the model accepts them; rules as `start_image`."
    • changedInput schema / properties / reference_videos / description
      Previous value: -"Reference video URLs, where the model accepts them: own media or a public video (imported), never another account's."New value: +"Reference video URLs where the model accepts them: own media or public (imported), never another account's."
    • changedInput schema / properties / scenes / description
      Previous value: -"A storyboard instead of one prompt, returned as ONE video. Only on models that publish it (today `kling-3.0`): at most 5 scenes, each 1-15s, 3-15s in total, else refused. Omit `prompt`/`duration`/`start_image`/`end_image`/`reference_images`; `model`, `resolution` and `aspect_ratio` stay REQUIRED. Priced as one generation of the combined duration; `estimate_only` first."New value: +"A storyboard instead of one prompt, returned as ONE video. Only where published (today `kling-3.0`): at most 5 scenes of 1-15s, 3-15s in total. Replaces `prompt`, `duration` and every image input; `model`, `resolution` and `aspect_ratio` stay REQUIRED. Priced as one generation of the combined duration; `estimate_only` first."
    • changedInput schema / properties / scenes / items / properties / duration / description
      Previous value: -"This scene's own length in seconds."New value: +"Scene seconds."
    • changedInput schema / properties / scenes / items / properties / prompt / description
      Previous value: -"This scene's own prompt: what happens in this shot."New value: +"This scene's own prompt."
    • changedInput schema / properties / start_image / description
      Previous value: -"Image URL to start from: a public https URL or this account's earlier generation."New value: +"Start image URL: a public https URL or this account's earlier generation."
  7. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true, openWorldHint=true and idempotentHint=false, but the description adds substantial context beyond them: asynchronous job semantics, the card already being opened, expected 1-3 (up to ~6) minute timing, token spend, and the idempotency key. It does not spell out what the destructive flag means in practice (e.g. what a failed/abandoned job leaves behind), which keeps it from a 5.

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?

Front-loaded with the core action and async behavior, then organized under clear labels (WHEN, CONSENT, THE CARD, WAIT, TIMING, COST). The telegraphic all-caps style is dense but each block carries actionable information; a few clauses (e.g. the repeated 'never to save tokens') are redundant with the schema.

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?

For a 17-parameter, no-output-schema, costly mutation tool, the description covers the critical unknowns: async return, timing expectations, cost/consent gating, card state, and the correct follow-up tool. An agent has enough to call it and handle the result correctly.

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 coverage is 88%, so the baseline is 3, but the description adds real meaning: `estimate_only: true` for pricing, `idempotency_key` tied to server idempotency instructions, and the consent constraint on real-person imagery. It does not add much for the many media-reference parameters, which the schema already documents.

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?

States a specific verb and resource ('Starts an AI video on the signed-in account') plus the key behavioral fact that it returns a job id immediately and does not wait. It explicitly distinguishes itself from siblings by naming `show_generation` and `wait_for_generation` as things not to do for this job.

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

Usage Guidelines5/5

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

Gives an explicit WHEN ('the user asks for a video'), a prerequisite (`list_models` first this session, unpublished combos rejected), consent rules for real people, and a fallback path (offer a generated character or another model) when seedance models may refuse. It also routes the agent to `get_recipe` starter-video and spending-rules.

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.