Skip to main content
Glama

upscale_image

Increase the resolution of an existing Flow project image by its media ID and save it to disk, with 2K output available at no cost and 4K on paid plans.

Instructions

Upscale an image that already exists in the open Flow project, by its media id, and save it to disk. 2K is free.

Input Schema

NameRequiredDescriptionDefault
fitNocover
sizeNoExact size, "WIDTHxHEIGHT" format.
targetNoAsk Flow to upscale the result: "2k" (free, about 2x the native size, ~10 s per image) or "4k" (paid plans). It is the only way to get real detail beyond native; a larger size alone just interpolates.2k
media_idYesMedia id, as returned by generate_image.
out_fileYesOutput path. The extension decides the format.
backgroundNoPadding color for fit="contain", as a CSS color ("#0f172a", "black"). White by default.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral load: it does disclose the write side effect ('save it to disk') and a cost fact ('2K is free'). It omits whether an existing out_file is overwritten, what permissions or project state are required, and any failure behavior, leaving meaningful gaps for a mutation tool with zero annotation coverage.

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?

Two short sentences with the operation, scope, and output front-loaded; '2K is free' is terse but earns its place by flagging cost. Slightly clipped phrasing ('2K is free.') reads as a fragment rather than a fully formed note, but nothing is wasted.

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

Completeness3/5

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

For a 6-parameter tool with no annotations and no output schema, the description covers what it does, the prerequisite, and that results land on disk (partly compensating for the missing output schema). It still leaves the semantics of fit/size/background and any return value to the schema, which is adequate but not fully self-contained.

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 coverage is 83%, so the schema already explains media_id, out_file, size, target, fit, and background in detail. The description only reinforces media_id ('by its media id') and the disk-output meaning of out_file; it adds nothing about the pricing/size/fit interplay that the schema itself documents. Baseline 3 applies when the schema does the heavy lifting.

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?

States a specific verb and resource ('Upscale an image'), scopes it to images already in the open Flow project, names the lookup key (media id), and states the outcome (saved to disk). It implicitly distinguishes itself from generate_image (new images) and download_image (fetching), though it never names a sibling outright.

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?

'Upscale an image that already exists in the open Flow project' implies a prerequisite (the media must already exist, presumably from generate_image), and '2K is free' gives a cost-based decision hint. There is no explicit when-not guidance, no mention of what to do if the media id is missing, and no routing to alternatives such as regenerating at higher resolution.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.