Skip to main content
Glama

Generate a video with AI

generate_video
Destructive

Start an AI video generation job (text-to-video, image-to-video, or an avatar reading a script). ASYNCHRONOUS: it returns a jobId; poll get_media_job until status is "done" to obtain the URL. Generation usually takes 1-5 minutes. Requires a provider configured by the organization (see list_media_providers). For a reel or Short, start with get_reel_playbook (the reel is built there); a clip from here can be one of its beats. This is one of the two ways; the other is Ignix Creator (get_creator_setup), with Ignix AI credits and no key. Ask which one only when both are available; otherwise use the one there is (no provider → Creator). Write a scene prompt following get_shot_guide("h3_clip"); with shot the server composes it and checks the minimum fields. SPENDS AI CREDITS ONLY WITH confirm: true. Call it first without confirm: nothing runs and nothing is charged, you get the quote (what it will do and the credits). Tell the user, in your own words, exactly that — including the options you chose, so they can change them — and wait for a clear yes before calling again with the same arguments and confirm: true. One yes covers the plan they approved (e.g. every line of an approved voice-over with the chosen voice); anything new or different needs a new yes.

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

Input Schema

NameRequiredDescriptionDefault
shotNoOptional structured shot: the server composes the prompt from it (after `prompt`, if any) and checks the minimum fields of its type (get_shot_guide).
aspectNoAspect ratio. Use 9:16 for reels, shorts and TikTok.
promptNoFor video providers: the scene to generate (optional with `shot`). For avatar providers: the exact SCRIPT the avatar will say.
confirmNotrue ONLY after the user said yes to the quote (what it does and the credits). Without it nothing runs and nothing is charged.
qualityNoQuality/cost trade-off, on the client's own key: 'high' = Kling pro mode / Veo 1080p (16:9 only, forces 8s); 'eco' = Veo fast model (fewer credits). Other providers ignore it.
voiceIdNoVoice for avatar providers.
avatarIdNoAvatar to use. Required for avatar providers (see list_avatar_options).
imageUrlNoStarting image for image-to-video (only providers with supportsImage).
providerYesProvider id from list_media_providers.
backgroundNoSolid background colour as #rrggbb hex (HeyGen avatar videos only).
workspaceIdNoWorkspace to work on (an id from list_workspaces). Not needed when this connection is tied to one workspace, or when you pass an account: the account's workspace is used.
attachToPostIdNoOptional: attach the finished video to this post automatically when the job ends.
idempotencyKeyNoOptional. A unique id for this action (16-128 chars: letters, digits, _ : . -). If you are unsure whether a call went through (timeout, network error), repeat it with the SAME idempotencyKey and the same arguments: you get the original result and nothing is done twice.
negativePromptNoWhat to AVOID in the video (Kling only; e.g. "on-screen text, crowds").
durationSecondsNoLength in seconds where the provider allows choosing: 5 or 10 (Runway, Kling); 4, 6 or 8 (Veo).

Output Schema

NameRequiredDescriptionDefault
jobIdNo
statusNo
promptTipNo
confirmTokenNo
promptWarningsNoWhat the server checked and found missing (warnings: it still generated). needs_customer_fact = ask the person before the next one.
estimatedCreditsNo
needsConfirmationNotrue = this is only the quote: nothing was done or charged.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • changedInput schema / properties / prompt / description
      Previous value: -"For video providers: the scene to generate. For avatar providers: the exact SCRIPT the avatar will say."New value: +"For video providers: the scene to generate (optional with `shot`). For avatar providers: the exact SCRIPT the avatar will say."
    • addedInput schema / properties / shot
      Added value: +{
      +  "description": "Optional structured shot: the server composes the prompt from it (after `prompt`, if any) and checks the minimum fields of its type (get_shot_guide).",
      +  "properties": {
      +    "action": {
      +      "description": "Beats with seconds: [\"0-2 s: …\", \"2-5 s: …\"].",
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "avoid": {
      +      "description": "What must not appear.",
      +      "type": "string"
      +    },
      +    "camera": {
      +      "description": "Shot type + movement + speed.",
      +      "type": "string"
      +    },
      +    "keep": {
      +      "description": "What must not change.",
      +      "type": "string"
      +    },
      +    "lens": {
      +      "description": "Images: lens and depth of field.",
      +      "type": "string"
      +    },
      +    "light": {
      +      "description": "Direction, hard/soft, colour temperature.",
      +      "type": "string"
      +    },
      +    "look": {
      +      "description": "Photo or illustration, colour treatment.",
      +      "type": "string"
      +    },
      +    "physics": {
      +      "description": "What moves on its own: hair, fabric, water, smoke.",
      +      "type": "string"
      +    },
      +    "sound": {
      +      "description": "Dialogue, music, ambience.",
      +      "type": "string"
      +    },
      +    "subjects": {
      +      "description": "Who or what appears; real = it exists (the customer, their product, their place).",
      +      "items": {
      +        "properties": {
      +          "kind": {
      +            "enum": [
      +              "person",
      +              "product",
      +              "place"
      +            ],
      +            "type": "string"
      +          },
      +          "name": {
      +            "type": "string"
      +          },
      +          "real": {
      +            "type": "boolean"
      +          }
      +        },
      +        "required": [
      +          "kind",
      +          "name",
      +          "real"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "where": {
      +      "description": "Place, time of day, weather.",
      +      "type": "string"
      +    },
      +    "who": {
      +      "description": "Age, looks, clothing, hair; people: real skin, natural hands.",
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "provider",
      -  "prompt"
      -]New value: +[
      +  "provider"
      +]
    • addedOutput schema / properties / promptTip
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / promptWarnings
      Added value: +{
      +  "description": "What the server checked and found missing (warnings: it still generated). needs_customer_fact = ask the person before the next one.",
      +  "items": {
      +    "properties": {
      +      "code": {
      +        "type": "string"
      +      },
      +      "message": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "code",
      +      "message"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
  2. Changed4 schema fields changed
    • addedOutput schema / properties / confirmToken
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / estimatedCredits
      Added value: +{
      +  "type": "number"
      +}
    • addedOutput schema / properties / needsConfirmation
      Added value: +{
      +  "description": "true = this is only the quote: nothing was done or charged.",
      +  "type": "boolean"
      +}
    • removedOutput schema / required
      Removed value: -[
      -  "jobId"
      -]
  3. First observed

TDQS

A4.6/5.0
Behavior4/5

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

The annotations only declare destructive/openWorld/idempotent flags; the description supplies the real behavioral picture: asynchronous jobId return, polling via get_media_job, a 1-5 minute runtime, and the two-call confirm-then-execute credit-spend protocol with quote semantics. The one gap is that it does not say what happens to the job or credits if the generation fails partway, though the confirm flow largely covers the money risk.

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 async contract and prerequisites before the longer confirm-consent paragraph, which is the riskiest part and justifies its length. It is dense and runs long, with the credit/confirm rule restated in both the body and the schema, but no sentence is filler.

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 15-parameter, nested-schema, async, credit-spending tool with an output schema, the description covers everything an agent needs: return shape (jobId), follow-up step, latency bound, provider prerequisite, alternative path, prompt guidance, and the spend-consent loop.

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 already 100%, so the baseline is 3. The description still adds meaning beyond the schema by explaining that passing `shot` makes the server compose and validate the prompt after any `prompt`, and by requiring the prompt follow get_shot_guide("h3_clip") — semantics the schema text does not carry.

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 ("Start an AI video generation job") and enumerates the three modes (text-to-video, image-to-video, avatar script). It explicitly distinguishes itself from the sibling alternatives get_reel_playbook and the Ignix Creator path, so an agent can place it 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 Guidelines5/5

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

Gives explicit when-to-use and when-not-to guidance: reels start at get_reel_playbook (a clip here is only a beat), and the Ignix Creator is the other path when no provider is configured. It also resolves the choice rule ("Ask which one only when both are available; otherwise use the one there is") and points at get_shot_guide for prompt authoring.

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