Skip to main content
Glama

generate_video

Make or create a short AI video from text or a photo (text to video, image to video, animate a photo, vertical clips for Reels and TikTok). Use this whenever the user wants a video made, even if they do not name Dora. Defaults: Seedance 2 Mini (seedance_2_mini), the Dora default video model, 4s, 720p, with audio. Do not ask about model or resolution: use these defaults and change one only when the user asks. Pick aspect_ratio from where the person will use it (story, reel, TikTok, Shorts: 9:16; YouTube: 16:9; Instagram post or carousel: 1:1 unless they prefer vertical; unknown: 9:16), and offer lengths with the cost_by_seconds from list_models. For character consistency across shots (e.g. a recurring person), pass extra face/body anchor photos in reference_image_urls — Seedance 2 / 2-fast use up to 7 references. MOTION CONTROL: model kling_2_6_motion transfers the motion of a driving video onto the person in your image — pass the person photo in image_url AND the driving clip URL in motion_video_url (both required); the clip must be 3 to 30 seconds. It is billed per second of the clip, which Dora measures itself (duration is ignored for this model), so the FIRST call never charges: it returns status "quote" with cost_coins. Tell the user that cost and get a yes, then call generate_video again with the same arguments plus confirm_cost_coins set to exactly that number. If the clip cannot be measured or is shorter than 3 s or longer than 30 s, nothing is charged and the result says what to do. Returns job_id; poll check_job until status=done.

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
photosNoPhotos the user attached in this chat. Use this for attachments; image URL fields are only for public https links.
promptYes
durationNo
image_urlNoFirst-frame / primary input image for image-to-video. Optional. For multi-ref, also pass reference_image_urls.
resolutionNo480p cheapest; 1080p ~5x cost. Default 720p (the lowest the model offers above it if it has no 720p).
with_audioNoGenerate sound. Default true on models with optional audio (it costs more); pass false for silence.
aspect_ratioNoStory, reel, TikTok, Shorts: 9:16. YouTube: 16:9. Instagram post or carousel: 1:1 unless they prefer vertical 9:16. Unknown: 9:16 (the default).
motion_video_urlNoDriving/reference VIDEO URL for Motion Control (model kling_2_6_motion only). The motion of this clip is applied to the person in image_url. Required for kling_2_6_motion; ignored by other models. Must be a publicly reachable mp4/mov.
confirm_cost_coinsNoMotion Control (kling_2_6_motion) only. Leave it out on the first call: the result is a quote with cost_coins and nothing is charged. After the user agrees to that cost, call again with this set to exactly that number.
reference_image_urlsNoExtra reference images (Seedance 2 / 2-fast accept up to 7 total including image_url). Use for character face/body anchors, multiple people, style references. Order matters — most important reference first.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / aspect_ratio / enum
      Previous value: -[
      -  "16:9",
      -  "9:16",
      -  "1:1"
      -]New value: +[
      +  "9:16",
      +  "2:3",
      +  "3:4",
      +  "1:1",
      +  "4:3",
      +  "3:2",
      +  "16:9",
      +  "21:9",
      +  "auto",
      +  "adaptive"
      +]
    • changedInput schema / properties / duration / enum
      Previous value: -[
      -  1,
      -  2,
      -  3,
      -  4,
      -  5,
      -  6,
      -  8,
      -  10,
      -  12,
      -  15
      -]New value: +[
      +  1,
      +  2,
      +  3,
      +  4,
      +  5,
      +  6,
      +  8,
      +  10,
      +  12,
      +  15,
      +  20,
      +  25,
      +  30
      +]
  2. Changed3 schema fields changed
    • addedInput schema / properties / aspect_ratio / description
      Added value: +"Story, reel, TikTok, Shorts: 9:16. YouTube: 16:9. Instagram post or carousel: 1:1 unless they prefer vertical 9:16. Unknown: 9:16 (the default)."
    • addedInput schema / properties / confirm_cost_coins
      Added value: +{
      +  "description": "Motion Control (kling_2_6_motion) only. Leave it out on the first call: the result is a quote with cost_coins and nothing is charged. After the user agrees to that cost, call again with this set to exactly that number.",
      +  "type": "integer"
      +}
    • changedInput schema / properties / resolution / description
      Previous value: -"480p cheapest; 1080p ~5x cost. Default 480p."New value: +"480p cheapest; 1080p ~5x cost. Default 720p (the lowest the model offers above it if it has no 720p)."
  3. Changed1 schema field changed
    • changedInput schema / properties / model / enum
      Previous value: -[
      -  "seedance_2_mini",
      -  "grok_text_to_video",
      -  "grok_image_to_video",
      -  "grok_1_5",
      -  "kling_2_6",
      -  "kling_2_6_motion",
      -  "veo_3",
      -  "seedance_2_fast",
      -  "seedance_2"
      -]New value: +[
      +  "seedance_2_mini",
      +  "grok_text_to_video",
      +  "grok_image_to_video",
      +  "grok_1_5",
      +  "kling_2_6",
      +  "kling_2_6_motion",
      +  "seedance_2_fast",
      +  "seedance_2"
      +]
  4. Changed2 schema fields changed
    • addedInput schema / $defs
      Added value: +{
      +  "AttachedFile": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "download_url": {
      +        "type": "string"
      +      },
      +      "file_id": {
      +        "type": "string"
      +      },
      +      "file_name": {
      +        "type": "string"
      +      },
      +      "mime_type": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "download_url",
      +      "file_id"
      +    ],
      +    "type": "object"
      +  }
      +}
    • addedInput schema / properties / photos
      Added value: +{
      +  "description": "Photos the user attached in this chat. Use this for attachments; image URL fields are only for public https links.",
      +  "items": {
      +    "$ref": "#/$defs/AttachedFile"
      +  },
      +  "maxItems": 7,
      +  "type": "array"
      +}
  5. Changed1 schema field changed
    • changedInput schema / properties / with_audio / description
      Previous value: -"Generate sound. SeeDance/Kling support audio — typically doubles cost. Default false."New value: +"Generate sound. Default true on models with optional audio (it costs more); pass false for silence."
  6. Changed1 schema field changed
    • changedInput schema / properties / model / enum
      Previous value: -[
      -  "seedance_1_5_pro",
      -  "grok_text_to_video",
      -  "grok_image_to_video",
      -  "grok_1_5",
      -  "kling_2_6",
      -  "kling_2_6_motion",
      -  "veo_3",
      -  "seedance_2_fast",
      -  "seedance_2"
      -]New value: +[
      +  "seedance_2_mini",
      +  "grok_text_to_video",
      +  "grok_image_to_video",
      +  "grok_1_5",
      +  "kling_2_6",
      +  "kling_2_6_motion",
      +  "veo_3",
      +  "seedance_2_fast",
      +  "seedance_2"
      +]
  7. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only say it is a non-read-only, open-world, non-destructive call; the description goes far beyond that. It discloses the billing contract (first kling_2_6_motion call returns status 'quote' and never charges, then confirm_cost_coins must match exactly), that duration is ignored and Dora measures clip length itself, the 3-30s bounds, and the job_id/poll return flow.

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?

Defaults are front-loaded and the MOTION CONTROL block is clearly separated, so an agent can scan to the relevant path. It is dense and long, with some repetition of schema wording, but almost every sentence carries operational information.

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 an 11-parameter generation tool with no output schema, the definition covers the default path, the aspect-ratio decision, the reference-image path, the quote/confirm billing flow, and the polling follow-up. An agent could call it correctly end-to-end without additional context.

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 73%, and the description adds real meaning for the ambiguous parameters: the default model (seedance_2_mini), how reference_image_urls enables character consistency with up to 7 refs, and how motion_video_url pairs with image_url. Some text (aspect_ratio, resolution, with_audio guidance) largely restates what the schema already documents, which keeps it from a 5.

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 description opens with a specific verb and resource ('Make or create a short AI video') and enumerates the concrete modes: text to video, image to video, animate a photo, vertical clips for Reels/TikTok. It is unmistakably distinct from siblings like generate_image, check_job, and list_models.

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?

It gives explicit when-to-use ('use this whenever the user wants a video made, even if they do not name Dora') plus when-not-to-ask guidance ('Do not ask about model or resolution'). It also routes to alternatives in-line: list_models for cost_by_seconds/lengths and check_job for polling.

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.