Skip to main content
Glama

Upscale Image

upscale_image

Upscale images to 8K, 16K, 4x, or custom resolutions with RealESRGAN, using Vulkan GPU acceleration or multi-threaded CPU fallback.

Instructions

Upscale an image to 8K, 16K, 4x, or custom resolution using UpscaleX. Automatically optimizes between Vulkan GPU acceleration and multi-threaded CPU fallback.

Input Schema

NameRequiredDescriptionDefault
ttaNoEnable Test-Time Augmentation for higher quality at the cost of speed.
modelNoRealESRGAN model ID from catalog (e.g. 'realesrgan-x4plus', 'realesrgan-x4plus-anime', '4x-ultrasharp', '4x-nmkd-superscale').realesrgan-x4plus
gpu_idNoHardware device selection: 'auto' (picks discrete GPU), integer ID ('0', '1'), or 'cpu' for CPU-only multi-threaded processing.auto
targetNoTarget resolution preset ('16k', '8k', '4k', '4x', '2x', or 'WIDTHxHEIGHT'). Defaults to '16k' (4x upscale).16k
tile_sizeNoGPU tile size in pixels (default 256, safe for 4GB-8GB VRAM).
image_pathYesAbsolute or relative path to the source image (PNG, JPG, WEBP).
output_pathNoOptional path for the upscaled output. If omitted, saves next to source.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It usefully discloses the Vulkan GPU vs multi-threaded CPU fallback behavior, which is real added context, but omits that this is a write operation producing a file, whether an existing output is overwritten, and the dependency on model availability.

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?

Two front-loaded sentences with no redundant wording: the first states the action and targets, the second states the runtime behavior. Nothing needs trimming.

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?

An output schema exists, so return values need not be explained, and the schema fully covers parameters. The description covers hardware selection behavior well; the only meaningful omission is the prerequisite relationship to the model-listing/downloading siblings.

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 100%, so all seven parameters are already documented in the schema. The description only echoes the target presets and adds no syntax, constraint, or interaction guidance beyond that, so baseline 3 applies.

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?

The description gives a specific verb (upscale), resource (image), and named engine (UpscaleX) with the supported targets (8K, 16K, 4x, custom). No sibling tool does anything similar, so an agent can distinguish it immediately from get_image_metadata or recommend_model.

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

Usage Guidelines3/5

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

Usage is implied: call this when you need a resolution increase. However, it never states prerequisites, such as whether the referenced model must first be fetched via download_model or validated via recommend_model, nor when not to use it.

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