Skip to main content
Glama

extend_video

Extend an existing video by providing a follow-up prompt and a public video URL. Specify the duration of the extension up to 10 seconds.

Instructions

Extend an existing video with a follow-up prompt.

Args: prompt: What should happen in the extended segment. video_url: Public URL of the source video (.mp4, 2–15 s). model: Video model (default grok-imagine-video). duration: Length of the extension in seconds (2–10, default 6).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modelNogrok-imagine-video
promptYes
durationNo
video_urlYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
textNoHuman-formatted output (includes footers, citations, cost summary).
modelYesActual executing model ID (e.g. 'grok-4.5').
planeNoAPI
routeYesHigh-level route (fast/agentic/research/etc.).
imagesNoGrok Imagine image URLs.
tokensNoTotal tokens consumed.
profileNoInternal routing profile.
summaryNoLegacy/duplicate formatted summary of the media generation.
cost_usdNoExact USD cost from xAI billing metadata.
responseYesRaw model output or primary content.
citationsNoNative xAI/X citations with URL + snippet.
video_urlNo
latency_secNo
duration_secNo
finish_reasonNounknown
imagine_paramsNoOriginal prompt + seed for reproducibility.
reasoning_effortNoGrok 4.5+ native reasoning level.
Behavior3/5

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

With no annotations provided, the description carries the full burden. It adds constraints: video_url must be .mp4 (2-15 s), duration 2-10 seconds, and a default model. However, it does not disclose side effects, authorization needs, rate limits, or output behavior. The description provides moderate transparency beyond the schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise at 7 lines, with a clear opening sentence followed by structured Args bullet points. Every sentence adds value without redundancy.

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?

The description covers all parameters with constraints and defaults, and an output schema exists to explain return values. Still, it could mention typical errors or prerequisites (e.g., video must be generated by this system). Overall, it is complete given the schema and parameter count.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description adds rich meaning beyond the input schema, which has 0% description coverage. It explains 'prompt' as 'what should happen in the extended segment,' 'video_url' as 'Public URL... (.mp4, 2–15 s),' 'model' with default, and 'duration' with range (2–10, default 6). This fully compensates for the schema's lack of descriptions.

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 clearly states the tool's action: 'Extend an existing video with a follow-up prompt.' It uses a specific verb ('Extend') and resource ('existing video'), distinguishing it from sibling tools like generate_video which likely creates new videos from scratch.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is provided on when to use this tool versus alternatives. The description lists parameters but does not specify context, prerequisites, or situations where another tool (e.g., generate_video) would be more appropriate.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/djtelicloud/grok-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server