Skip to main content
Glama

Continue a video past its ending

extend_video
Destructive

Generates a NEW segment that continues an existing video from its final frame and returns the new job's id immediately; the result is the original clip with the new segment joined on. WHEN: the user asks to extend, continue or lengthen a video, or wants to see what happens next in a clip they have. Only models that can start from an image are accepted (list_models). Say in prompt what happens NEXT: a prompt describing the clip that exists produces a repeat of it. THE CARD: this call already opened the aicut card: do not call show_generation for this job. WAIT: wait_for_generation (this id, media), never timers or background shells. No card? Give the user the url. COST: this spends the user's tokens, priced like a normal generation of the new segment: the model, duration and resolution decide it, not the source clip's length. An external url costs one media-ingest slot: quote and create from the SAME url to pay it once. SPENDS TOKENS: price with estimate_only: true, state the price in the same message as your ask, wait for a go naming THIS purchase (SPENDING RULES: get_recipe spending-rules). idempotency_key: IDEMPOTENCY (this server's instructions).

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": {
      "model": "<model>",
      "source_video": "<source_video>",
      "aspect_ratio": "<aspect_ratio>",
      "duration": "<duration>"
    },
    "name": "extend_video"
  }
}

Input Schema

NameRequiredDescriptionDefault
audioNoGenerate audio for the new segment, on the models that support it (`list_models` says whether sound costs extra). IT DEFAULTS TO TRUE: omitted, the segment has sound on those models; set `false` only when the user asked for a silent segment. Only if the user asked; never to save tokens, never carried over.
modelYesModel id exactly as `list_models` returns it. Use the one the user asked for; never substitute a cheaper model to save them tokens.
promptNoWhat should happen in the NEW segment.
durationYesLength of the NEW segment in seconds, one of the model's published durations; longer costs more. REQUIRED: if the user gave none, put your pick and its price in the priced ask; never one chosen to save tokens, never carried over.
resolutionNoOne of the model's published options; higher costs more. Only if the user asked; never to save tokens, never carried over.
aspect_ratioYesOne of the model's published `aspect_ratios`. REQUIRED: the server does not guess it from the source clip and it changes the price on some models. Match the source clip's shape unless the user asked otherwise.
source_videoYesURL of the video to continue. A URL from this account's generations or uploads, or a public https URL (imported first); another account's is refused.
estimate_onlyNoPrice only; creates nothing.
idempotency_keyNoRetry key (IDEMPOTENCY).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / audio / description
      Previous value: -"Generate audio for the new segment, on the models that support it (`list_models` says whether sound costs extra). IT DEFAULTS TO FALSE: the segment is SILENT unless you set it. Only if the user asked; never to save tokens, never carried over."New value: +"Generate audio for the new segment, on the models that support it (`list_models` says whether sound costs extra). IT DEFAULTS TO TRUE: omitted, the segment has sound on those models; set `false` only when the user asked for a silent segment. Only if the user asked; never to save tokens, never carried over."
  2. Changed1 schema field changed
    • changedInput schema / properties / idempotency_key / description
      Previous value: -"Retry-safety key (IDEMPOTENCY)."New value: +"Retry key (IDEMPOTENCY)."
  3. 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 destructiveHint=true and openWorldHint=true; the description adds the async contract (job id returned immediately), the token-spend and pricing model ('priced like a normal generation of the new segment'), the media-ingest slot cost for external URLs, the idempotency contract, and the card-already-opened behavior. That is substantial behavior disclosed beyond the annotation layer.

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?

Purpose and WHEN lead, followed by labeled operational blocks (THE CARD, WAIT, COST, SPENDS TOKENS), so an agent can scan it fast. It is long and repeats a few points already carried by the schema property descriptions, which is the only real cost to conciseness.

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?

For a paid, destructive, async generation tool with no output schema, it covers everything an agent needs: model eligibility constraint, prompt framing, price estimation and confirmation flow, waiting mechanism, idempotency, URL sourcing rules, and what to do when no card is shown. No material gap remains.

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 not in the schema: 'Say in `prompt` what happens NEXT: a prompt describing the clip that exists produces a repeat of it' is a non-obvious usage rule, as is quoting and creating from the same URL to pay the ingest slot once. Some parameter notes (audio default, duration requiredness, aspect_ratio guessing) are restated from the schema descriptions, which keeps it below 5.

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?

Opens with a precise verb+resource+mechanism: 'Generates a NEW segment that continues an existing video from its final frame' and states the composite result (original clip plus joined segment) and immediate return of a job id. This clearly separates it from generate_video, edit_video and reshot_video without needing to open any 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?

The WHEN clause names the triggering user intents (extend, continue, lengthen, see what happens next) and explicitly routes to siblings: `list_models` for model eligibility, 'do not call `show_generation`', and '`wait_for_generation` (this id, `media`), never timers'. Both when-to-use and when-not-to-use are stated.

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.