Skip to main content
Glama

Upscale an image

upscale_image
Destructive

Increases an existing image's resolution and returns the new job's id immediately (it does NOT wait). Same image, more pixels. WHEN: the user asks to upscale, enhance, sharpen or increase the resolution of a picture they have, including one an earlier generate_image returned. It is not how you change what is IN the picture (generate_image with the picture as a reference). WHICH MODEL (upscale_factor has each one's factors): topaz-upscale-image is the general-purpose safe default. seedvr-upscale-image is priced by the size of its output. recraft-creative-upscale-image decides its own output size and REPAINTS detail: a reinterpretation, not a faithful enlargement. Ask the user when the choice is not obvious. THE CARD: this call already opened the aicut card: do not call show_generation for this job. WAIT: wait_for_generation (this id, media), never timers or background shells. No card? Give the user the url. COST: this spends the user's tokens, and the three models price differently. topaz-upscale-image: 0.32 tokens up to 24 megapixels of OUTPUT, 0.64 up to 48, 1.28 up to 96, 5.44 above that. seedvr-upscale-image: 0.025 tokens per output megapixel (a 1024x1024 picture at 4x is about 0.42). recraft-creative-upscale-image: a flat 1 token. The image's dimensions are MEASURED BY THE SERVER from the file, never taken from anything you say: that measurement is the price. PNG, JPEG and WebP are readable; anything else (AVIF, HEIC, TIFF, GIF), a picture below the model's minimum size or one whose result would exceed its output limit is REFUSED with nothing charged: re-encode to PNG or JPEG. The estimate_only quote is what the job charges. An external url costs one media-ingest slot: quote and create from the SAME url to pay it once. SPENDS TOKENS: price with estimate_only: true, state the price in the same message as your ask, wait for a go naming THIS purchase (SPENDING RULES: get_recipe spending-rules). idempotency_key: IDEMPOTENCY (this server's instructions).

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": {
      "model": "<model>",
      "source_image": "<source_image>"
    },
    "name": "upscale_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelYesWhich upscaler. They differ in price by more than any other setting: use the one the user asked for. REQUIRED: if the user gave none, put your pick and its price in the priced ask; never one chosen to save tokens, never carried over.
source_imageYesURL of the image to upscale. A URL from this account's generations or uploads, or a public https URL (imported first); another account's is refused. A PHOTO FROM THE USER'S OWN MACHINE QUALIFIES: upload it first with `upload_media_widget` (or `upload_media` where no card renders) and pass the url `confirm_upload` returns.
estimate_onlyNoPrice only; creates nothing.
upscale_factorNoTimes larger. topaz: 1, 2 or 4; seedvr: any whole number 1 to 10; recraft takes NONE and REFUSES the request if you send one. Default 2 on the two that take it. A result over the model's output limit is refused before anything is charged. Only if the user asked; never to save tokens, never carried over.
idempotency_keyNoRetry key (IDEMPOTENCY).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / idempotency_key / description
      Previous value: -"Retry-safety key (IDEMPOTENCY)."New value: +"Retry key (IDEMPOTENCY)."
  2. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already flag openWorldHint and destructive (token-spending) behavior, and the description adds substantial context beyond that: the job is asynchronous and returns an id immediately, the aicut card is already opened so `show_generation` must not be called, the server measures dimensions from the file for pricing, and unsupported formats or size limits are refused with nothing charged. It does not contradict the annotations, and the detail on refusal/no-charge and per-model pricing is genuinely useful. Minor gap: it doesn't state whether a job can be canceled or what the completed job record contains, but with no output schema and no such annotation, this is a small omission.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded and organized with clear labels (WHEN, WHICH MODEL, THE CARD, WAIT, COST), which helps scanning. However, it is very long and repetitive: the 'never to save tokens, never carried over' warning appears in both the description and the schema, the idempotency point is stated twice, and the cost block is dense with all-caps emphasis. Several sentences restate constraints already covered elsewhere, so not every sentence earns its place.

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 asynchronous, token-spending generation tool with no output schema, the description covers everything an agent needs: the immediate return (job id), the required follow-up (`wait_for_generation` with `media`), the card behavior, the fallback when no card exists (give the user the `url`), pricing and estimation, format/size refusal behavior, and idempotency. Nothing material 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 meaningful pricing and constraint semantics beyond the schema: it explains why model choice dominates price ('They differ in price by more than any other setting'), how each model bills, that `recraft-creative-upscale-image` refuses an `upscale_factor`, and that `estimate_only: true` produces the quote the job will charge. It also explains the external-URL media-ingest slot cost.

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?

States a specific verb and resource ('increases an existing image's resolution') plus the immediate return value ('returns the new job's id immediately (it does NOT wait)'). It explicitly distinguishes itself from the closest sibling by excluding content changes: 'It is not how you change what is IN the picture (`generate_image` with the picture as a reference).'

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?

The 'WHEN' block gives the triggering intents (upscale, enhance, sharpen, increase resolution) and the exclusion, then the 'WHICH MODEL' block routes among the three model choices with a default, cost behavior, and an explicit rule to ask the user when the choice is not obvious. It also prescribes post-call behavior (wait via `wait_for_generation`, not `show_generation`) and a cost-confirmation flow.

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.