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. Call list_models first if you have not this session: model and the allowed aspect_ratio, resolution and duration come from there, and only models that can start from an image are accepted. duration is the length of the NEW segment, not of the finished video. 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), again at once while terminal: false, then one short line; no get_* polling, timers, background shells or narrating the wait. 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, ask in the SAME message as the price, and wait for a go that names THIS purchase (SPENDING RULES, this server's instructions). IDEMPOTENCY: a reused idempotency_key REPLAYS the first job whatever the settings: never reuse one for a new generation (this server's instructions).

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 FALSE: the segment is SILENT unless you set it. 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-safety key (IDEMPOTENCY).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare the safety profile (not read-only, destructive, open-world, not idempotent); the description adds the operational facts an agent actually needs: tokens are spent and priced off the new segment's model/duration/resolution, an external URL consumes one media-ingest slot (quote and create from the same URL), and a reused idempotency_key REPLAYS rather than creates. It also discloses that the card was already opened and specifies a wait protocol, none of which is inferable from the annotations.

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 correctly: purpose and return value in sentence one, then WHEN, card, wait, cost, tokens, idempotency in labeled blocks that are easy to scan. Some bloat remains in capitalized imperatives and the split COST / SPENDS TOKENS sections, and phrases like "again at once while `terminal: false`" are compressed to the point of ambiguity.

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 costly, open-world, non-idempotent mutation with 9 params and no output schema, the description covers every decision the agent must make: model discovery, pricing and approval protocol, URL ingestion cost, idempotency hazard, UI card state, wait protocol and the no-card fallback of handing over the URL.

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% and several param notes are near-duplicates of the schema (duration as NEW segment length, aspect_ratio not guessed). But the description adds constraint-level meaning the schema lacks: `model` must be one that can start from an image, `prompt` should describe what happens NEXT or you get a repeat of the source, and the same-URL ingest-slot rule spans two parameters.

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?

First sentence gives a specific verb, resource and distinctive mechanism: generates a NEW segment continuing from the video's final frame, returns the job id immediately, and the result is the source clip with the segment joined on. That last clause cleanly separates it from generate_video, edit_video and reshot_video without naming 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?

An explicit WHEN clause names the user intents that trigger it (extend, continue, lengthen, "what happens next"), plus prerequisites (call list_models first; only image-start models accepted) and an explicit prohibition (do not call show_generation for this job). It also routes post-call behavior to wait_for_generation and away from get_* polling, which is real alternative-selection guidance.

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.

Directories

Listed in ChatGPT · aicut

Last observed