Skip to main content
Glama

upscale_image

Upscale an image using ESRGAN super-resolution models on your local GPU. Upload the source image, set the scale factor (2 or 4), and get the upscaled result.

Instructions

Upscale an image with an ESRGAN super-resolution model — the high-level entry point. Builds an UpscaleModelLoader → ImageUpscaleWithModel workflow (scale=2 supersamples the 4x result back down for sharper output) and enqueues it on your LOCAL GPU. Upload the source first with upload_image (or stage a prior output with stage_output_as_input), then pass its filename. Needs an upscale model in models/upscale_models/ (e.g. 4x-ClearRealityV1 / 4x_foolhardy_Remacri, provided by the anima/ernie packs or download_model); returns an actionable error if none is found. Returns prompt_id immediately; the upscaled asset_id arrives in the completion notification.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
imageYesFilename of the source image in ComfyUI's input dir (upload it first with upload_image)
modelNoUpscale model file in models/upscale_models/; auto-selected from local models if omitted
scaleNoNet upscale factor: 2 or 4 (default 4)
Behavior3/5

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

No annotations provided, so the description carries full burden. It discloses the workflow building, local GPU execution, and asynchronous return (prompt_id immediately, asset_id later). It does not detail potential side effects like GPU memory usage or concurrency limits, which would improve transparency.

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?

The description is a single paragraph that efficiently conveys necessary information without superfluous words. It could be slightly more structured with bullet points, but it remains concise and readable.

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?

Given no output schema, the description adequately explains the asynchronous return values. It covers prerequisites, workflow construction, and error handling. The information is sufficient for an agent to understand the tool's operation and expected results.

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%, but the description adds meaningful context: explains the image prerequisite, model auto-selection, and scale default. This goes beyond the schema's basic type/description, providing actionable guidance.

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 action ('Upscale an image with an ESRGAN super-resolution model') and identifies it as the high-level entry point. It distinguishes itself from related tools by focusing on upscaling, though it does not explicitly differentiate from all siblings like 'convert_image'.

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?

The description provides clear prerequisites: upload the source image first or stage prior output, and ensures an upscale model is available. It mentions error handling for missing models. However, it does not explicitly state when NOT to use this tool or suggest alternatives.

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/artokun/comfyui-mcp'

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