Skip to main content
Glama

download_video

Idempotent

Download a completed video to disk after generation. Provide video ID and optional filename to save the video, thumbnail, or spritesheet locally.

Instructions

Download a completed video to disk.

IMPORTANT: Only call this AFTER get_video_status shows status='completed'. If the video is not completed, this will fail.

The video is automatically saved to the directory configured in VIDEO_PATH. Returns the filename of the downloaded file.

Parameters:

  • video_id: The ID from create_video or remix_video (required)

  • filename: Custom filename (optional, defaults to video_id with appropriate extension)

  • variant: What to download (default: "video")

    • "video" -> MP4 video file

    • "thumbnail" -> WEBP thumbnail image

    • "spritesheet" -> JPG spritesheet of frames

Typical workflow:

  1. Create: create_video() -> video_id

  2. Poll: get_video_status(video_id) until status='completed'

  3. Download: download_video(video_id, filename="my_video.mp4") -> returns filename

Returns DownloadResult with: filename, variant

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
variantNovideo
filenameNo
video_idYes
Behavior5/5

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

Adds valuable behavioral context beyond the annotations: the side effect of saving to VIDEO_PATH, the failure condition if the video isn't completed, and the return format (filename, variant). This goes beyond the readOnly/idempotent hints.

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?

The description is well-structured with a clear opening, warnings, parameter explanations, and a numbered workflow. Every section earns its place, and the information is easy to scan.

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?

Despite no output schema, it explains the return value (DownloadResult with filename, variant) and provides a full workflow. It also covers the key precondition and file destination. The description is complete for this tool's complexity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, but the description compensates by explaining every parameter in detail: video_id's source, filename's default behavior, and all variant enum values with their meanings. This adds significant meaning beyond the bare schema.

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?

The description opens with a specific verb and resource: 'Download a completed video to disk.' It clearly distinguishes this tool from siblings like view_media (preview) and list_videos (listing) by specifying the action and output (file on disk).

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 provides explicit when-to-use conditions ('Only call this AFTER get_video_status shows status=completed') and a typical workflow. However, it does not explicitly name alternative tools for related tasks (e.g., view_media for preview), so it lacks explicit alternatives.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/TJC-LP/sanzaru'

If you have feedback or need assistance with the MCP directory API, please join our Discord server