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. Charged in USD to your PopNow balance. Call it without max_usd for a quote, then again with max_usd after the user approves.

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_usdNoApproved maximum in USD as a decimal string with up to 9 fractional digits, copied from the quoted cost_usd. Set it only after the user approves; leave it out to get a quote. Nothing is charged without it.
currencyNoOptional. Always USD for this endpoint.
video_urlYesThe video to continue: a popnow:// link from an earlier result, or a public https link.
duration_secondsNoHow many seconds to add. Default 5. Longer costs more.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations declare openWorldHint=true and idempotentHint=false, but the description adds the crucial fact the annotations can't convey: the call is charged in USD against a PopNow balance and nothing is charged without max_usd. The remaining gap is retry behavior, since a non-idempotent paid call could double-charge if repeated after submission.

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?

Three short sentences, front-loaded with the action, then cost, then the two-step call protocol. Nothing is repeated or wasted, and the ordering matches how an agent would plan the call.

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 a paid, non-idempotent, open-world generation tool with no output schema, the definition covers the billing gate and the continuation semantics well. It stops short of stating what a successful call returns (a task or job handle, given the get_task/get_job siblings), leaving the follow-up step implicit.

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

Parameters3/5

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

Schema description coverage is 100%, so per-parameter meaning is already fully documented, including the max_usd decimal-string format and the duration default of 5. The description reinforces the approval semantics of max_usd but adds no syntax or constraints beyond what the schema states.

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?

"Continue a video: add a few more seconds after its last frame, following a description of what happens next" names a specific verb plus the exact resource boundary (beyond the final frame), which separates it from compose_video, edit_video, and create_video-style siblings. An agent can tell what this produces without opening the schema.

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 explicit procedural guidance: call once without max_usd to obtain a quote, then call again with max_usd after the user approves. It does not, however, address when to choose this over edit_video or change_camera_angle, so an agent must still infer the alternative from the extension boundary.

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.