Skip to main content
Glama

extend_video

Continue an existing video asset from its last frame by adding a new clip while keeping the original. Provide a prompt for what happens next and call again to extend further.

Instructions

Make a new clip that continues an existing video asset from its last frame, added to that asset as an extension (the original clip is kept). For a brand-new clip use generate_video. 15 credits per second (60 for the default 4 s), charged on every call and refunded if it fails; a run usually takes minutes and returns a job for check_generation. Returns the new clip's MP4 link; call again to keep going, since an empty video continues from the latest extension.

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": {
      "assetId": "<assetId>",
      "prompt": "<prompt>"
    },
    "name": "extend_video"
  }
}

Input Schema

NameRequiredDescriptionDefault
videoNoWhich clip to continue: a file key from get_asset's 'Video extensions' line or the asset's own file. Empty (default) = the latest extension, or the original clip if it has none
widthNoWidth in px (default 1280). Match the clip being continued: 1280x720 for 16:9, 720x1280 for 9:16
heightNoHeight in px (default 720). See width
promptYesWhat happens next, starting from the clip's last frame, e.g. 'the knight charges toward the camera'
assetIdYesThe video asset to continue (from generate_video, list_assets type 'video' or get_asset)
durationNoLength of the new clip in seconds, 4-15 (default 4). Cost is 15 credits per second

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv0.1.1
    • changedInput schema / properties / assetId / description
      Previous value: -"The video asset"New value: +"The video asset to continue (from generate_video, list_assets type 'video' or get_asset)"
    • addedInput schema / properties / duration / description
      Added value: +"Length of the new clip in seconds, 4-15 (default 4). Cost is 15 credits per second"
    • addedInput schema / properties / height / description
      Added value: +"Height in px (default 720). See width"
    • changedInput schema / properties / prompt / description
      Previous value: -"What happens next"New value: +"What happens next, starting from the clip's last frame, e.g. 'the knight charges toward the camera'"
    • changedInput schema / properties / video / description
      Previous value: -"Which clip to continue (a file key from get_asset). Empty = the latest extension, else the original"New value: +"Which clip to continue: a file key from get_asset's 'Video extensions' line or the asset's own file. Empty (default) = the latest extension, or the original clip if it has none"
    • addedInput schema / properties / width / description
      Added value: +"Width in px (default 1280). Match the clip being continued: 1280x720 for 16:9, 720x1280 for 9:16"
  2. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the annotations (readOnlyHint=false, destructiveHint=false, idempotentHint=false): it discloses the credit cost model (15/sec, 60 for the default 4 s), that charges occur on every call and are refunded on failure, typical runtime ('usually takes minutes'), that a job is returned for check_generation, and that the original asset is preserved.

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?

Front-loaded with purpose, then the alternative, then cost, latency, and return behavior — a sensible order for an agent. A few clauses repeat what the schema already says (per-second cost, empty `video` default), costing some density but not clarity.

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 description compensates by naming the MP4 link and the job handed to check_generation. The two return statements ('returns a job' vs 'Returns the new clip's MP4 link') are slightly ambiguous about what arrives immediately versus after polling, which is the main remaining gap for a costly async tool.

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% and the schema already documents every parameter in detail, including the meaning of an empty `video` (latest extension or original clip). The description largely restates that default behavior rather than adding new parameter-level meaning such as dimension-matching requirements or duration limits.

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 ('Make a new clip that continues an existing video asset from its last frame') and immediately clarifies the non-destructive semantics ('the original clip is kept'). It also names the sibling generate_video as the tool for a brand-new clip, so an agent can distinguish the two without reading either schema.

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: 'For a brand-new clip use generate_video' covers the main alternative and the condition that selects it. It also explains the iterative pattern ('call again to keep going') and why an empty `video` continues from the latest extension, leaving little to inference.

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