Skip to main content
Glama

generate_video

Create a video generation task and return its task_id. mode defaults to image-to-video when image_urls are given, else video-to-video when video_urls are given, else text-to-video. Omitted duration, resolution and aspect_ratio use the mode's defaults from get_video_model and are billed at those values. Ultra ViewMax C1 generations cost 0 credits within the daily fair-use pool (also via REST API); otherwise this consumes credits from the authenticated ViewMax account. Call wait_for_task with the task_id until it finishes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNo
audioNo
modelYes
promptYes
durationNo
image_urlsNo
resolutionNo
video_urlsNo
aspect_ratioNo
idempotency_keyNoOptional, 1-200 visible ASCII characters without spaces. Reuse the same key when retrying after a timeout; a repeated key returns the original task and is not charged again.
source_video_duration_secondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / idempotency_key
      Added value: +{
      +  "description": "Optional, 1-200 visible ASCII characters without spaces. Reuse the same key when retrying after a timeout; a repeated key returns the original task and is not charged again.",
      +  "pattern": "^[\\x21-\\x7e]{1,200}$",
      +  "type": "string"
      +}
  2. Changed2 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / additionalProperties
      Removed value: -false
  3. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations only declare readOnly=false/openWorld=true/idempotent=false/destructive=false; the description adds real behavioral context beyond them: credit consumption tied to the authenticated ViewMax account, the Ultra ViewMax C1 daily fair-use pool, that omitted duration/resolution/aspect_ratio are billed at mode defaults, and that the call is asynchronous and must be polled. It does not restate what the idempotency_key schema field already covers.

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?

Four dense sentences, front-loaded with the action and return value, then mode derivation, then billing, then the follow-up call. No filler and nothing buried.

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?

With no output schema, the description correctly supplies the return contract (task_id plus the wait_for_task polling instruction) and the billing/account context an agent needs before spending credits. Gaps remain around the audio and source_video_duration_seconds parameters and model selection, but the core workflow is complete.

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 only 9% (just idempotency_key), so the description must compensate, and it does for mode, image_urls/video_urls, duration, resolution and aspect_ratio, including that defaults are resolved via get_video_model and billed at those values. It leaves model, prompt, audio and source_video_duration_seconds unexplained, so it is not fully 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 specific verb+resource: 'Create a video generation task and return its task_id.' That immediately distinguishes it from siblings like generate_image, generate_music and generate_speech, and the return value is named up front.

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?

It gives explicit mode-selection logic (image_urls -> image-to-video, video_urls -> video-to-video, else text-to-video) and routes the agent to get_video_model for defaults and wait_for_task for polling. It never states when video generation is the wrong sibling (e.g., vs generate_image), but the operational guidance is otherwise strong.

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.