Skip to main content
Glama

Extend video

extend_video

Extend an existing completed video node with a continuation. prompt describes what happens next; pass endNodeId (a completed image node) to steer toward an end frame. 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, plus the parent node it extended so you can confirm it was the right one; poll get_generation_status until it is COMPLETED or FAILED. If the user's intent is ambiguous across branches, call get_thread and ask which node before spending credits.

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": "extend_video"
  }
}

Input Schema

NameRequiredDescriptionDefault
nodeIdYesCompleted video node to extend.
promptYesWhat happens next in the video.
modelKeyYesVideo model key from list_models.
threadIdYesThread containing the node.
endNodeIdNoOptional completed image node to use as the end frame.
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.8/5.0
Behavior5/5

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

Annotations only say it is a non-destructive, non-idempotent, non-read-only write. The description adds the important traits annotations can't express: it spends credits, it returns immediately rather than blocking, and it returns both the new nodeId/status and the parent node so the agent can verify it extended the right thing.

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?

Dense, front-loaded and free of filler; every clause carries operational information. It is a long single block though, and the cost/polling/ambiguity guidance could be split for faster scanning, which keeps it just short of a 5.

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?

There is no output schema, and the description compensates by describing the return payload (new nodeId, status, parent node) and the required follow-up polling loop. Combined with the credit-spend warning and ambiguity escape hatch, nothing an agent needs to invoke this correctly and safely is missing.

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; the description earns a bump by adding semantics beyond the schema for four params: prompt is 'what happens next', endNodeId must be a completed image node used to steer an end frame, modelKey comes from list_models, and durationSeconds must be model-supported. It says nothing extra about resolution, aspectRatio or sourceFileIds, which is acceptable given the schema documents them.

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: 'Extend an existing completed video node with a continuation.' It also pins the precondition (the node must be completed), which distinguishes it from generate_video, image_to_video and edit_video without needing to name them.

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?

Explicit routing to three siblings: estimate_cost first when unsure about cost, get_generation_status to poll, and get_thread when the target node is ambiguous across branches. It even states the consequence ordering ('before spending credits'), which is exactly the when-to-use guidance an agent needs.

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