Skip to main content
Glama

Upscale image

upscaleImage

Upscale an image: the same picture at a higher resolution, up to 4x, with the result capped at about 3.1 megapixels (width x height) whatever its shape: a square image comes back 1776x1776 at most, and a wide or tall one can be longer than 2048px on its longest side. The source image (URL or base64) must be under 3 megapixels, for example 1700x1700 or 2000x1500, and under 2048px on its longest side, so a long, narrow image such as 2640x896 is refused although it is under 3 megapixels; a larger one is rejected with HTTP 400. A result that reached the cap is itself over 3 megapixels, or 2048px or more on its longest side, so it cannot be upscaled again. The job result is a single image result with a url (not an array). The image is uploaded and validated, and an image larger than 15MB is rejected with HTTP 400. Credits are held when the job is accepted and refunded if it fails or is cancelled. Use upscaleImage to raise the resolution of an image you already have; createImage and editImage make new or changed images instead. Pass an optional request_id to tag the result so you can retrieve it later via listGenerations (type image). Async generation job: returns {id, status} - poll getApiJob (job and credit contract: see the server instructions).

Credits: This endpoint consumes 0.5 credits per result.

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": {
      "requestBody": "<requestBody>"
    },
    "name": "upscaleImage"
  }
}

Input Schema

NameRequiredDescriptionDefault
requestBodyYesPayload for upscaling an image

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / requestBody / properties / image / description
      Previous value: -"URL or base64-encoded image to upscale, under 3 megapixels (width x height), for example 1700x1700 or 2000x1500."New value: +"URL or base64-encoded image to upscale, under 3 megapixels (width x height), for example 1700x1700 or 2000x1500, and under 2048px on its longest side."
  2. Changed1 schema field changed
    • changedInput schema / properties / requestBody / properties / image / description
      Previous value: -"URL or base64-encoded image to upscale, below 2048px on its longest side."New value: +"URL or base64-encoded image to upscale, under 3 megapixels (width x height), for example 1700x1700 or 2000x1500."
  3. Added

TDQS

A4.8/5.0
Behavior5/5

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

Goes far beyond the annotations (readOnly=false, destructive=false, no idempotency), disclosing input caps (under 3MP and under 2048px longest side), a worked refusal case (2640x896), HTTP 400 on oversized input and >15MB uploads, the output cap shape (1776x1776 square, >2048px on long side), the single-object result with `url` rather than an array, credit hold/refund behavior, and the async `{id, status}` return contract.

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?

Front-loads the capability and the cap rule before the alternatives paragraph, which is the right order. It is dense but somewhat repetitive, restating the megapixel/2048px limits several times (input rule, example refusal, output cap, re-upscale prohibition), and duplicating the image-param constraints already in the schema.

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 an async, credit-consuming job tool with a nested payload and no output schema, the description covers the return shape (`{id, status}` plus a `url` image result), polling path, credit cost and refund policy, and all hard limits. Nothing an agent needs to call it correctly or interpret the result is missing.

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%, so the baseline is 3, but the description adds meaning the schema does not: `request_id` is explained both as a tagging mechanism for later listGenerations lookup and, indirectly, as a deduplication key via the schema. The `image` constraints restated in prose are mostly redundant with the schema field description.

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?

Opens with a specific verb+resource ('Upscale an image') and immediately defines the outcome ('the same picture at a higher resolution, up to 4x'), which separates it from generation tools. It explicitly names the siblings it is not: createImage and editImage.

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

Usage Guidelines5/5

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

Gives an explicit selection rule: 'Use upscaleImage to raise the resolution of an image you already have; createImage and editImage make new or changed images instead.' It also tells the agent what to do after the call (poll getApiJob) and how to retrieve results later (listGenerations with type 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.