Skip to main content
Glama

Upscale a video

upscale_video
Destructive

Increases an existing video's resolution (2x, 3x or 4x) and returns the new job's id immediately. It does NOT wait for the result and does not change the content: same shot, more pixels. WHEN: the user asks to upscale, enhance, sharpen or increase the resolution of a video they already have. It is not how you make a video look different (that is a new generation). THE CARD: this call already opened the aicut card: do not call show_generation for this job. WAIT: wait_for_generation (this id, media), again at once while terminal: false, then one short line; no get_* polling, timers, background shells or narrating the wait. No card? Give the user the url. COST: this spends the user's tokens; the price depends on the clip's LENGTH and the resolution it lands in, so a long clip or a big factor costs many times a short one. The clip's length is MEASURED BY THE SERVER: that measurement is the price. A clip it cannot measure (a WebM, an unreadable header) is REFUSED uncharged: re-encode to MP4. 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, ask in the SAME message as the price, and wait for a go that names THIS purchase (SPENDING RULES, this server's instructions). IDEMPOTENCY: a reused idempotency_key REPLAYS the first job whatever the settings: never reuse one for a new generation (this server's instructions).

Input Schema

NameRequiredDescriptionDefault
source_videoYesURL of the video to upscale. A URL from this account's generations or uploads, or a public https URL (imported first); another account's is refused.
estimate_onlyNoPrice only; creates nothing.
upscale_factorNoTimes larger: 1, 2, 3 or 4 (default 2). A result over 7680px on either side is refused before anything is charged. Only if the user asked; never to save tokens, never carried over.
idempotency_keyNoRetry-safety key (IDEMPOTENCY).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Goes well past the annotations: async fire-and-return semantics, token cost driven by server-measured clip length, uncharged refusal for unmeasurable files (WebM/unreadable header) with the re-encode remedy, one media-ingest slot for external URLs, and the idempotency_key replay rule. Nothing contradicts readOnlyHint=false / destructiveHint=true / idempotentHint=false; the replay caveat is nuance the annotations cannot express. Slightly held back only because the interaction between destructiveHint and token spend is left implicit.

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-loaded with purpose and WHEN before the workflow and cost rules, and the capitalised labels make it scannable. It is dense and partly duplicative, though: the COST block already says the call spends the user's tokens, which the separate SPENDS TOKENS block repeats.

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, token-charging, open-world mutation with no output schema, it supplies the missing return contract (job id now, url via card otherwise), the follow-up call, the cost gate and the idempotency contract. An agent has everything needed to invoke and sequence it correctly.

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; the description still adds operational meaning the schema lacks: price first with estimate_only and ask in the same message, and never reuse an idempotency_key for a new generation. The upscale_factor ceiling (7680px) is stated in both, which is redundant but not harmful.

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 and resource plus measurable scope: increases an existing video's resolution to 2x/3x/4x and returns the job id immediately. It explicitly distinguishes itself from generate_video ("not how you make a video look different (that is a new generation)"), so an agent can pick it over the generation siblings without opening a schema.

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 clause enumerates trigger phrasings (upscale, enhance, sharpen, increase resolution) and the exclusion is explicit. It also routes the follow-up work precisely: do not call show_generation, then call wait_for_generation with the job id and channel 'media', with an explicit prohibition on get_* polling, timers and background shells.

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.

Directories

Listed in ChatGPT · aicut

Last observed