Skip to main content
Glama

Extend Video

beatra.videos.extend
Idempotent

Generate footage immediately before or after one source clip. Use edit to alter existing frames. Duration is a required integer final returned-video duration, must exceed the trusted source duration, and does not accept auto. Call beatra.models.list before model or cost comparisons. This billable call consumes Beatra credits and creates an asynchronous task. Submit exactly once, then poll with beatra.tasks.get. Reuse the same client_request_id only for an identical retry.

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": {
      "duration": "<duration>",
      "video": "<video>",
      "direction": "<direction>",
      "instruction": "<instruction>",
      "client_request_id": "<client_request_id>"
    },
    "name": "beatra.videos.extend"
  }
}

Input Schema

NameRequiredDescriptionDefault
seedNo
modelNoUse auto for request-dependent selection from the ordered live candidates. A concrete model is evaluated exactly as requested and is never substituted.auto
videoYesThe single source video to continue.
durationYesRequired final returned-video duration in integer seconds. It must exceed the trusted source-video duration; model-specific admission may narrow the range.
directionYesGenerate new content immediately before or after the source video's content.
watermarkNoWhether generated video should include the model watermark.
referencesNoOptional ordered image, video, or audio references. The selected model must support every supplied reference kind and count.
resolutionNoRequested model-defined output resolution tier. Omit to use the selected model's declared default; unsupported tiers are rejected rather than coerced.
web_searchNoWhether the selected model may use web search during generation.
instructionYesRequired instruction describing how the source video should continue.
aspect_ratioNoExplicit output ratio when the selected model accepts it. Omit for a declared model default, source-derived ratio, or fixed model behavior.
output_formatNoOptional output container. Omit or use mp4 for the existing default; models that advertise mov can return MOV without transcoding.
enhance_promptNoAsk the selected model to rewrite the prompt before generation. Omit or use null to keep the prompt exactly as written.
generate_audioNoWhether the selected model should generate synchronized audio.
negative_promptNoContent or qualities to avoid when supported by the selected model.
client_request_idYesStable retry identity for this billable operation. Reuse only for the exact same generation arguments.
return_last_frameNoWhether to return the generated video's last frame as an image artifact.

Output Schema

NameRequiredDescriptionDefault
taskNo
errorNo
usageNo
statusNo
billingNo
task_idNo
terminalNo
artifactsNo
resolved_modelNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Goes well past the annotations by disclosing that the call is billable and consumes Beatra credits, that it creates an asynchronous task requiring polling, and that idempotency (already hinted in annotations) is realized through client_request_id reuse only on identical args. This is exactly the operational context annotations cannot express.

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?

Six short sentences, each load-bearing, with the core action and the edit disambiguation front-loaded and the billing/async warnings following. No filler or restatement of the title.

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 17-parameter, billable, asynchronous generation tool with an output schema and near-complete schema descriptions, the description covers the remaining gaps an agent needs: cost implication, single-submit discipline, polling path, and the duration constraint. Nothing essential to correct invocation 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 94%, so the baseline is 3, but the description elevates the most error-prone parameter: duration is a required integer final duration, must exceed the trusted source duration, and accepts no 'auto'. It also implies the model-selection ordering that governs the model parameter, though it says nothing about video, direction, or instruction.

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?

States a specific verb and resource — 'Generate footage immediately before or after one source clip' — and immediately delimits scope against the closest sibling via 'Use edit to alter existing frames.' The agent can distinguish extend from edit without opening either schema.

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?

Explicit routing: use edit for altering existing frames, call beatra.models.list before model or cost comparisons, submit exactly once then poll with beatra.tasks.get, and reuse client_request_id only for identical retries. When-to-use, when-not, and the follow-up call chain are all spelled out.

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