Skip to main content
Glama

Upscale Clip

lab_upscale

Enlarge an EXISTING clip (Topaz, passed through fal): same shot, same length, same sound — more pixels. There is no prompt here; nothing is re-imagined, the frames are scaled. The source is the clip of a generated-video row. Both the length and the source height are measured server-side before anything is charged, and a source too tall for the larger factor is refused rather than run. ASYNCHRONOUS: a new video row comes back as pending; poll it with lab_job_status. Costs credits when called without get_cost. engine 'tein' (Tein Video Upscaler) is admin-only on the admin's own material: it takes a target size (ziel) instead of a factor, adds optional film grain (korn), and accepts clips up to 30 s.

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": {
      "video_id": "<video_id>"
    },
    "name": "lab_upscale"
  }
}

Input Schema

NameRequiredDescriptionDefault
kornNoOnly with engine 'tein': film grain. Default 'off'.
zielNoOnly with engine 'tein': the target size. The source must be smaller than the target.
engineNoDefault 'topaz'. 'tein' only for admins on their own material; it needs ziel and ignores faktor.
faktorNoHow many times larger, per side. Omit for the smaller one. Whichever you pick, the RESULT has to stay inside the published rate tiers — a source too tall for the factor you asked for is refused by name, with the ceiling in the message, instead of billing a run nobody can price. What the tier costs is in lab_list_models and in the preflight, not here.
get_costNo`true` returns what upscaling THIS clip costs (`cost_generations`, measured server-side from its length and the height of the RESULT, exactly what the run would charge) plus the published rate per output second per tier and your balance — WITHOUT scaling and without spending anything. For a clip that is still pending there is no total yet: then `cost_generations` is null and `preis_grund` says why. Which tiers are measured and which are catalog values is the same distinction lab_list_models makes.
video_idYesGenerated-video id (from lab_animate/lab_job_status/lab_review_queue) — positive integer as string. The row must already have its clip; a run still pending is refused, and nothing is charged for asking.
max_creditsNoThe most you agree to pay — pass the amount from get_cost that the person confirmed. If the measured price is higher when the run starts, it is refused before anything is charged.
nur_eigene_datenNoOnly for a model that sends inputs to China or a US recipient without a documented basis, when the step carries images, clips, voices or faces. Means: this material shows or contains no real person other than the human using this account. Set it ONLY after the human has said exactly that for THIS step; never assume it, never reuse it for the next step. Not needed when the human has declared this material in the FilmLab app: the backend reads that declaration, also for material derived from it; only the app can store one. An LK reference, a licensed likeness or another person's agreement does not replace it. Without it the backend refuses with drittland_dritte_gesperrt before any charge; then use a non-gated model or text only.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / engine
      Added value: +{
      +  "description": "Default 'topaz'. 'tein' only for admins on their own material; it needs ziel and ignores faktor.",
      +  "enum": [
      +    "topaz",
      +    "tein"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / korn
      Added value: +{
      +  "description": "Only with engine 'tein': film grain. Default 'off'.",
      +  "enum": [
      +    "off",
      +    "light",
      +    "medium",
      +    "heavy"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / ziel
      Added value: +{
      +  "description": "Only with engine 'tein': the target size. The source must be smaller than the target.",
      +  "enum": [
      +    "1080p",
      +    "2k",
      +    "4k"
      +  ],
      +  "type": "string"
      +}
  2. Changed1 schema field changed
    • changedInput schema / properties / nur_eigene_daten / description
      Previous value: -"Only for a model that sends inputs to China or a US recipient without a documented basis, when the step carries images, clips, voices or faces. Means: this material shows or contains no real person other than the human using this account. Set it ONLY after the human has said exactly that for THIS step; never assume it, never reuse it for the next step. An LK reference, a licensed likeness or another person's agreement does not replace it. Without it the backend refuses with drittland_dritte_gesperrt before any charge; then use a non-gated model or text only."New value: +"Only for a model that sends inputs to China or a US recipient without a documented basis, when the step carries images, clips, voices or faces. Means: this material shows or contains no real person other than the human using this account. Set it ONLY after the human has said exactly that for THIS step; never assume it, never reuse it for the next step. Not needed when the human has declared this material in the FilmLab app: the backend reads that declaration, also for material derived from it; only the app can store one. An LK reference, a licensed likeness or another person's agreement does not replace it. Without it the backend refuses with drittland_dritte_gesperrt before any charge; then use a non-gated model or text only."
  3. Changed1 schema field changed
    • addedInput schema / properties / nur_eigene_daten
      Added value: +{
      +  "description": "Only for a model that sends inputs to China or a US recipient without a documented basis, when the step carries images, clips, voices or faces. Means: this material shows or contains no real person other than the human using this account. Set it ONLY after the human has said exactly that for THIS step; never assume it, never reuse it for the next step. An LK reference, a licensed likeness or another person's agreement does not replace it. Without it the backend refuses with drittland_dritte_gesperrt before any charge; then use a non-gated model or text only.",
      +  "type": "boolean"
      +}
  4. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  5. Changed2 schema fields changed
    • changedInput schema / properties / get_cost / description
      Previous value: -"`true` returns the published rate per output second per tier and your balance WITHOUT scaling and without spending anything — NOT a total. Two things decide the amount and both are measured server-side: the length of the source, and the height of the RESULT (source height times factor) which picks the tier. The answer also says which tiers are measured and which are catalog values — the same distinction lab_list_models makes. The real amount comes back with the actual call."New value: +"`true` returns what upscaling THIS clip costs (`cost_generations`, measured server-side from its length and the height of the RESULT, exactly what the run would charge) plus the published rate per output second per tier and your balance — WITHOUT scaling and without spending anything. For a clip that is still pending there is no total yet: then `cost_generations` is null and `preis_grund` says why. Which tiers are measured and which are catalog values is the same distinction lab_list_models makes."
    • addedInput schema / properties / max_credits
      Added value: +{
      +  "description": "The most you agree to pay — pass the amount from get_cost that the person confirmed. If the measured price is higher when the run starts, it is refused before anything is charged.",
      +  "maximum": 9007199254740991,
      +  "minimum": 0,
      +  "type": "integer"
      +}
  6. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the readOnlyHint=false/destructiveHint=false annotations, the description discloses the asynchronous contract (pending row, poll with lab_job_status), that credits are spent unless get_cost is used, that length and source height are validated server-side before billing, and that an oversized source is refused by name rather than run. It also flags engine 'tein' as admin-only with a different sizing model and a 30 s cap — exactly the kind of context annotations cannot carry.

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?

Information is front-loaded: what it does, that it does not re-imagine, what the source is, then the async and billing contract. It is dense but each sentence carries signal; the final 'tein' sentence is a long run-on that could be split for readability.

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, credit-spending mutation with 8 parameters and no output schema, the description covers the full operational picture: source requirements, preflight measurement and refusal behavior, the pending-row return, polling, cost preflight, and the admin-only gated engine. An agent has enough to invoke it correctly and to avoid an unintended charge.

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 description coverage is 100% and the property descriptions are already very detailed (get_cost, max_credits, faktor, nur_eigene_daten), so the baseline is 3. The description adds only a little on top — that ziel replaces faktor for 'tein' and that grain (korn) is tein-only — mostly restating what the schema already explains.

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 precise verb and resource ('Enlarge an EXISTING clip') and immediately rules out what the tool is not — 'There is no prompt here; nothing is re-imagined, the frames are scaled' — which separates it cleanly from the generation siblings like lab_animate. The source ('the clip of a generated-video row') and the engines are named, so an agent knows exactly what material this operates on.

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 gives concrete routing: poll the returned pending row with lab_job_status, and call with get_cost first to avoid a charge. It stops short of naming when not to use it — e.g. how it differs from lab_aufloesung or lab_grade_clip for resolution/quality work — so the exclusion side is only partially covered.

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.

Resources