Skip to main content
Glama

Image to video

image_to_video

Animate an existing completed image node into a video. The node is used as the start frame; pass endNodeId (another completed image node) to interpolate between two frames. modelKey comes from list_models (a video model) and durationSeconds must be one that model supports. Spends credits; use estimate_cost first if unsure. Returns immediately with a new nodeId and status; poll get_generation_status until it is COMPLETED or FAILED.

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": {
      "threadId": "<threadId>",
      "nodeId": "<nodeId>",
      "prompt": "<prompt>",
      "modelKey": "<modelKey>",
      "durationSeconds": "<durationSeconds>"
    },
    "name": "image_to_video"
  }
}

Input Schema

NameRequiredDescriptionDefault
nodeIdYesCompleted image node to use as the start frame.
promptYesHow the image should move.
modelKeyYesVideo model key from list_models.
threadIdYesThread containing the node.
endNodeIdNoOptional completed image node to use as the end frame (interpolation).
resolutionNoResolution. Defaults to 480p.
aspectRatioNoAspect ratio. Defaults to auto.
sourceFileIdsNoOptional extra input image file ids.
durationSecondsYesClip length in seconds; must be supported by the model.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / prompt / maxLength
      Previous value: -2000New value: +2500
  2. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing that the call spends credits, returns immediately rather than blocking, and yields a new nodeId plus a status requiring polling. It does not cover failure/retry behavior, whether an in-flight job can be cancelled, or how to retrieve the resulting media, which keeps it short of a 5.

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?

Four sentences, front-loaded with the action and then the workflow constraints; there is no filler or marketing language. A small amount of the wording duplicates schema descriptions, which is the only waste.

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?

For a 9-parameter asynchronous generation tool with no output schema, the description supplies the missing lifecycle contract (immediate nodeId/status, poll until COMPLETED/FAILED) and the cost warning. The only real gap is what to do with the finished result (e.g., fetching the media URL).

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 description coverage is 100%, so the schema already documents every parameter. The description adds modest relational meaning ('pass endNodeId ... to interpolate between two frames') but otherwise restates schema text, such as modelKey coming from list_models and the duration constraint.

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: 'Animate an existing completed image node into a video', and scopes the input precisely as a completed image node used as the start frame. An agent can distinguish this from text-driven generation tools. It stops just short of naming a sibling (e.g., generate_video) as the alternative for non-image-seeded generation.

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 routes the agent: 'modelKey comes from list_models', 'durationSeconds must be one that model supports', 'use estimate_cost first if unsure', and 'poll get_generation_status until it is COMPLETED or FAILED'. Both prerequisites and the mandatory follow-up step are named, leaving nothing to inference.

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