Skip to main content
Glama

Generate styled mockup

generate_styled_mockup

Stufe 3 — generate an AI image (gpt-image-2) in the customer's design from a Stufe-1/2 template plus a style profile. If the source mockup has a rendered image, it is passed as the visual reference so the layout is kept and only the look changes. The result is flagged is_ai_image and its full prompt is stored. WARNING: AI images invent labels/numbers — for views checked against a requirements list, deliver the Stufe-2 render and use Stufe 3 only as a nicer companion.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "generate_styled_mockup"
  }
}

Input Schema

NameRequiredDescriptionDefault
sizeNoImage size (default 1536x1024)
titleNo
project_idNo
customer_idNo
descriptionNoDescribe the view (used if no source mockup, or to steer)
source_mockup_idNoStufe 1/2 mockup UUID to use as the template/reference
style_profile_idNoStyle profile UUID (or pass project_id/customer_id to resolve)
style_reference_mockup_idNoA previous Stufe-3 mockup UUID whose LOOK to copy — passed to gpt-image-2 as a second reference so this image belongs to the same set. If omitted, the profile's design-kit style_anchor is used automatically.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations only declare openWorldHint and non-idempotence; the description adds real behavior on top: the source mockup's rendered image is passed as visual reference so layout is preserved, the output is tagged is_ai_image, and the full prompt is persisted for traceability. It also discloses a genuine risk (invented labels/numbers), which the annotations cannot convey. Not a 5 only because cost, latency, or failure behavior of the image call is unstated.

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 pipeline stage and the core action, then reference behavior, then the caveat. Dense but every sentence carries operational information. The capitalized WARNING is slightly heavy-handed but it is the one line an agent must not miss.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 8-parameter, no-required-parameter generation tool with no output schema, the description covers inputs, fallbacks, output flagging, and the key failure mode. It stops short of describing the returned artifact (image URL/id?) or what happens when no source mockup is supplied and only a description is given.

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 63%, and the description fills the meaningful gap: it explains why source_mockup_id is a template/reference, that style_profile_id can be resolved indirectly via project_id/customer_id, and that style_reference_mockup_id is a second image reference with an automatic style_anchor fallback when omitted. That fallback rule is not in the schema and directly affects what the caller should pass.

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 artifact: generate an AI image in the customer's design from a Stufe-1/2 template plus a style profile. The Stufe-3 framing implicitly separates it from the earlier render stages, though it never names the sibling (e.g. render_mockup) that produces Stufe 2, so an agent must infer the mapping.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly states the condition under which this tool should NOT be used: views checked against a requirements list should ship the Stufe-2 render, with Stufe 3 only as a companion. That is a real when-not plus the correct alternative behavior, which is rare in this catalog.

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