Skip to main content
Glama

Get the window preview

get_visualiser_preview

Draw and return the preview for a job_id from start_visualiser_preview: the blind in the chosen colour on the customer's photo, as an image in the result and as image_url (kept 7 days). The first call draws it (30 to 90 s; outdoor up to 2 minutes); status "drawing" means call again after retry_after_seconds.

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": {
      "job_id": "<job_id>"
    },
    "name": "get_visualiser_preview"
  }
}

Input Schema

NameRequiredDescriptionDefault
job_idYesId of the preview job, as returned when the preview was started

Output Schema

NameRequiredDescriptionDefault
noteNo
errorNo
colourNo
job_idYes
statusYes
checkedNo
image_urlNo
image_mimeNo
product_idNo
retry_after_secondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / job_id / description
      Added value: +"Id of the preview job, as returned when the preview was started"
  2. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Adds substantial behavior beyond the annotations: the first call performs the drawing (30-90 s, up to 2 min outdoor), the result carries both an inline image and an image_url retained 7 days, and the "drawing" status/retry_after_seconds contract is spelled out. Annotations only supply readOnlyHint=false and openWorldHint=true, which is consistent with an on-demand render, so no contradiction; the remaining gap is minor (no failure/error-state behavior).

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 action and the artifact, and every clause carries information (latency, output shapes, retention, retry). It is one dense run-on sentence with colon/semicolon chaining, which slightly hurts scannability but wastes no words.

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

Completeness5/5

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

For a one-parameter polling/render tool with an output schema, this covers everything the agent must know: where job_id comes from, how long the render takes, what comes back, retention, and what to do when it is not ready yet. Return-value detail is correctly left to the output schema.

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 the single parameter is self-describing, so the baseline is 3. The description earns an extra point by tracing job_id back to the producing tool start_visualiser_preview, which is provenance the schema does not state.

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 and resource ("Draw and return the preview") scoped to a job_id from start_visualiser_preview, and says concretely what the artifact is: the blind in the chosen colour composited on the customer's photo. It is unambiguously distinguishable from the sibling that starts the job.

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?

Gives the precondition (job_id as returned by start_visualiser_preview) and an explicit retry rule: status "drawing" means call again after retry_after_seconds. That is exactly the when-and-how guidance an agent needs for a polling endpoint.

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