Skip to main content
Glama

Run any Luw.ai model (advanced)

luw_run_model

Runs Luw models through POST /generate with raw API parameters when dedicated tools lack coverage, such as persona-slot inputs or webhooks.

Instructions

Call POST /generate with raw API parameters, for models or options the dedicated tools don't cover (e.g. persona-slot inputs, webhooks). Models: interior, exterior, sketch, render, magicprompt, magicwand, moodboard, landscape, enhance, expand, vector, removefurniture, segment, segmentprompt, fluw, fluwvector, pattern, changebg, removebg, video, 3dgen. Parameter reference: https://luw-ai.gitbook.io/api. Image fields (image, mask_image, material_image, style_transfer, extra_image_1…6) also accept local paths and data: URIs. Spends credits like the model's own tool.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modelYesModel id, e.g. interior or magicprompt.
paramsNoOther /generate parameters, e.g. {"image": "…", "prompt": "…", "precise": 75}.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare non-read-only, non-idempotent, open-world, non-destructive. The description adds genuinely new behavior: it consumes credits like the model's own tool, and that image fields accept local paths and data: URIs. It does not, however, describe the response shape or async/polling behavior implied by the sibling luw_get_result.

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 escape-hatch rationale, then the model list, then the parameter reference and credit warning. The long model enumeration is dense but earns its place since those ids are the accepted values; the doc URL is a reasonable substitute for inlined detail.

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 generic, open-parameter write tool with no output schema, the definition covers inputs well but says nothing about what is returned or whether the call is synchronous or needs a follow-up via luw_get_result. That omission matters for an agent deciding how to complete the workflow.

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% and both params are documented, but the params object is fully open (additionalProperties: {}), so the description carries real extra weight: it enumerates the 21 valid model ids and clarifies that image/mask/material/style_transfer/extra_image fields also accept local paths and data: URIs. That is information the schema cannot express.

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+resource (POST /generate with raw parameters) and explicitly positions itself as the escape hatch for models/options the dedicated tools don't cover. The enumerated model list makes it immediately distinguishable from the ~20 dedicated siblings.

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?

Gives clear when-to-use: models or options not covered by dedicated tools (e.g. persona-slot inputs, webhooks), which implies the alternative is the dedicated per-model tools. It doesn't explicitly instruct 'prefer the dedicated tool first', but the routing condition is unambiguous.

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