Skip to main content
Glama

upscale_image

Upscale an existing generated image (from a prior generate_image call) to a higher resolution, via Flow's own Download panel -- the same "1K/2K/4K" picker shown when downloading an image in the Flow UI.

account must be whichever farm account's project owns media_id (generate_image
returns media_ids scoped to whichever account handled that job -- reuse the same
account here).

target_resolution: "2K" or "4K". Not every image supports upscaling (depends on
the source model/size) and 4K may be locked behind a paid plan tier on some farm
accounts -- both cases come back as a clean error rather than a crash, so just
report it if that happens instead of retrying.

This is slower than generation (drives a real browser, ~15-30s) -- returns a
job_id to poll with check_job if it's not done within ~35s.

Returns {"media_id": <new upscaled mediaId>, "download_path": "/v1/media/....jpg",
"resolution": ...} when done.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
accountYes
media_idYes
target_resolutionNo2K

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the annotations, the description discloses that the tool drives a real browser, takes ~15-30s, returns a job_id to poll with check_job after ~35s, and produces clean errors for unsupported or plan-limited cases. It also states the return shape, which is essential since there is no output schema. Nothing contradicts 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?

The information is front-loaded and each paragraph addresses a distinct operational concern: purpose, account semantics, resolution constraints, timing, and return format. Some UI-context detail like the "Download panel" and "1K/2K/4K picker" could be trimmed, so it is not maximally concise.

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?

Given the lack of an output schema and no parameter descriptions, the description covers input semantics, expected output fields, polling behavior, error handling, and account prerequisites. No material detail an agent needs to invoke the tool correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema property descriptions are absent (0% coverage), but the description fully compensates by explaining account ownership, the source of media_id, and the target_resolution enum with its failure modes. An agent can correctly populate every parameter using only this description plus the schema's required/default flags.

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 opens with a specific verb and object: "Upscale an existing generated image... to a higher resolution", explicitly scoped to output from a prior generate_image call. This clearly distinguishes it from sibling tools like upscale_video or fetch_media 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 provides strong contextual guidance: the account must own the media_id, media_id comes from generate_image, and unsupported 4K cases should be reported rather than retried. However, it does not explicitly contrast alternatives (e.g., upscale_video) or give a when-not-to-use statement, so it falls just short of a 5.

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.