Skip to main content
Glama

Upscale Image

upscale_image
Destructive

Use this to upscale an image to a higher resolution. Default model p-image-upscale (Pruna AI) returns results in seconds and is priced by the target resolution: 4 MP = 10, 8 MP = 15, 16 MP = 30, 32 MP = 60 credits. Alternative clarity-upscaler does creative detail enhancement (steer with prompt/creativity) at a flat 30 credits and takes ~60 seconds. Pass the image as a URL (a generated image's URL, or upload_media for local files), a data URI, or base64. Charged on success only. The tool waits for the result and returns the upscaled image's URL — share it with the user. Unlike generations, the upscaled image is also saved to the user's BudgetPixel library.

Input Schema

NameRequiredDescriptionDefault
imageYesThe image to upscale: an http(s) URL (a generated image's URL, or one from upload_media for local files), a data URI, or raw base64. Max ~20MB.
modelNoUpscale model: p-image-upscale (default — Pruna AI, results in seconds, priced by target resolution 4/8/16/32 MP = 10/15/30/60 credits) or clarity-upscaler (creative detail enhancement, flat 30 credits, ~60s).
promptNoclarity-upscaler only: optional guiding prompt describing the image content.
targetNop-image-upscale only: target output resolution in megapixels (sets the price: 4=10, 8=15, 16=30, 32=60 credits; default 4).
creativityNoclarity-upscaler only: how much new detail the model may invent (0.3-0.9, default 0.35).
enhance_detailsNop-image-upscale only: enhance textures and fine detail (may increase contrast).
enhance_realismNop-image-upscale only: improve realism — recommended for AI-generated images.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=true, openWorldHint=true), the description discloses billing behavior ('Charged on success only'), latency ('results in seconds' vs '~60 seconds'), synchronous behavior ('waits for the result'), the return value ('returns the upscaled image's URL'), and a persistence side effect ('also saved to the user's BudgetPixel library'). That is substantial context an agent cannot get from the annotations.

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?

Purpose and defaults are front-loaded, and the ordering (what it does → models/pricing → input formats → billing → return) is logical. However, the pricing table and model descriptions are duplicated almost verbatim from the schema, adding length without new information.

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

Completeness5/5

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

For a 7-parameter tool with no output schema, the description supplies everything needed: input format options, model choice and cost/latency trade-offs, billing semantics, and the shape of the returned result plus its side effect. Nothing material is left for the agent to guess.

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 the schema already documents every parameter, including model trade-offs, target pricing, and clarity-upscaler-only fields. The description largely restates the same pricing and model facts rather than adding syntax or format details beyond the schema, so the 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 opening sentence states a specific verb and resource ('upscale an image to a higher resolution'), which cleanly separates it from the sibling upscale_video and from generation tools. An agent can identify the tool's function without opening the 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?

It gives explicit model-selection guidance: the fast, resolution-priced p-image-upscale default versus clarity-upscaler for 'creative detail enhancement (steer with prompt/creativity)' at a flat 30 credits. It also specifies accepted input forms (URL, upload_media, data URI, base64). It stops short of stating when NOT to upscale or how it relates to generate_image.

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.