Skip to main content
Glama

Generate a video

generate_video

Use to make a video clip from a prompt, or to animate an image (image_url as the first frame). Priced per second by model and resolution (default Gemini Omni Flash: 17 credits/s at 720p); call recommend_video_model or estimate_generation first for anything over 100 credits. Credits are reserved and refunded on failure. Waits ~40 s, then returns the job; the user sees it in a card. Poll check_job.

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
audioNoSound, where the model makes it.
modelNoVideo model id; the default if omitted.
themeNoA brand kit (name, id or 'default') to keep it on brand.
promptYesWhat happens: subject, action, camera, sound.
durationNoSeconds; fitted to what the model allows.
characterNoA saved Character (name or id); for their exact face, start from a generate_image frame made with character.
image_urlNoStart frame (http URL from confirm_upload or search_assets).
resolutionNoA price tier the model offers, e.g. 480p, 720p, 1080p.
aspect_ratioNoDefault 16:9; with image_url the image's own shape unless set.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / character
      Added value: +{
      +  "description": "A saved Character (name or id); for their exact face, start from a generate_image frame made with character.",
      +  "type": "string"
      +}
  2. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing the pricing basis (per second, by model and resolution, with a concrete default rate), that credits are reserved and refunded on failure, and the ~40 s blocking latency before a job is returned. Annotations only flag openWorldHint and non-idempotency; the description supplies the operational and cost picture, though it doesn't state what happens on timeout or whether retries double-charge.

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?

Roughly 70 words across five sentences, front-loaded with the purpose, then cost guidance, then failure semantics, then the blocking/polling model. 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 9-parameter generative tool with no output schema, the description still explains what comes back (a job, surfaced to the user as a card) and how to follow up (poll check_job), plus the credit lifecycle. Nothing an agent needs to call this correctly is missing.

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 100%, so the baseline is 3. The description adds light context by tying model and resolution to price and naming the default model, but most parameter meaning (theme, character, aspect_ratio behavior) is already carried by the schema descriptions.

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 ('make a video clip from a prompt') and covers the second mode ('animate an image with image_url as the first frame'). It is readily distinguishable from siblings like generate_image and generate_music, and names check_job as the follow-up.

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 conditional routing: call recommend_video_model or estimate_generation first for anything over 100 credits, and poll check_job after the call returns. The two invocation modes are spelled out with the parameter that selects each one.

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.