Skip to main content
Glama

Preview the garment

preview_design
Destructive

Render a garment preview for the current or supplied design in an asynchronous workflow. Stores preview artifacts and updates session state. Supplied design/currentDesign/designs patches can overwrite existing session content before rendering, which can fetch public image URLs in those designs. Poll get_design_request until terminal and show the returned preview URL.

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": {
      "subject": "<subject>",
      "sessionToken": "<sessionToken>",
      "requestId": "<requestId>"
    },
    "name": "preview_design"
  }
}

Input Schema

NameRequiredDescriptionDefault
optionsNoExisting arguments; advanced fields/aliases remain accepted. Supplied design patches can overwrite session content; preview/rendering can fetch public image URLs in those designs. Catalogue/session results include the full designArgumentSchema.
subjectYesThe exact subject returned by start_design_session.
requestIdYesGenerate a UUID for a new action. Reuse it only for retrying/polling that same action and payload. A new user edit needs a new UUID.
sessionTokenYesThe private expiring capability returned by start_design_session. Do not publish it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / options / description
      Previous value: -"Existing arguments; advanced fields/aliases remain accepted. Catalogue/session results include the full designArgumentSchema."New value: +"Existing arguments; advanced fields/aliases remain accepted. Supplied design patches can overwrite session content; preview/rendering can fetch public image URLs in those designs. Catalogue/session results include the full designArgumentSchema."
  2. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already flag destructive=true, openWorld=true and non-idempotent, and the description earns its credit by specifying WHAT is affected: it 'stores preview artifacts and updates session state', and supplied design patches 'can overwrite existing session content' and 'can fetch public image URLs'. It also restates the requestId retry contract, so an agent knows the mutation is not safely repeatable with a new UUID.

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?

Three sentences, front-loaded with purpose then side effects then the follow-up polling step. A little redundancy with the options field description, but no wasted framing or filler.

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?

With no output schema, the description correctly states what comes back ('the returned preview URL') and how to obtain it via get_design_request. For a destructive, async, nested-object tool this is nearly complete; only error/failure behavior of the render request is unaddressed.

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 subject, requestId and sessionToken, and the options description already warns about design patches and image URL fetches. The description mostly restates that, adding only the plural 'designs' patch alias that does not appear in the schema — marginal added meaning, so baseline 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?

States a specific verb and resource ('Render a garment preview') plus the scope ('current or supplied design') and the async nature of the operation. An agent can tell this apart from mutation siblings like change_design or validate_design, though it never names an alternative for the non-preview path.

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 concrete operational guidance: call it to render, then 'Poll get_design_request until terminal and show the returned preview URL' — an explicit follow-up step naming a sibling. It lacks any when-not guidance (e.g., don't call if the design is unvalidated or no session exists), which keeps it below 5.

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