Skip to main content
Glama

Upscale a video

upscale_video

Upscale a video. Pass a public URL or a URL from create_upload. model auto probes the clip and picks the model, factor and settings itself (the faithful pick of recommend_upscale; set intent to detail for the other one). With a chosen model, durationSeconds, width and height are the source clip's real values (read them with ffprobe or from the file); the price is computed from them and checked when the job runs, so wrong values fail the job with a refund. Models:

  • ltx-2-5: Upscale a video with LTX 2.5. 2 credits per output megapixel-second, plus 0.01 per second for each fps of a target above 24. Required: videoUrl, upscaleFactor, durationSeconds, width, height.

  • relay-vsr: Upscale a video with RelayVSR. 0.5 credits per output megapixel-second, plus 0.01 per second for each fps of a target above 24. Required: videoUrl, upscaleFactor, durationSeconds, width, height.

  • seed-vr-2: Upscale a video with SeedVR 2. 2.5 credits per output megapixel-second, plus 0.01 per second for each fps of a target above 24. Required: videoUrl, upscaleFactor, durationSeconds, width, height.

  • rtx-vsr: Upscale a video with RTX VSR. 0.1 credits per output megapixel-second, plus 0.01 per second for each fps of a target above 24. Required: videoUrl, upscaleFactor, durationSeconds, width, height.

  • gan: Upscale a video with GAN. 0.2 credits per output megapixel-second, plus 0.01 per second for each fps of a target above 24. Required: videoUrl, upscaleFactor, durationSeconds, width, height. Charges credits from the connected Upsampler account; a failed job is refunded automatically. Result URLs expire after 3 hours (get_job reissues fresh ones) and jobs are deleted after 7 days.

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": {
      "model": "<model>",
      "videoUrl": "<videoUrl>"
    },
    "name": "upscale_video"
  }
}

Input Schema

NameRequiredDescriptionDefault
fpsNoTarget output frame rate, reached by frame interpolation. Omit to keep the source rate. Allowed values: 30, 48, 50, 60. Each frame per second above 24 adds 0.01 credits per second of video, priced from the target alone: a target at or below the source rate changes nothing but is still charged, so omit fps then.
waitNoWait up to about 50 seconds for the result before returning (default true). If the job is still running, call get_job with the returned id.
modelYesWhich video upscaling model to run, or auto to let Upsampler pick from the clip.
widthNoWidth of the source video in pixels. Required unless model is auto.
heightNoHeight of the source video in pixels. Required unless model is auto.
intentNoOnly with model auto: faithful (default) keeps the footage as it is, detail lets the model rebuild fine detail.
videoUrlYesPublicly accessible URL of the video to upscale. Must be an http(s) URL. Keep the file reachable and unchanged until the job completes; a file that changes after submission fails the job with a refund.
creativityNoHow far the model may redraw detail rather than reconstruct it. Omit for the model's default. Integer 0-10, default 5. Higher invents more fine detail, which can change faces and text. Does not affect the price. Used by: ltx-2-5.
upscaleFactorNoFactor by which to upscale each frame. Number, 1-4. Output frames must not exceed 4,200,000 pixels. Required unless model is auto.
durationSecondsNoLength of the clip in seconds, used to price the job. The real clip is probed at dispatch and a job whose charge understates it is failed and fully refunded. Required unless model is auto.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare non-read-only, open-world, non-idempotent, non-destructive. The description goes well beyond: per-model credit rates, the fps surcharge above 24, automatic refunds on failure, the fact that wrong duration/size fails and refunds the job, result URL expiry after 3 hours with get_job reissuing links, and job deletion after 7 days.

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?

Front-loaded with the two ways to call it and the auto/manual split before the model catalog. The model list is five near-identical lines repeating the same fps surcharge sentence and the same required-parameter list, which is genuine duplication, though the credit rates themselves are useful for choosing a model.

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 10-parameter, non-idempotent, open-world job submission with no output schema, the description covers what an agent needs: input sourcing, model/auto decision, required real-world values for pricing, async wait behavior, refunds, and result expiry.

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 already 100%, so the baseline is 3. The description still adds real meaning for the `model` parameter by attaching a per-model credit price to each enum value, which the schema does not contain and which materially drives model choice; the rest of the parameter guidance largely restates schema text.

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?

Opens with a specific verb+resource ('Upscale a video') and immediately names the two accepted URL sources, one of which routes to the create_upload sibling. It also distinguishes itself from upscale_image by scope (video) and from recommend_upscale by explaining that auto mode already performs the recommendation.

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?

It gives explicit selection logic: model=auto lets the service probe the clip and pick, with intent=faithful (default) vs detail as the branch. It states the alternative for a manually chosen model and warns to read the real durationSeconds/width/height with ffprobe or from the file, plus tells the agent to fall back to get_job when wait times 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