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), never timers or background shells. 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, 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": {
      "source_video": "<source_video>"
    },
    "name": "upscale_video"
  }
}

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 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.8/5.0
Behavior5/5

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

Beyond the annotations (destructive=true, openWorld=true, idempotent=false), it discloses the key non-obvious behaviors: the call is async and returns immediately, content is unchanged, tokens are spent and priced by measured clip length and target resolution, unmeasurable clips (WebM, bad headers) are refused uncharged, and an external URL consumes a media-ingest slot unless quote and create share the URL. It also flags idempotency_key as the retry mechanism, which is consistent with idempotentHint=false without contradicting it.

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 the one-sentence purpose, then labeled blocks (WHEN, THE CARD, WAIT, COST, SPENDS TOKENS, idempotency), so an agent can scan to the relevant rule. It is verbose in the caps-heavy label style and repeats the token-spend idea in both COST and SPENDS TOKENS, costing a little density but no correctness.

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?

With no output schema, the description still covers the return contract (job id, card already opened, fall back to giving the user the url) and the full cost/approval flow for a destructive, token-spending operation. Nothing an agent needs before invoking it — pricing, refusal conditions, waiting protocol, retry key — 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, and the description still adds meaning: cost scales with the clip's length and the resolution it lands in, the server measures length rather than trusting input, and source_video must come from this account or a public https URL reused for quote and create. It does not restate the 7680px cap or the 1/2/3/4 factor values, leaving those to the schema, which is appropriate.

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 up front: increases an existing video's resolution by 2x/3x/4x and returns the new job id immediately. It also draws the boundary against a genuinely confusable sibling by saying it is 'not how you make a video look different (that is a new generation)', which separates it from generate_video/edit_video without requiring 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 Guidelines5/5

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

The WHEN clause names the trigger vocabulary (upscale, enhance, sharpen, increase resolution) and the exclusions ('a video they already have', not a new generation). It additionally routes downstream behavior explicitly: do not call show_generation, use wait_for_generation with this id and `media`, and consult get_recipe `spending-rules` for cost approval.

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.