Skip to main content
Glama

generateVideo

Start AI video generation from a prompt. Use listModels with kind=video to check models, supported lengths, and video credit costs. Confirm the model and cost with the user first. The finished video is saved as a draft and is not published. Check progress with getVideoStatus.

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": {
      "contentGroupId": "<contentGroupId>",
      "prompt": "<prompt>"
    },
    "name": "generateVideo"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelNoA model id from GET /v1/models?kind=video (cost shown there; default google/veo-3.1-fast). The old names veo-3.1-fast-generate-preview and veo-3.1-generate-preview still work and run on google/veo-3.1-fast and google/veo-3.1.
promptYesDescription of the video content to generate
durationNoSeconds. Default 8. Must be a length the model supports (see `durations` in listModels).
aspectRatioNoDefault: 9:16
contentGroupIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / duration / description
      Previous value: -"Seconds. Default 8. Must be a length the model supports (see `durations` in listModels). Built-in Veo models: 4, 6, or 8; Sora: 4, 8, or 12."New value: +"Seconds. Default 8. Must be a length the model supports (see `durations` in listModels)."
    • changedInput schema / properties / model / description
      Previous value: -"A model id from GET /v1/models?kind=video (cost shown there; default google/veo-3.1-fast), or a built-in name: sora-2 (1 credit), sora-2-pro (3). The old names veo-3.1-fast-generate-preview and veo-3.1-generate-preview still work and run on google/veo-3.1-fast and google/veo-3.1."New value: +"A model id from GET /v1/models?kind=video (cost shown there; default google/veo-3.1-fast). The old names veo-3.1-fast-generate-preview and veo-3.1-generate-preview still work and run on google/veo-3.1-fast and google/veo-3.1."
  2. Changed1 schema field changed
    • changedInput schema / properties / model / description
      Previous value: -"A model id from GET /v1/models?kind=video (cost shown there), or a built-in name: veo-3.1-fast-generate-preview (default, 1 credit), veo-3.1-generate-preview (3), sora-2 (1), sora-2-pro (3)."New value: +"A model id from GET /v1/models?kind=video (cost shown there; default google/veo-3.1-fast), or a built-in name: sora-2 (1 credit), sora-2-pro (3). The old names veo-3.1-fast-generate-preview and veo-3.1-generate-preview still work and run on google/veo-3.1-fast and google/veo-3.1."
  3. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, openWorldHint=true, idempotentHint=false, and destructiveHint=false, so the bar is lower. The description still adds real context beyond them: generation consumes video credits, the output is saved as a draft and is not published, and the user should confirm cost first. It does not state that repeat calls create separate jobs (consistent with idempotentHint=false) or what the response contains, 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.

Conciseness5/5

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

Five short sentences, front-loaded with the action, then prerequisites, then the confirmation requirement, then the side effect, then the follow-up. No sentence is filler and nothing is buried mid-paragraph.

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 an async generation tool with no output schema, the description covers cost, draft status, and progress-checking, which is what an agent needs to call it safely. The remaining gap is that it never says the call returns an id needed for getVideoStatus, forcing the agent to infer the linkage.

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 80%, so the schema already documents model, prompt, duration, and aspectRatio with defaults. The description only adds indirect guidance by pointing to listModels for valid model ids, supported durations, and credit cost. It says nothing about contentGroupId, the second required parameter, which is undocumented in both places.

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 AI video generation from a prompt') and clearly frames this as the entry point that kicks off a job. It names the discovery sibling listModels and the follow-up getVideoStatus, so an agent can place it in the workflow without opening other schemas.

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 sequencing guidance: call listModels with kind=video first to check models and supported lengths, then confirm model and cost with the user before calling, then poll getVideoStatus. That is when-to-use, prerequisites, and the next step in one short paragraph.

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