Skip to main content
Glama

Upscale an image or a video

upscale_media

Make a sharper, cleaner, larger copy of an image or a video, as a new asset. It keeps the framing and what the picture shows. target film (null) makes it just large enough to fill the film's frame; 2x and 4x multiply each side. A video is upscaled up to 15 seconds a call: pass startSeconds and endSeconds for the part a clip plays. Upscaling does not remove compression blocks: a blocky clip comes back as blocky or worse (measured 2026-11-21), so do not upscale for them. A clip that is already the film's size but looks soft: pass inputShortSide at about two thirds of its short side (720 for 1080x1920) with target film: it is made smaller first and restored back at exactly the film's size, for the price of the film's size. Do not pass 2x for it: that makes four times the pixels and uses four times the credits, and the render throws them away. For a punch-in, pass crop with the part to show: only that part is upscaled and paid for. The new video keeps the source's length, frame rate and sound. Put the new asset on the clip in place of the old one, with the same at and duration: a whole video keeps the clip's offset; a part starts at startSeconds, so play it at offset 0 where that part played. A cropped asset shows only its part: fit it to the frame instead of the clip's old crop. A picture with a transparent background comes back without it: upscale first, then remove_background. A new image does not need it: make it with generate_image at imageSize 2K instead. It answers at once with a Job ID and the media is made in the background: start every generation you need, keep working, then call wait_for_jobs with all their Job IDs to get each Asset ID for patch_film. Uses credits by the pixels it makes, not the pixels it reads: an image filled to 1920x1080 uses 1 credit; a video 1 credits a second at 1920x1080 and 24 frames a second, so a 5-second clip uses 1 credits (30 frames a second: 1).

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": {
      "assetId": "<assetId>",
      "startSeconds": "<startSeconds>",
      "endSeconds": "<endSeconds>",
      "target": "<target>",
      "crop": "<crop>",
      "inputShortSide": "<inputShortSide>",
      "projectId": "<projectId>"
    },
    "name": "upscale_media"
  }
}

Input Schema

NameRequiredDescriptionDefault
cropYesA part of the picture to upscale alone, [x0, y0, x1, y1] in the asset's own pixels from its top left (read_asset and find_objects give them), at least 64 on each side: a punch-in on a face or a product. Only that part is sent and paid for, and the new asset is that part, larger. null for the whole picture.
targetYesfilm (null): just large enough to fill the film's frame. 2x or 4x: each side two or four times, for a deep punch-in or a crop of a small part.
assetIdYesThe image or video asset to upscale. Use the IDs search_assets gives.
projectIdYesThe project this call runs on without changing the open project. null (or leaving it out) uses the open project. wait_for_jobs takes the projectId of the calls that started the jobs.
endSecondsYesSource second of a video where the part to upscale ends. null for both upscales the whole video. null for an image.
startSecondsYesSource second of a video where the part to upscale starts, with endSeconds: the part a clip plays (its offset to offset + duration), up to 15 seconds. null for both upscales the whole video. null for an image.
inputShortSideYesMake the picture (or its crop) smaller first, to this many pixels on its short side, then upscale it: the way to clean up a soft copy that is already the film's size. It does not remove compression blocks: they come back. About two thirds of its short side works: 720 for a 1080x1920 clip, which target film then upscales back to exactly 1080x1920. null sends it at its own size.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / inputShortSide / description
      Previous value: -"Make the picture (or its crop) smaller first, to this many pixels on its short side, then upscale it: the way to clean up a compressed, blocky or soft copy that is already the film's size. About two thirds of its short side works: 720 for a 1080x1920 clip, which target film then upscales back to exactly 1080x1920. null sends it at its own size."New value: +"Make the picture (or its crop) smaller first, to this many pixels on its short side, then upscale it: the way to clean up a soft copy that is already the film's size. It does not remove compression blocks: they come back. About two thirds of its short side works: 720 for a 1080x1920 clip, which target film then upscales back to exactly 1080x1920. null sends it at its own size."
  2. Changed4 schema fields changed
    • changedInput schema / properties / assetId / description
      Previous value: -"The image or video asset to upscale: a ready asset smaller than the film's frame. Use the IDs search_assets gives."New value: +"The image or video asset to upscale. Use the IDs search_assets gives."
    • addedInput schema / properties / crop
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "maximum": 9007199254740991,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "maxItems": 4,
      +      "minItems": 4,
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "A part of the picture to upscale alone, [x0, y0, x1, y1] in the asset's own pixels from its top left (read_asset and find_objects give them), at least 64 on each side: a punch-in on a face or a product. Only that part is sent and paid for, and the new asset is that part, larger. null for the whole picture."
      +}
    • addedInput schema / properties / inputShortSide
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maximum": 9007199254740991,
      +      "minimum": 64,
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Make the picture (or its crop) smaller first, to this many pixels on its short side, then upscale it: the way to clean up a compressed, blocky or soft copy that is already the film's size. About two thirds of its short side works: 720 for a 1080x1920 clip, which target film then upscales back to exactly 1080x1920. null sends it at its own size."
      +}
    • changedInput schema / required
      Previous value: -[
      -  "assetId",
      -  "startSeconds",
      -  "endSeconds",
      -  "target",
      -  "projectId"
      -]New value: +[
      +  "assetId",
      +  "startSeconds",
      +  "endSeconds",
      +  "target",
      +  "crop",
      +  "inputShortSide",
      +  "projectId"
      +]
  3. Changed1 schema field changed
    • changedInput schema / properties / target / description
      Previous value: -"film (null): just large enough to fill the film's frame, the right size before export. 2x or 4x: each side two or four times, for a deep punch-in or a crop of a small part."New value: +"film (null): just large enough to fill the film's frame. 2x or 4x: each side two or four times, for a deep punch-in or a crop of a small part."
  4. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only say non-read-only, non-idempotent, non-destructive; the description adds far more: async job-then-asset pattern, a 15-second per-call video limit, credit pricing by output pixels with concrete examples, that output preserves length/frame rate/audio, that alpha is dropped, and that compression artifacts are amplified rather than fixed. These are exactly the traits an agent cannot get from the structured fields.

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?

Purpose, defaults and cost model are front-loaded and nearly every sentence carries a decision-relevant fact. It is still a dense block of roughly 250 words with repeated restatements of schema concepts and rough phrasing ("a video 1 credits a second", the stray "measured 2026-11-21"), so it is not maximally tight.

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 7-parameter, credit-consuming, asynchronous generation tool with no output schema, the description covers cost, latency model, return values (Job ID, then Asset ID via wait_for_jobs), limits and the downstream patch_film step. Nothing an agent needs to call it correctly or budget credits 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 baseline is 3, but the description adds rationale the schema lacks: why inputShortSide of about two thirds (720 for 1080x1920) is right and why 2x would waste four times the credits, plus the credit tradeoff for crop. It restates some schema text (crop, target) and its "target film (null)" phrasing blurs the schema's separate `null` case, which costs it a point.

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?

"Make a sharper, cleaner, larger copy of an image or a video, as a new asset" gives a specific verb and resource plus the key output property (a new asset, source untouched). It also distinguishes itself from generate_image for fresh images and from remove_background for transparent pictures, so an agent can place it among siblings 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 Guidelines5/5

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

Explicit when-to and when-not: do not upscale blocky clips, do not pass 2x for an already film-sized soft clip (use inputShortSide instead), use generate_image for new images, upscale before remove_background. It names the follow-up tools (wait_for_jobs, patch_film) and the exact workflow, leaving almost nothing to inference.

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.