Skip to main content
Glama

Make a video from a photo

generate_video
Destructive

Use this to turn one of the user's photos into a short video of their influencer: the photo is the first frame, and the prompt says what happens next. Get the photo_id from get_generation or list_media (make a photo first with generate_photos if there's none that fits). Write the prompt as motion and camera: what the influencer does, how the camera moves, the mood. To have them speak, put the words in quotes in the prompt ("she smiles and says "you have to try this place"") and set sound to true; keep a line to about 2 words a second of video. For music or other sound, describe it in the prompt ("upbeat house music playing") and set sound to true. Costs 1 credit per second, or 2 per second with sound; say the cost before calling. Length is 3 to 15 seconds, up to the plan's limit (get_account). To bring in an object (a product, a drink), pass element_image (one of the user's photos, an upload_id from upload_image, or a link) and write @element in the prompt where it appears. Returns at once with a generation_id; then call get_generation to wait (videos take 1 to 3 minutes, sometimes 5). Calling it again starts and charges a new video. Failed videos are refunded automatically.

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": {
      "photo_id": "<photo_id>",
      "prompt": "<prompt>"
    },
    "name": "generate_video"
  }
}

Input Schema

NameRequiredDescriptionDefault
soundNoMake sound with the video, as the prompt describes it: speech, music, ambience, effects. 2 credits per second instead of 1.
promptYesWhat happens: movement, camera, mood, and any spoken words in quotes.
captionsNoBurn word-by-word captions of the speech into the video. Free; needs sound.
photo_idYesThe photo to start from: a photo_id from get_generation or list_media.
element_imageNoAn image: an upload_id from upload_image (for a file the user has), a photo_id of one of the user's photos, or an https:// link to an image. An object to bring into the video; the prompt names it as @element.
duration_secondsNoLength in seconds, up to the plan's limit.

Output Schema

NameRequiredDescriptionDefault
okNoPresent only on a refusal: the summary says why, and what the user can do.
soundNo
summaryYes
photo_idNo
video_idNo
view_urlNo
can_extendNoWhether extend_video can add to it once it's ready.
error_codeNoPresent only on a refusal.
credits_leftNo
generation_idNo
credits_chargedNo
duration_secondsNo
expected_secondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations declare destructiveHint=true and idempotentHint=false; the description earns that by warning that calling again starts and charges a new video, that failures are auto-refunded, and that generation takes 1-3 (sometimes 5) minutes. It also discloses pricing (1 or 2 credits per second), the 3-15 second range bounded by the plan, and the requirement to state cost before calling — context the annotations cannot convey.

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?

A single dense block, but front-loaded with purpose and prerequisites, then costs, then limits, then the return/callback path. Nearly every sentence carries operational information; only the example dialogue and music phrasing are mildly redundant with each other.

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?

Covers the full lifecycle of a costly async mutation: prerequisite acquisition, prompt authoring conventions, cost disclosure, duration bounds, object injection, immediate return of a generation_id, and the follow-up get_generation polling step. An output schema exists, so return-value detail is appropriately left to it.

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 real semantics the schema lacks: how to encode speech (quoted words in the prompt plus sound=true), how to reference an injected object via the @element token, and how to describe music/ambience. It does not add much about captions or duration beyond what the schema already states.

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 (turn a photo into a short video of the influencer) and defines the mechanic: the photo is the first frame, the prompt describes what happens next. This cleanly separates it from generate_photos (creates the source image) and extend_video (extends an existing one).

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?

Explicitly tells the agent where to obtain photo_id (get_generation or list_media, with a fallback to generate_photos), when to use element_image for objects, and when to set sound. It even prescribes how to write the prompt (motion, camera, mood, quoted dialogue) and the pacing rule of roughly 2 words per second.

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.

Resources