Skip to main content
Glama

runway_upscaleVideo

Increase video resolution to enhance quality and clarity for improved viewing experience. Upload your video URL to upscale it to higher definition.

Instructions

Upscale a video to a higher resolution. videoUri takes in a url of a video or a data uri of a video.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
videoUriYes

Implementation Reference

  • src/index.ts:141-152 (registration)
    Registration of the 'runway_upscaleVideo' tool using server.tool(), specifying name, description, input schema, and handler function.
    server.tool(
      "runway_upscaleVideo",
      "Upscale a video to a higher resolution. videoUri takes in a url of a video or a data uri of a video.",
      { videoUri: z.string() },
      async ({ videoUri }) => {
        const task = await callRunwayAsync("/video_upscale", {
          method: "POST",
          body: JSON.stringify({ videoUri, model: "upscale_v1" }),
        });
        return { content: [{ type: "text", text: JSON.stringify(task) }] };
      }
    );
  • The handler function that executes the tool: sends POST to /video_upscale endpoint with videoUri and model, awaits task completion, returns JSON stringified task.
    async ({ videoUri }) => {
      const task = await callRunwayAsync("/video_upscale", {
        method: "POST",
        body: JSON.stringify({ videoUri, model: "upscale_v1" }),
      });
      return { content: [{ type: "text", text: JSON.stringify(task) }] };
    }
  • Input schema using Zod: requires 'videoUri' as a string (URL or data URI of the video).
    { videoUri: z.string() },
  • Helper function used by the handler to call Runway API and automatically wait for asynchronous task completion by polling.
    async function callRunwayAsync(
      path: string,
      opts: Partial<RequestInit> = {}
    ): Promise<RunwayTask> {
      const response = (await callRunway(path, opts)) as {
        id?: string;
      } & RunwayTask;
      // If the response has a taskId, wait for completion
      if (response?.id) {
        return waitForTaskCompletion(response.id);
      }
      // If no taskId, just return the response as is
      return response;
    }
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It states the action ('upscale') but doesn't cover critical traits such as processing time, rate limits, authentication needs, output format, or potential side effects (e.g., file size changes). This leaves significant gaps in understanding how the tool behaves in practice.

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?

The description is highly concise and front-loaded, with two sentences that directly address the tool's function and parameter usage without any wasted words. Each sentence earns its place by providing essential information efficiently, making it easy to scan and understand quickly.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (video processing), lack of annotations, no output schema, and low schema coverage, the description is incomplete. It doesn't explain what the upscaled output looks like (e.g., resolution options, format), potential errors, or integration details, leaving too many unknowns for effective use by an AI agent.

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?

The description adds some meaning by explaining that 'videoUri' accepts 'a url of a video or a data uri of a video,' which clarifies the parameter's purpose beyond the schema's basic type. However, with 0% schema description coverage and only one parameter, this is adequate but minimal—it doesn't detail constraints like supported URL formats or video specifications, keeping it at the baseline.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose with a specific verb ('upscale') and resource ('video'), and specifies the target outcome ('to a higher resolution'). It distinguishes from siblings like 'editVideo' or 'generateVideo' by focusing on resolution enhancement rather than editing or creation. However, it doesn't explicitly contrast with all siblings, keeping it at 4 instead of 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites (e.g., input video format requirements), when not to use it (e.g., for non-video files), or compare it to sibling tools like 'editVideo' for other modifications. This lack of contextual usage information results in a minimal score.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/runwayml/runway-api-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server