Skip to main content
Glama

extend_video

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
aspectNoThe clip's shape, as the app's video editor offers: '16:9' (864x496, default) or '9:16' (496x864). Match the clip being continued16:9
imagesNoReference images for the characters and style (image keys from get_asset or https URLs, up to 7). Default: the video's own references, as the app's editor sends them (its editor references, else the images it was generated from). The clip continues from the video's last frame
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. Changed4 schema fields changed
    • addedInput schema / properties / aspect
      Added value: +{
      +  "default": "16:9",
      +  "description": "The clip's shape, as the app's video editor offers: '16:9' (864x496, default) or '9:16' (496x864). Match the clip being continued",
      +  "enum": [
      +    "16:9",
      +    "9:16"
      +  ],
      +  "type": "string"
      +}
    • removedInput schema / properties / height
      Removed value: -{
      -  "default": 720,
      -  "description": "Height in px (default 720). See width",
      -  "maximum": 9007199254740991,
      -  "minimum": -9007199254740991,
      -  "type": "integer"
      -}
    • addedInput schema / properties / images
      Added value: +{
      +  "description": "Reference images for the characters and style (image keys from get_asset or https URLs, up to 7). Default: the video's own references, as the app's editor sends them (its editor references, else the images it was generated from). The clip continues from the video's last frame",
      +  "items": {
      +    "type": "string"
      +  },
      +  "maxItems": 7,
      +  "type": "array"
      +}
    • removedInput schema / properties / width
      Removed value: -{
      -  "default": 1280,
      -  "description": "Width in px (default 1280). Match the clip being continued: 1280x720 for 16:9, 720x1280 for 9:16",
      -  "maximum": 9007199254740991,
      -  "minimum": -9007199254740991,
      -  "type": "integer"
      -}
  2. Changed6 schema fields changed
    • 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"
  3. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Beyond the annotations (which only say non-readonly, non-destructive, non-idempotent), the description discloses cost (15 credits/second, 60 for the default 4 s), the refund-on-failure policy, that every call is charged, the multi-minute latency, and that it returns a job for check_generation. That is a lot of decision-relevant behavior, though it stops short of describing what happens if the asset has no frames or whether extensions count against asset limits.

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?

Every clause earns its place – alternative tool, cost, latency, return path, chaining – and the core purpose is front-loaded in the first sentence. It is dense with semicolon-joined clauses, which slightly hurts scannability, but there is no filler to cut.

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?

With no output schema, the description supplies what the agent needs: it returns an MP4 link plus a job to poll via check_generation, and that the returned link feeds back into subsequent extension calls. Cost, duration, and the non-destructive nature of the operation are all covered for a mutation tool with six parameters.

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 coverage is 100%, so every parameter already carries a description including the empty-`video` continuation rule and the 15-credits-per-second cost. The description largely restates that in prose rather than adding new meaning (e.g. it never explains how `images` interacts with the last-frame continuation beyond what the schema says). Baseline 3 is appropriate when the schema does the heavy lifting.

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?

"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)" gives a specific verb, resource and scoping rule, and immediately names the sibling it is not ("For a brand-new clip use generate_video"). An agent can distinguish this from generate_video without opening 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?

It explicitly routes the brand-new-clip case to generate_video and explains the iterative case: "call again to keep going, since an empty `video` continues from the latest extension." Both the when-to-use and the how-to-chain conditions are stated rather than inferred.

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