Skip to main content
Glama

Make a video longer

extend_video
Destructive

Use this to add 3 to 10 seconds to one of the user's finished videos; the new part picks up exactly where the video ends, in the same shot. The prompt (optional) says what happens next; leave it out to just continue. Costs the same per second as the video did (1 credit, or 2 with sound); say the cost before calling. Works for videos made since the upgraded engine (generate_video says can_extend), up to the plan's total length; the error says why when a video can't be extended. One part is made at a time. Returns at once with a generation_id; get_generation then returns the whole, longer video.

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": {
      "video_id": "<video_id>",
      "seconds": "<seconds>"
    },
    "name": "extend_video"
  }
}

Input Schema

NameRequiredDescriptionDefault
promptNoWhat happens in the new part.
secondsYesSeconds to add.
video_idYesA video_id from get_generation or list_media.

Output Schema

NameRequiredDescriptionDefault
okNoPresent only on a refusal: the summary says why, and what the user can do.
summaryYes
video_idNo
view_urlNo
error_codeNoPresent only on a refusal.
credits_leftNo
generation_idNo
seconds_addedNo
credits_chargedNo
expected_secondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already flag a non-idempotent, destructive write; the description adds cost behavior (1 credit per second, 2 with sound, and the instruction to state cost before calling), the one-part-at-a-time constraint, and synchronous return with a generation_id that must be resolved via get_generation. These are behaviors an agent cannot infer from the structured fields alone.

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?

Opening with 'Use this to' front-loads the action, and each subsequent clause carries a distinct, actionable fact (prompt semantics, cost, eligibility, sequencing, return handling). No sentence is redundant with the name, title, or schema.

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?

Despite an output schema existing, the description still explains the async shape (generation_id now, whole video later via get_generation), which is the one thing an agent could get wrong. Combined with cost and eligibility rules, nothing needed to call this destructive tool safely is missing.

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 genuine meaning: the prompt is optional and omitting it means 'just continue', which is behavior the schema's 'What happens in the new part' does not convey. The 3-10 second range and video_id provenance are already in the schema, so no further credit there.

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 opening clause gives a specific verb and resource ('add 3 to 10 seconds to one of the user's finished videos') plus the key constraint that the continuation is 'in the same shot'. That is enough for an agent to distinguish extending an existing video from generating a new one.

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

Usage Guidelines4/5

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

It states clear preconditions: the video must be finished, made on the upgraded engine (checked via 'generate_video says can_extend'), and within the plan's total length, with errors explaining refusals. It does not explicitly tell the agent when to prefer generate_video over extending, so it stops short of full when/when-not/alternatives 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.

Resources