Skip to main content
Glama

Upscale a video

upscale_video

Start upscaling a video to 1080p, 2k or 4k. Charges credits for the whole video (its length is read from the file) and returns the task. Downloading a large video can take a few minutes. If this call times out or fails, first call list_tasks to see whether the task was created, and retry only with the SAME idempotency_key: a new key charges again.

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>",
      "resolution": "<resolution>",
      "idempotency_key": "<idempotency_key>"
    },
    "name": "upscale_video"
  }
}

Input Schema

NameRequiredDescriptionDefault
opsNoOptional enhancement options (deinterlace, stabilize, denoise 0-3, deflicker, fpsMultiplier 2/4/8 with slowMotion, faceRestore, hdr hdr10/hlg, engine anime). faceRestore and fpsMultiplier each double the credits per second; fpsMultiplier is rejected (and refunded) for sources at 50 fps or more unless slowMotion is on
video_urlYesPublic http(s) URL of the video (MP4, MOV or WebM, up to 500MB; up to 1200 seconds at 1080p, 600 seconds at 2k and 4k), or the video_url returned by create_upload
resolutionYesTarget resolution
webhook_urlNoOptional public https:// URL to receive a POST webhook when the task completes or fails
idempotency_keyYesA unique string for this request, e.g. a UUID (printable ASCII, no spaces). Reuse it when retrying the same request.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / ops / description
      Previous value: -"Optional enhancement options (deinterlace, stabilize, denoise 0-3, deflicker, fpsMultiplier 2/4/8 with slowMotion, faceRestore, hdr hdr10/hlg, engine anime)"New value: +"Optional enhancement options (deinterlace, stabilize, denoise 0-3, deflicker, fpsMultiplier 2/4/8 with slowMotion, faceRestore, hdr hdr10/hlg, engine anime). faceRestore and fpsMultiplier each double the credits per second; fpsMultiplier is rejected (and refunded) for sources at 50 fps or more unless slowMotion is on"
  2. Changed1 schema field changed
    • addedInput schema / properties / webhook_url
      Added value: +{
      +  "description": "Optional public https:// URL to receive a POST webhook when the task completes or fails",
      +  "type": "string"
      +}
  3. Changed1 schema field changed
    • addedInput schema / properties / ops
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Optional enhancement options (deinterlace, stabilize, denoise 0-3, deflicker, fpsMultiplier 2/4/8 with slowMotion, faceRestore, hdr hdr10/hlg, engine anime)",
      +  "properties": {
      +    "deflicker": {
      +      "type": "boolean"
      +    },
      +    "deinterlace": {
      +      "type": "boolean"
      +    },
      +    "denoise": {
      +      "anyOf": [
      +        {
      +          "const": 0,
      +          "type": "number"
      +        },
      +        {
      +          "const": 1,
      +          "type": "number"
      +        },
      +        {
      +          "const": 2,
      +          "type": "number"
      +        },
      +        {
      +          "const": 3,
      +          "type": "number"
      +        }
      +      ]
      +    },
      +    "engine": {
      +      "enum": [
      +        "flashvsr",
      +        "anime"
      +      ],
      +      "type": "string"
      +    },
      +    "faceRestore": {
      +      "type": "boolean"
      +    },
      +    "fpsMultiplier": {
      +      "anyOf": [
      +        {
      +          "const": 1,
      +          "type": "number"
      +        },
      +        {
      +          "const": 2,
      +          "type": "number"
      +        },
      +        {
      +          "const": 4,
      +          "type": "number"
      +        },
      +        {
      +          "const": 8,
      +          "type": "number"
      +        }
      +      ]
      +    },
      +    "hdr": {
      +      "enum": [
      +        "none",
      +        "hdr10",
      +        "hlg"
      +      ],
      +      "type": "string"
      +    },
      +    "slowMotion": {
      +      "type": "boolean"
      +    },
      +    "stabilize": {
      +      "type": "boolean"
      +    }
      +  },
      +  "type": "object"
      +}
  4. First observed

TDQS

A4.3/5.0
Behavior4/5

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

No annotations exist, so the description carries the full load and does well: it discloses credit charging for the whole video, that duration is derived from the file, that the call returns a task rather than a finished video, that downloads can take minutes, and that a fresh idempotency key charges again. Gaps remain on refund behavior on failure and on any auth/quota requirements.

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?

Four tight sentences, front-loaded with the action and resolution options, then cost, then the failure/retry protocol. The parenthetical about length being read from the file earns its place; no filler.

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 async, credit-charging mutation with no output schema, it covers the essentials: cost model, async return, latency warning, and the exact retry protocol. It could go one step further by naming get_task as the way to follow the returned task to completion.

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 rises above it by attaching a monetary consequence to idempotency_key ('a new key charges again') that the schema's 'reuse it when retrying' phrasing does not convey. It also notes that video length is read from the file, which explains why no duration parameter exists.

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 ('Start upscaling a video') plus the target outputs (1080p, 2k, 4k), and clarifies it is asynchronous ('returns the task') and billable. It also implicitly separates itself from sibling list_tasks by routing failure checks there, so an agent can place it among create_upload / get_task / list_tasks without opening a 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?

Gives explicit when-to guidance for the ambiguous path: on timeout or failure, call list_tasks first and retry only with the SAME idempotency_key. It does not, however, say when to use this versus create_upload for the video source, leaving that comparison to the schema.

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