Skip to main content
Glama

Wait for Video Completion

veo_wait_for_video
Read-onlyIdempotent

Poll a video generation operation until it completes or fails, returning final status and video URLs so workflows can wait for the result.

Instructions

Poll a video generation operation until it completes or fails.

This tool continuously checks the operation status until the video is ready, making it convenient for workflows that need to wait for the result.

Args:

  • operation_name (string): The operation name from a generation request

  • poll_interval_seconds (number): Seconds between checks (default: 10, range: 5-60)

  • timeout_seconds (number): Maximum wait time (default: 300, range: 30-600)

  • response_format ('markdown' | 'json'): Output format

Returns: Final operation status with video URLs if successful, or error details if failed.

Notes:

  • Video generation typically takes 11 seconds to 6 minutes

  • Consider using longer timeouts for complex videos

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": {
      "operation_name": "<operation_name>"
    },
    "name": "veo_wait_for_video"
  }
}

Input Schema

NameRequiredDescriptionDefault
operation_nameYesThe operation name returned from a video generation request
response_formatNoOutput format: 'markdown' for human-readable or 'json' for machine-readablemarkdown
timeout_secondsNoMaximum seconds to wait before timing out (default: 300)
poll_interval_secondsNoSeconds between status checks (default: 10)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered. The description adds genuinely new behavioral context: polling loop semantics, default/range for poll interval and timeout, and the realistic 11-second to 6-minute generation window. It omits what happens when the timeout elapses (error vs. pending status), which is the one meaningful gap.

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?

Front-loads the core action in the first sentence, then layers Returns and Notes in clearly labelled sections. The Args list duplicates the schema slightly, but it is short, scannable, and no sentence is filler.

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 Returns section usefully describes the success and failure payloads, and the Notes supply timing expectations an agent needs to set sensible timeouts. The only missing piece is the behavior on timeout expiry, which is relevant for a blocking poll tool.

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 100%, so the baseline is 3, but the description adds tuning guidance beyond the schema: the typical generation duration and the advice to use longer timeouts for complex videos. The Args block largely restates the schema, but that extra operational hint justifies going above baseline.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: 'Poll a video generation operation until it completes or fails', and clarifies that it 'continuously checks the operation status'. This differentiates it in spirit from a single-check status tool, but it never names veo_get_operation_status, so the boundary is inferred rather than stated.

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

Usage Guidelines3/5

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

Gives a usage context: 'convenient for workflows that need to wait for the result', which implies blocking/waiting scenarios. However it offers no explicit exclusions or routing to the sibling tools (e.g. use veo_get_operation_status for a single non-blocking check), so the agent must infer when not to use it.

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