Skip to main content
Glama

upscale

Upscale an image to higher resolution.

Downloads the image from the provided URL, upscales it using AI,
and returns the processed image.

Args:
    image_url: URL of the image to process. Must be a publicly accessible
        image URL (PNG, JPEG, or WebP).
    scale_factor: Upscaling factor (2 or 4). Default is 2.
    output_format: Output format (png, jpeg, webp). Default is png.

Returns:
    The upscaled image, plus a summary message.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
image_urlYes
scale_factorNoUpscaling factor. 2 for 2x resolution, 4 for 4x resolution.
output_formatNoOutput image format.png

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations provided, the description carries full disclosure burden. It adequately explains the operational flow (downloads from URL, processes with AI, returns image) and mentions the return structure includes 'a summary message.' However, it omits behavioral details like processing time expectations, temporary storage policies, or error handling for invalid URLs/formats.

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 uses a standard docstring structure with clear Args and Returns sections. Information is front-loaded with the core purpose first, followed by behavioral details and parameter specifics. While slightly more verbose than minimal descriptions (due to Args/Returns headers), the structure is appropriate for the three-parameter complexity and contains no redundant sentences.

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 the existence of an output schema, the description appropriately summarizes the return value ('upscaled image plus summary message') without redundant detail. All three parameters are documented, input constraints are specified, and the AI processing method is disclosed. For a single-purpose image processing tool, the description provides sufficient context for invocation.

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 67% (image_url lacks schema description; others have descriptions). The Args section compensates effectively: it documents image_url constraints (public accessibility, valid formats) not present in the schema, and adds default values and enum options for scale_factor and output_format that supplement the schema definitions.

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 'Upscale[s] an image to higher resolution' using AI—specific verb, resource, and method. However, it lacks explicit differentiation from the sibling tool 'remove_background' (also an image processing tool), which would help clarify when to select this specific image manipulation function.

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?

The description provides implicit usage context by noting inputs must be 'publicly accessible' URLs and specifying supported formats (PNG, JPEG, WebP). However, it lacks explicit guidance on when to use this versus the sibling 'remove_background' tool, or prerequisites like checking credit costs (relevant given 'get_credit_cost' sibling exists).

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.

Resources