Skip to main content
Glama
prusaslicer-mcp
by sebastienc

preview_model

Read-onlyIdempotent

Render a model as PrusaSlicer will transform it to verify shape and orientation before slicing; returns a PNG with size caption.

Instructions

Draw a picture of a model, to check its shape and which way up it is before slicing.

With rotate_*, scale or scale_to_fit it draws the model as PrusaSlicer will transform it, by asking PrusaSlicer itself, so an orientation can be checked before spending a slice on it. Returns a PNG and a caption with its size. PrusaSlicer prints with z up too, so a model that looks to be lying on its side will be printed that way (scans are often Y-up).

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": {
      "model_path": "<model_path>"
    },
    "name": "preview_model"
  }
}

Input Schema

NameRequiredDescriptionDefault
sizeNoPicture width and height in pixels
viewNoiso (default), front, side or top; sheet puts all four in one picture. Z is up, and the model is drawn centred, as stored unless you give transforms.iso
scaleNoScale factor: 0.5 is half size, 2 is double. Not a percentage. Not with scale_to_fit.
rotate_xNoDegrees to rotate about the X axis. PrusaSlicer applies rotations in the fixed order X, then Y, then Z, whatever order you think of them. 90 or -90 stands a model that lies along Y upright, e.g. a Y-up scan (check with preview_model first). Exactly +-90 about Y combined with a Z rotation can come out differently from that order: preview_model shows what PrusaSlicer really does.
rotate_yNoDegrees to rotate about the Y axis (applied after rotate_x).
rotate_zNoDegrees to rotate about the vertical Z axis (applied last).
model_pathYesAbsolute path to an STL/3MF/OBJ/STEP file
close_holesNoDraw the model with its flat holes capped, as slice_model(close_holes=true) would slice it: see what the base of a scan looks like once closed. Not for PrusaSlicer projects.
scale_to_fitNo[x, y, z] in mm: scale the model uniformly to fit inside this box, e.g. the bed size. Not with scale.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.2

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already cover read-only/idempotent/closed-world, and the description goes well beyond them: it discloses the return payload (a PNG plus a caption with the model size), the fact that transforms are computed by PrusaSlicer itself rather than approximated, and the z-up printing consequence for Y-up scans. That is exactly the kind of behavioral context an agent cannot get from the structured fields.

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 the purpose before the transform caveat and the z-up warning. Each sentence carries information, though the closing parenthetical about Y-up scans is slightly compressed and would read better as its own clause.

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 9-parameter read-only renderer with no output schema, the description supplies the missing pieces: what is returned, how transforms are resolved, and the printing-orientation implication. The remaining parameters are fully described in the schema, so an agent has everything needed to call it correctly.

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%, so the baseline is 3, and the description still adds meaning by grouping rotate_*/scale/scale_to_fit as the transform family and warning that the preview reflects PrusaSlicer's real transformation rather than the agent's mental model. It does not touch size or view, but those are fully documented in the schema.

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?

Opens with a concrete verb+resource ('Draw a picture of a model') and immediately scopes the intent ('check its shape and which way up it is before slicing'), which separates it from slice_model and preview_gcode without needing their schemas.

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?

Clearly states the condition for use: verify shape/orientation before 'spending a slice on it', and notes that transforms are rendered exactly as PrusaSlicer will apply them. It stops short of naming the obvious alternative (suggest_orientation or inspect_model) as the choice for orientation advice, so the routing is implied rather than explicit.

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