Skip to main content
Glama

upscale_image

Upscale an image by a chosen factor through RunAPI, returning a task ID, status, and output URLs for polling or webhook delivery.

Instructions

Create a KIE task on RunAPI (upscale image). Returns a task id, status, and output URLs.

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": {
      "source_image_url": "<source_image_url>"
    },
    "name": "upscale_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
waitNoPoll until the task reaches a terminal status.
modelNoRunAPI model slug for this model line.
timeout_msNo
callback_urlNoWebhook URL for terminal Task delivery. Declared type: string.
upscale_factorNoImage upscale multiplier. Declared type: string. Known values: "1", "2", "4", "8".
poll_interval_msNo
source_image_urlYesPublic HTTP(S) image URL, up to 20 MB; output must not exceed 67,108,864 pixels or 16,384 pixels on either side. Declared type: string.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden. It does state the return shape (task id, status, output URLs), which is useful, but says nothing about the asynchronous task lifecycle, that wait=true polls by default, cost implications, auth requirements, or what happens to the task on timeout.

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?

Two short sentences, purpose front-loaded before the return summary, with no filler. The parenthetical is slightly awkward but does not waste space.

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?

This is a 7-parameter asynchronous task-creation tool with no annotations and no output schema. The description omits the polling/callback workflow, how to fetch results afterward via get_task, and error or timeout behavior, leaving significant gaps for an agent to call it correctly.

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?

Schema description coverage is 71%, with only timeout_ms and poll_interval_ms undocumented, so the schema does most of the work. The description adds no parameter meaning at all, which is acceptable at this coverage level but leaves the two undocumented timing parameters unexplained.

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 names a specific verb and resource ("Create a KIE task on RunAPI") and disambiguates with "(upscale image)", which separates it from upscale_video. It is clear what the tool does, though the jargon "KIE task" and "RunAPI" is unexplained and does the opposite of helping an agent unfamiliar with the platform.

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?

There is no when-to-use guidance, no mention of alternatives such as get_task for retrieving results, and no explanation of when to set wait versus callback_url. An agent must infer the entire async workflow from the parameter names.

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