Skip to main content
Glama

Extend a video

extend_video

Continue a video: add a few more seconds after its last frame, following a description of what happens next. OAuth uses site credits (from 31 credits per second with the default model). API keys use a separate USD wallet. Omit approval to get a quote, then confirm max_credits for OAuth or currency USD and decimal max_usd for API keys.

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_url": "<video_url>"
    },
    "name": "extend_video"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelNoOptional model that can extend videos (list_models with category video shows them). Leave empty for the default, MiniMax H3.
promptNoWhat happens next, in plain words: the action, the camera and the mood. Leave empty to simply continue the scene.
max_usdNoAPI key only: maximum approved USD as a decimal string with up to 9 fractional digits. Set currency to USD. Only set after the user confirms the quoted cost_usd. Never convert max_credits.
currencyNoBilling unit: USD for API keys; credits for OAuth (optional for existing OAuth clients).
video_urlYesThe video to continue: a popnow:// link from an earlier result, or a public https link.
max_creditsNoOAuth only: the most site credits the user agreed to spend on this. Only set it after the user confirmed a quoted price.
production_idNoOptional. Run this inside a production opened with open_production: it is paid from that production's budget and needs no separate approval while the budget lasts.
duration_secondsNoHow many seconds to add. Default 5. Longer costs more.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / production_id
      Added value: +{
      +  "description": "Optional. Run this inside a production opened with open_production: it is paid from that production's budget and needs no separate approval while the budget lasts.",
      +  "type": "string"
      +}
  2. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare a non-readonly, non-idempotent, open-world call; the description adds the crucial economics (credits per second, separate USD wallet) and an approval workflow that the annotations cannot express. It does not mention that each call is billed separately and cannot be repeated for free, a minor gap.

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?

Three sentences, with the core action front-loaded and billing/approval detail following. The pricing clause is slightly dense ('from 31 credits per second with the default model') but each sentence carries information an agent needs before calling.

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?

For an 8-parameter, non-idempotent, paid generation tool with full schema coverage and no output schema, the description covers the cost and approval risks that matter most. Return shape is the only notable omission, and the schema's video_url guidance partly compensates.

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; the description goes further by explaining the relationship between omitted approval params and the quote, and by tying max_credits to OAuth and currency=max_usd to API keys. That inter-parameter logic is not obvious from the schema alone.

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 states a specific verb and resource ('Continue a video: add a few more seconds after its last frame') and adds the semantics of extending past the final frame, which separates it from create_video and edit_video without needing to open their schemas.

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 gives concrete operational guidance for the two auth modes and the quote-then-confirm flow ('Omit approval to get a quote, then confirm max_credits for OAuth or currency USD and decimal max_usd'). It stops short of explicitly saying when to extend versus re-generate or edit, so it is strong but not complete.

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.