Skip to main content
Glama
mordor-forge

gemini-media-mcp

by mordor-forge

Generate video

generate_video

Create video clips from text prompts with native audio, optionally using first/last frames or reference images. Submit the job and retrieve the result by job ID.

Instructions

Start a video clip with native audio from a text prompt, optionally from a first frame, first+last frames, or reference images. Default omni (Gemini Omni Flash: 3-10s, cheap 360p drafts up to 4K, up to 10 references). On Vertex AI the default is Veo lite; fast/standard add Veo 4K and ingredients. Veo is leaving the Gemini API (list_models has the date). estimate_cost prices any option. Asynchronous: returns a jobId; then call get_video.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
seedNoSeed for more repeatable results (Vertex AI only; ignored on the Gemini API).
imageNoOptional first frame (image-to-video): file path, gemini-media:// URI or data: URI.
modelNoModel ID or alias: omni (default on the Gemini API: Gemini Omni Flash, best prompt adherence, editable and extendable to 40 s), lite (cheapest Veo; the default on Vertex AI), fast (Veo 4K, ingredients) or standard (highest Veo quality). Veo is leaving the Gemini API: list_models shows its shutdown date. See list_models.
promptYesWhat happens in the clip: subject and action, camera movement, setting, lighting, style, and sound (dialogue in quotes, sound effects, ambience, music).
lastFrameNoOptional last frame; requires image. Veo interpolates between the two.
outputNameNoOptional base file name for the saved video.
resolutionNo720p (default), 1080p or 4k (not lite); omni also 360p for fast drafts. Veo 1080p and 4k require 8-second clips.
aspectRatioNo16:9 (default) or 9:16
waitSecondsNoBlock up to this many seconds for the result (default 0 = return a job handle immediately). Keep under your client's tool timeout.
generateAudioNoVertex AI only: set false for silent video at a lower price. The Gemini API always generates audio.
negativePromptNoWhat to avoid, as plain nouns (e.g. 'text overlays, blur'). For omni it is appended to the prompt.
approvedCostUsdNoOnly needed above the confirmation threshold: the cost in USD the user approved.
durationSecondsNoClip length: Veo 4, 6 or 8 seconds; omni 3-10 seconds (default 8).
referenceImagesNoImages of characters, objects, products or styles to keep consistent: Veo fast/standard up to 3 (forces 8s, not with image/lastFrame); omni up to 10 including frames (name them <IMAGE_REF_0>... in the prompt).
personGenerationNoallow_all, allow_adult or dont_allow. The Gemini API requires allow_all for text-to-video and allow_adult for image-based modes.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
costYes
nextNoSuggested next step
errorNo
filesNo
jobIdYesOpaque handle; pass it to get_video, extend_video or edit_video
modelYes
stateYesworking, completed, failed or filtered
warningsNo
elapsedSecondsYes
remoteExpiresAtNoWhen Google deletes the server-side copy; extend before this time

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed27 schema fields changedv1.1.0
    • addedInput schema / properties / approvedCostUsd
      Added value: +{
      +  "description": "Only needed above the confirmation threshold: the cost in USD the user approved.",
      +  "type": "number"
      +}
    • changedInput schema / properties / aspectRatio / description
      Previous value: -"Aspect ratio (16:9 or 9:16)"New value: +"16:9 (default) or 9:16"
    • removedInput schema / properties / duration
      Removed value: -{
      -  "description": "Clip duration in seconds (4, 6, or 8)",
      -  "type": "integer"
      -}
    • addedInput schema / properties / durationSeconds
      Added value: +{
      +  "description": "Clip length: Veo 4, 6 or 8 seconds; omni 3-10 seconds (default 8).",
      +  "type": "integer"
      +}
    • addedInput schema / properties / generateAudio
      Added value: +{
      +  "description": "Vertex AI only: set false for silent video at a lower price. The Gemini API always generates audio.",
      +  "type": [
      +    "null",
      +    "boolean"
      +  ]
      +}
    • addedInput schema / properties / image
      Added value: +{
      +  "description": "Optional first frame (image-to-video): file path, gemini-media:// URI or data: URI.",
      +  "type": "string"
      +}
    • addedInput schema / properties / lastFrame
      Added value: +{
      +  "description": "Optional last frame; requires image. Veo interpolates between the two.",
      +  "type": "string"
      +}
    • changedInput schema / properties / model / description
      Previous value: -"Model tier: lite (default/cheapest), fast, or standard (highest quality). Raw model IDs also accepted"New value: +"Model ID or alias: omni (default on the Gemini API: Gemini Omni Flash, best prompt adherence, editable and extendable to 40 s), lite (cheapest Veo; the default on Vertex AI), fast (Veo 4K, ingredients) or standard (highest Veo quality). Veo is leaving the Gemini API: list_models shows its shutdown date. See list_models."
    • addedInput schema / properties / negativePrompt
      Added value: +{
      +  "description": "What to avoid, as plain nouns (e.g. 'text overlays, blur'). For omni it is appended to the prompt.",
      +  "type": "string"
      +}
    • addedInput schema / properties / outputName
      Added value: +{
      +  "description": "Optional base file name for the saved video.",
      +  "type": "string"
      +}
    • addedInput schema / properties / personGeneration
      Added value: +{
      +  "description": "allow_all, allow_adult or dont_allow. The Gemini API requires allow_all for text-to-video and allow_adult for image-based modes.",
      +  "type": "string"
      +}
    • changedInput schema / properties / prompt / description
      Previous value: -"Text description of the video to generate. Include audio cues for sound design"New value: +"What happens in the clip: subject and action, camera movement, setting, lighting, style, and sound (dialogue in quotes, sound effects, ambience, music)."
    • addedInput schema / properties / referenceImages
      Added value: +{
      +  "description": "Images of characters, objects, products or styles to keep consistent: Veo fast/standard up to 3 (forces 8s, not with image/lastFrame); omni up to 10 including frames (name them <IMAGE_REF_0>... in the prompt).",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": [
      +    "null",
      +    "array"
      +  ]
      +}
    • changedInput schema / properties / resolution / description
      Previous value: -"Output resolution: 720p, 1080p, or 4k (lite supports 720p/1080p only)"New value: +"720p (default), 1080p or 4k (not lite); omni also 360p for fast drafts. Veo 1080p and 4k require 8-second clips."
    • addedInput schema / properties / seed
      Added value: +{
      +  "description": "Seed for more repeatable results (Vertex AI only; ignored on the Gemini API).",
      +  "type": [
      +    "null",
      +    "integer"
      +  ]
      +}
    • addedInput schema / properties / waitSeconds
      Added value: +{
      +  "description": "Block up to this many seconds for the result (default 0 = return a job handle immediately). Keep under your client's tool timeout.",
      +  "type": "integer"
      +}
    • addedOutput schema / properties / cost
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "basis": {
      +      "description": "How usd was derived: usage_metadata, unit_params, token_estimate or unpriced",
      +      "type": "string"
      +    },
      +    "breakdown": {
      +      "type": "string"
      +    },
      +    "estimatedUsd": {
      +      "description": "Estimate computed before the call from the price table",
      +      "type": "number"
      +    },
      +    "pending": {
      +      "description": "True while a video job is still running (cost is reserved, not final)",
      +      "type": "boolean"
      +    },
      +    "priceAsOf": {
      +      "type": "string"
      +    },
      +    "usd": {
      +      "description": "Best-known cost in USD; reconciled from token usage when the API reports it",
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "estimatedUsd",
      +    "usd",
      +    "basis"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / elapsedSeconds
      Added value: +{
      +  "type": "integer"
      +}
    • addedOutput schema / properties / error
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / files
      Added value: +{
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "bytes": {
      +        "type": "integer"
      +      },
      +      "durationSeconds": {
      +        "type": "number"
      +      },
      +      "height": {
      +        "type": "integer"
      +      },
      +      "mimeType": {
      +        "type": "string"
      +      },
      +      "name": {
      +        "type": "string"
      +      },
      +      "path": {
      +        "description": "Absolute path of the saved file on the server's filesystem",
      +        "type": "string"
      +      },
      +      "uri": {
      +        "description": "MCP resource URI; pass it back as an input to other tools or read it with resources/read",
      +        "type": "string"
      +      },
      +      "width": {
      +        "type": "integer"
      +      }
      +    },
      +    "required": [
      +      "path",
      +      "uri",
      +      "name",
      +      "mimeType",
      +      "bytes"
      +    ],
      +    "type": "object"
      +  },
      +  "type": [
      +    "null",
      +    "array"
      +  ]
      +}
    • addedOutput schema / properties / jobId
      Added value: +{
      +  "description": "Opaque handle; pass it to get_video, extend_video or edit_video",
      +  "type": "string"
      +}
    • addedOutput schema / properties / next
      Added value: +{
      +  "description": "Suggested next step",
      +  "type": "string"
      +}
    • removedOutput schema / properties / operationId
      Removed value: -{
      -  "type": "string"
      -}
    • addedOutput schema / properties / remoteExpiresAt
      Added value: +{
      +  "description": "When Google deletes the server-side copy; extend before this time",
      +  "type": [
      +    "null",
      +    "string"
      +  ]
      +}
    • addedOutput schema / properties / state
      Added value: +{
      +  "description": "working, completed, failed or filtered",
      +  "type": "string"
      +}
    • addedOutput schema / properties / warnings
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": [
      +    "null",
      +    "array"
      +  ]
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "operationId",
      -  "model"
      -]New value: +[
      +  "jobId",
      +  "state",
      +  "model",
      +  "elapsedSeconds",
      +  "cost"
      +]
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare write/openWorld/not-idempotent; the description adds the genuinely load-bearing behaviors: the call is asynchronous and returns a jobId requiring a second call to get_video, and a cost-confirmation threshold gates execution (approvedCostUsd is 'only needed above the confirmation threshold'). It also discloses platform-dependent defaults and that audio is always generated on the Gemini API, which no annotation conveys.

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-loads what the tool does and its input modes, then layers model, cost, and async details in decreasing priority with zero filler sentences. It is dense and model-variant heavy in a single block, which slightly taxes scanning, but every sentence carries actionable 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 a 15-parameter generative tool with an output schema present, the description covers what remains necessary: input modes, model selection and defaults per platform, pricing path, and the asynchronous follow-up call. Return values are covered by the output schema, so nothing critical is missing.

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, but the description adds decision-level meaning: platform-specific model defaults, the omni 3-10s range and reference-count differences, and the cost-approval gating on approvedCostUsd. Cross-parameter interactions (lastFrame requires image, referenceImages forces 8s) live mainly in the schema, so this is additive rather than complete.

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?

Opens with a precise verb+resource ('Start a video clip with native audio from a text prompt') and immediately enumerates the supported input modes (first frame, first+last frames, reference images). It names the sibling follow-up tool (get_video) and the advisory siblings (estimate_cost, list_models), so an agent can separate this from generate_image, edit_video, and extend_video without opening a schema.

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

Usage Guidelines4/5

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

Gives clear routing context: default model differs by platform (omni on Gemini API, Veo lite on Vertex), estimate_cost should be used to price options, and list_models carries Veo's shutdown date. It also states the async workflow (call get_video after jobId). It stops short of explicit when-not-to-use guidance versus extend_video or edit_video, so it is strong but not exhaustive.

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