Skip to main content
Glama

Sketch to render (Sketch AI)

luw_sketch_to_render

Converts hand sketches, line drawings, floor-plan perspectives, or rough drafts into photorealistic renders, letting users visualize design concepts before construction.

Instructions

Luw.ai Sketch AI: turn a hand sketch, line drawing, floor-plan perspective or rough draft into a photorealistic render. Costs 1 credit per variation.

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_sketch_to_render"
  }
}

Input Schema

NameRequiredDescriptionDefault
imageYesThe sketch or drawing (public https:// link or data: URI; the local npx server also accepts a file path).
engineNoLuw.ai model: symphony (Symphony-3, the default: the higher quality) or aria (quicker, for everyday work). If the user picked a model earlier in this conversation, use that one.symphony
formatNoOutput image format.
promptNoWhat you want, in plain language.
stylesNoDesign style names, e.g. ["Scandinavian"]; for Japandi use ["Japanese Design", "Scandinavian"]. Case-sensitive; see luw_list_options.
precisionNoHow freely the prompt enhancer writes: 90 = precise, 75 = balanced, 40 = creative. Only used with enhance_prompt.
persona_idNoPersona whose saved images to use. Its saved styles and room or building type apply unless you send styles or a type.
space_typeNoWhat the sketch shows, e.g. "Living Room" or "Modern House Exterior".
variationsNoNumber of alternative designs (1-4, default 1); each is billed as a generation.
enhance_promptNoLet Luw.ai's prompt enhancer expand a short prompt.
style_referenceNoStyle-transfer source: an image whose look to copy (public https:// link or data: URI; the local npx server also accepts a file path), or "persona" to use slot 1 of persona_id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.3.20
    • addedInput schema / properties / engine / default
      Added value: +"symphony"
    • changedInput schema / properties / engine / description
      Previous value: -"Luw.ai model: aria (default) or symphony (Symphony-3)."New value: +"Luw.ai model: symphony (Symphony-3, the default: the higher quality) or aria (quicker, for everyday work). If the user picked a model earlier in this conversation, use that one."
  2. Changed5 schema fields changedv0.3.18
    • changedInput schema / properties / image / description
      Previous value: -"The sketch or drawing (https:// URL, local file path, or data: URI)."New value: +"The sketch or drawing (public https:// link or data: URI; the local npx server also accepts a file path)."
    • changedInput schema / properties / persona_id / description
      Previous value: -"Persona whose saved images and style knowledge to use."New value: +"Persona whose saved images to use. Its saved styles and room or building type apply unless you send styles or a type."
    • changedInput schema / properties / precision / description
      Previous value: -"How strictly to keep the input's structure: 90 = precise, 75 = balanced, 40 = creative."New value: +"How freely the prompt enhancer writes: 90 = precise, 75 = balanced, 40 = creative. Only used with enhance_prompt."
    • removedInput schema / properties / seed
      Removed value: -{
      -  "description": "Fix for reproducible results.",
      -  "maximum": 9007199254740991,
      -  "minimum": 0,
      -  "type": "integer"
      -}
    • changedInput schema / properties / style_reference / description
      Previous value: -"Style-transfer source: an image whose look to copy (https:// URL, local file path, or data: URI), or \"persona\" to use slot 1 of persona_id."New value: +"Style-transfer source: an image whose look to copy (public https:// link or data: URI; the local npx server also accepts a file path), or \"persona\" to use slot 1 of persona_id."
  3. Changed2 schema fields changedv0.3.2
    • changedInput schema / properties / persona_id / description
      Previous value: -"Persona whose saved images/knowledge to use (see luw_personas)."New value: +"Persona whose saved images and style knowledge to use."
    • changedInput schema / properties / styles / description
      Previous value: -"Design style names, e.g. [\"Japandi\"]. Case-sensitive; see luw_list_options."New value: +"Design style names, e.g. [\"Scandinavian\"]; for Japandi use [\"Japanese Design\", \"Scandinavian\"]. Case-sensitive; see luw_list_options."
  4. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, openWorldHint=true, idempotentHint=false and destructiveHint=false, so the mutation/external-service profile is covered. The description adds genuinely new, non-obvious behavior: 'Costs 1 credit per variation,' which matters because the schema exposes a variations parameter up to 4. It does not say whether the call is synchronous or must be followed by luw_get_result, which is the remaining behavioral gap.

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, front-loaded with the product and the transformation, followed by the cost caveat. No filler, no restatement of the title, and nothing that could be cut without losing information.

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 an 11-parameter generative tool with no output schema, the description is thinner than ideal: it never says what actually comes back (image URLs? job IDs needing luw_get_result?) or whether generation is asynchronous. The rich schema and annotations compensate for most parameter-level gaps, making this adequate but not complete.

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%, so the schema already documents all 11 parameters, their enums, defaults and ranges. The description adds only the billing tie-in to 'variation' and nothing about image/prompt/style semantics. Baseline 3 is appropriate when the schema carries this much detail.

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 gives a concrete verb and resource ('turn a hand sketch, line drawing, floor-plan perspective or rough draft into a photorealistic render'), which cleanly separates the tool from generic image generators like luw_generate_image or luw_render by naming the required input type. It stops short of naming any sibling explicitly, so an agent must infer the boundary rather than being routed.

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 implied rather than stated: the input-type framing ('turn a hand sketch... into a render') tells an agent when this fits, but there is no explicit when-not, no alternative named, and no prerequisite guidance (e.g. public URL requirements or polling for results). The cost note is the only concrete usage signal.

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