Skip to main content
Glama

Upscale an image

luw_upscale_image

Enhance image quality and enlarge photos 2x, 3x or 4x for sharper detail. Set precision to control how closely the upscaled result keeps the original structure.

Instructions

Luw.ai Photo Enhance AI: enhance the quality of an image and enlarge it 2x, 3x or 4x (8x is sent as 4x). Costs 1 credit.

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": {
      "image": "<image>"
    },
    "name": "luw_upscale_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
imageYesImage to upscale (public https:// link or data: URI; the local npx server also accepts a file path).
scaleNo2, 3 or 4 (default 2). 8 is accepted and gives 4x, the largest size.
precisionNoHow strictly to keep the input's structure: 90 = precise, 75 = balanced, 40 = creative.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.3.18
    • removedInput schema / properties / format
      Removed value: -{
      -  "description": "Output image format.",
      -  "enum": [
      -    "jpg",
      -    "png",
      -    "webp"
      -  ],
      -  "type": "string"
      -}
    • changedInput schema / properties / image / description
      Previous value: -"Image to upscale (https:// URL, local file path, or data: URI)."New value: +"Image to upscale (public https:// link or data: URI; the local npx server also accepts a file path)."
    • changedInput schema / properties / scale / anyOf
      Previous value: -[
      -  {
      -    "const": 2,
      -    "type": "number"
      -  },
      -  {
      -    "const": 4,
      -    "type": "number"
      -  },
      -  {
      -    "const": 8,
      -    "type": "number"
      -  }
      -]New value: +[
      +  {
      +    "const": 2,
      +    "type": "number"
      +  },
      +  {
      +    "const": 3,
      +    "type": "number"
      +  },
      +  {
      +    "const": 4,
      +    "type": "number"
      +  },
      +  {
      +    "const": 8,
      +    "type": "number"
      +  }
      +]
    • changedInput schema / properties / scale / description
      Previous value: -"2, 4 or 8 (default 2)."New value: +"2, 3 or 4 (default 2). 8 is accepted and gives 4x, the largest size."
  2. Addedv0.3.2

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, idempotentHint=false, and openWorldHint=true, so the description's incremental value is the cost disclosure ('1 credit') and the notable normalization quirk that 8x is silently sent as 4x. That clamping behavior is exactly the kind of thing an agent cannot infer from structured fields. It does not mention that results are likely asynchronous, which given the presence of luw_get_result is a real gap.

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?

A single front-loaded sentence with the actions first and the cost last; every clause carries information. The 'Luw.ai Photo Enhance AI:' brand prefix is the only filler, and it adds no decision-relevant content.

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 simple three-parameter, single-output-less image tool the description is nearly sufficient, and the schema covers all inputs. However, it never says what comes back (an image, a job id requiring polling) despite an async retrieval sibling existing, which is the main missing piece an agent needs before calling it.

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 each parameter is documented there, including the 8-to-4 clamping and the precision presets. The description largely restates the scale options rather than adding new meaning (e.g., how 'precision' interacts with upscaling or how 'image' sources differ in practice). Baseline 3 applies when the schema carries the load.

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 ('enhance the quality of an image and enlarge it 2x, 3x or 4x'), plus the cost. An agent can distinguish this from a generic edit tool by the fixed integer scale factors. It stops short of naming a sibling such as luw_expand_image or luw_edit_image to draw the boundary explicitly.

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?

Usage is only implied by the purpose statement (use it when you want a bigger, cleaner version of an existing image). There is no explicit when-to-use/when-not-to-use guidance and no routing to alternatives in the large sibling set. The credit cost is the only operational guidance offered.

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