Skip to main content
Glama

Expand a cropped photo

luw_expand_image

Expand a tightly cropped architectural or interior photo into a wider view by outpainting its edges. Costs 1 credit.

Instructions

Luw.ai Expand AI: outpaint a tightly cropped architectural or interior photo to a wider view. 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_expand_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
imageYesPhoto to expand (public https:// link or data: URI; the local npx server also accepts a file path).
formatNoOutput image format.
precisionNoHow far to extend each side, as a share of the photo's size: 90+ about 10%, 61-89 about 17%, 60 or less about 25% (default).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.3.18
    • changedInput schema / properties / image / description
      Previous value: -"Photo to expand (https:// URL, local file path, or data: URI)."New value: +"Photo to expand (public https:// link or data: URI; the local npx server also accepts a file path)."
    • changedInput schema / properties / precision / description
      Previous value: -"How strictly to keep the input's structure: 90 = precise, 75 = balanced, 40 = creative."New value: +"How far to extend each side, as a share of the photo's size: 90+ about 10%, 61-89 about 17%, 60 or less about 25% (default)."
  2. Addedv0.3.2

TDQS

A3.5/5.0
Behavior3/5

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

The annotations already declare readOnlyHint=false, idempotentHint=false, destructiveHint=false and openWorldHint=true, so the safety profile is covered. The description usefully adds that it 'Costs 1 credit' — meaningful for a non-idempotent generative call — but says nothing about whether the result is returned inline or must be fetched via luw_get_result, which is a real gap for an image-generation tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences, zero filler, with the operation and domain scope front-loaded and the credit cost trailing. Nothing is redundant with the title.

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?

With three fully documented parameters and no output schema, the description covers the core invocation well enough. It omits how the expanded image is retrieved and any output size/aspect behavior, which matters given the presence of a result-fetching sibling.

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 100% and the schema itself documents the image source forms, the format enum, and the precision-to-percentage mapping in detail. The description adds no parameter meaning beyond that, so the baseline of 3 applies.

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?

The description names a specific operation and resource — 'outpaint a tightly cropped architectural or interior photo to a wider view' — which is clearly distinct from upscaling or vectorizing. It stops short of naming a sibling to steer away from, so differentiation is by domain wording rather than explicit routing.

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?

Scope qualifiers ('tightly cropped', 'architectural or interior') imply when the tool fits and loosely exclude non-cropped inputs. There is no explicit statement of when not to use it and no reference to alternatives such as upscaling for resolution rather than framing.

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