Agent tools

Reference for every zolid-mcp tool - build, import, look, history, export, print, help, projects - with arguments, results and prompting tips.

zolid-mcp gives your agent eight tools. They are deliberately few and broad: agents do best with a small toolset, and short descriptions cost fewer tokens on every call.

ToolPurpose
helpRead the Pipe language reference.
buildAdd a Pipe step to the model, save it, get a summary and a preview.
importBring in an STL, OBJ or GLB file from your disk as a new part, or a .pipe file as a new project.
lookRender from any view and measure the model or one part.
historyList, undo, redo, checkpoint, roll back.
exportWrite STL, 3MF (also print-ready), GLB, STEP or OBJ; exact STEP with Pro or Teams.
printCheck printability for a printer and material, find the best orientation, list printers.
projectsList, open or start projects; make one public or private; switch workspace (personal or a team).

Tool calls run one at a time. Failures come back as tool errors the agent can read and fix; they never break the session.

help

Returns the Pipe language reference. Agents should call it once before their first build.

ArgumentTypeNotes
topicdeform · curves · uv · remesh · scene · langOptional. Without it: the core reference plus notes on how Zolid uses steps.
JSON
{ "topic": "curves" }
TopicCovers
deformsolidify, bend / twist / taper / curve / lattice deforms
curvesbezier, nurbs, sweep, extrude2d with holes
uvSmooth shading, UV unwrapping, vertex colours, decimation
remeshremesh, bisect, load
sceneMultiple parts, groups, instances, del
langMacros, logic, lists, maths helpers, pivots

The same material, written for people, is in the Pipe reference.

build

Runs Pipe code as one new step of the current project and saves the project.

ArgumentTypeNotes
codestringRequired. The Pipe for this step.
projectstringOptional. A project name: switches to it, or creates it if it doesn't exist.
JSON
{  "project": "Cable organizer",  "code": "# base block\nunits(\"mm\")\nbase = box(60, 40, 18, z0=0) | fillet(vertical, 6)"}

Result: a text summary and a 512 px preview image with four views.

Text
Project "Cable organizer" (cable-organizer) · 1 stepsParts (1): base 60×40×18Size 60×40×18 mm · volume 42591.83 mm³ · watertightNo problems found.Watch live: http://localhost:51234/app?live=3f9c…&project=cable-organizer
  • Sizes are in the model's unit. Three or more parts numbered alike are listed as one entry, such as spike_1…20 (20 parts, each 2×2×8). If the model uses group(), parts are listed one line per group.
  • Problems lists craftsmanship warnings, such as parts that overlap. On a big model it gives counts by kind (Problems (46): 32 parts volumetrically interpenetrate, 14 disconnected shells in one part.) and then lists only the problems that are new or changed since the previous step. look {details: true} lists them all.
  • The first build of a session adds the Watch live link: the studio, served by zolid-mcp on your computer. Everything else (docs, gallery, your account) opens on zolid.dev.
  • When you are signed in, results end with a sync status, such as Sync: synced (public). If you have never chosen whether new projects are public or private, the first new project stays on your computer and the result tells the agent to ask you (see Sync agent projects).
  • If the code fails, the result is an error starting with Build failed; nothing changed. followed by the engine's message. The project is untouched.

Parts and numbers persist between builds, so each call can be one meaningful step: "base", "holes", "lid". Lists and macros must be defined in the step that uses them.

import

Reads a mesh file from your computer and adds it to the current project as a new part, in one step, like the studio's Import.

ArgumentTypeNotes
filestringRequired. Path of an .stl, .obj, .glb or .pipe file. Use an absolute path; ~/ is your home folder.
projectstringOptional. A project name: switches to it, or creates it if it doesn't exist. For a .pipe file: the new project's name.
JSON
{ "project": "Bracket remix", "file": "/Users/you/Downloads/Wall Bracket.stl" }

Result: the same summary and preview as build. The part is named after the file (wall_bracket), and the next build can work on it:

JSON
{ "code": "wall_bracket = wall_bracket | cut(cyl(2.5, 20, at=(0, 0, 5)))" }
  • STL and OBJ have no unit and are read as millimetres, then scaled into the project's unit (an empty project switches to mm). GLB files are in metres and convert themselves.
  • A copy of the file is kept with the project, in ~/Zolid/<project>/assets/, so the project reopens and replays without the original. Signed in, the file is uploaded with the project, and projects with imported files made in the studio come down with their files.
  • A file that isn't a valid mesh, has holes, or is made of overlapping pieces is refused with a message saying how to fix it, ending Nothing changed. See Import errors.
  • A .pipe file becomes a new project instead, one step per # --- step: <label> section, named by its # name: line, by project, or by the file name (see Import a .pipe file). A step that fails stops it with Step N (<label>) failed: … and nothing is created. In a team, your agent asks you where to save it first, like any new project.

look

Renders the model and measures it, without changing anything.

ArgumentTypeNotes
viewquad · iso · front · back · top · right · leftOptional, default quad (four views in one image).
partstringOptional. Render only this part and report its features.
detailsbooleanOptional. List every problem, not just the new ones.
focuslist of part namesOptional. Frame these parts while every part is still drawn: a face with its eyes, beard and cap, say.
JSON
{ "view": "front", "part": "lid" }
JSON
{ "view": "front", "focus": ["face", "beard", "cap"] }

Without part, the text is the same summary as build. With part, it lists measured features: size and centre, symmetry, wall thickness (minimum and median), flat faces with their positions and areas, holes and bosses.

history

Moves through the project's history. Every action is itself recorded, so nothing is lost.

ArgumentTypeNotes
actionlist · undo · redo · checkpoint · rollbackRequired.
tagstringCheckpoint name. For checkpoint: optional (default v1, v2, …). For rollback: optional (default: latest checkpoint).
JSON
{ "action": "checkpoint", "tag": "before-fillets" }
ActionResult
listThe steps, numbered, e.g. #3 eval holes; notes when redo is available.
undoRemoves the effect of the last step: everything it defined (parts, def macros, named materials). The undo is itself a step.
redoRestores what the last undo removed (only right after an undo).
checkpointSaves a named point to come back to.
rollbackReturns to a checkpoint.

A failed build never needs an undo: it didn't change anything.

export

Writes the model to the project's exports/ folder.

ArgumentTypeNotes
formatstl · 3mf · glb · step · obj · step-exactRequired. step-exact: exact B-rep STEP (Pro or Teams), see below.
partstringOptional. Export only this part.
printbooleanOptional. With format: "3mf": a print-ready 3MF for printer and material.
printer, materialstringOptional, for print: true. As for the print tool.
JSON
{ "format": "stl" }
Text
Wrote /Users/you/Zolid/cable-organizer/exports/cable-organizer.stl (3884 bytes).

Without part, all parts go into one file (separate named objects in 3MF, OBJ and GLB). With part, the file is named <project>-<part>.<format>. Files are overwritten on each export. See Export formats.

A print-ready 3MF is in millimetres, carries slicer settings for the printer and material, and maps the part colours to the printer's filament slots (AMS, MMU). It is named <project>-print.3mf:

JSON
{ "format": "3mf", "print": true, "printer": "prusa_mk4s", "material": "PETG" }
Text
Wrote /Users/you/Zolid/cable-organizer/exports/cable-organizer-print.3mf (8629 bytes): print-ready 3MF in mm for Prusa MK4S · PETG, part colours mapped to filament slots. Ready to print.

An exact STEP (step-exact, Precision CAD, Pro and Teams) is a B-rep solid with true planes, cylinders and fillets for CAD and CNC, written as <project>-exact.step. It is always the whole model. It needs zolid-mcp login on a Pro account (or as a member of a paid team); on the free plan or signed out the tool says so, with the pricing link. If a step can't be exact, nothing is written and the error says which:

JSON
{ "format": "step-exact" }
Text
Wrote /Users/you/Zolid/bracket/exports/bracket-exact.step (21455 bytes): exact B-rep STEP (AP214, analytic surfaces, part names and colours) for CAD/CNC.
Text
Not exact: deform(twist) in step 4 (part spring). Exact STEP needs every step to be exact, and Zolid never passes a mesh off as one. Use format "step" (mesh), "stl" or "3mf" instead, ...

The first step-exact downloads the CAD kernel (two files, about 4.6 MB) from your account server, checks their checksums and keeps them in your user cache folder.

print

3D-printing tools, computed on your computer: printability checks, auto-orient and the printer list.

ArgumentTypeNotes
actioncheck · orient · profilesOptional, default check.
printerstringOptional. A printer id (prusa_mk4s) or part of its name ("mk4s", "a1 mini"), or one of your own profiles by name. Default: Bambu Lab P1S.
materialstringOptional. A material id or the start of its name (PLA, PETG, PC, PA, PETG_CF, TPU, RESIN_STD, …), or one of your own. Default: the printer's own. It must suit the printer (no resin on a filament printer).
partstringOptional. Check or orient one part instead of the whole model.
applybooleanFor orient: move the model as recommended (one undoable step).

The 34 printers and 17 materials are listed in Printers and materials; { "action": "profiles" } lists every id with its build volume and colour slots. When zolid-mcp is logged in, your own profiles (synced from the studio, including ones you took from the community library) come first, and a name of yours wins over a built-in one.

check runs the nine printability checks and reports the verdict, size, weight and time, then each warning or failure with where it is (in mm) and what to do, and minor findings (tiny things that print fine) in one line. When something needs attention, a 4-view heatmap image is attached. When the model fails as modelled, check also checks it as orient would lay it out and, if that passes, ends with Printable once laid out flat — run print {action:"orient", apply:true}. (if it only helps, Laid out flat it fails 1 check instead of 3 — …). An official calibration or display piece is reported as one (CALIBRATION PIECE — …, DISPLAY PIECE — a showcase, not designed for printing) instead of NOT READY.

JSON
{ "printer": "a1 mini" }
Text
Print check · Bambu Lab A1 mini · PLA: PRINTABLE WITH WARNINGS (0 fail, 1 warn, 8 pass)Size 10×10×60 mm · 6 cm³ · about 3 g · about 9 minWARN Bed adhesion  - tall/slender height-to-width ratio 6.00 exceeds 3.0 (Bedslinger); risk of wobble or bed detachment at (0, 0, 30) mm  → Give the part a larger flat face on the bed: reorient it (print {action:"orient"}), or add a brim or raft.Passed: Watertight, Fits the printer, Overhangs, Bridges, Floating islands, Wall thickness, Clearance between parts, Material & colour swaps

orient recommends the orientation with the fewest problems, least overhang and most bed contact, and changes nothing. With apply: true it moves the model as one new step (listed in history, undoable) and returns the new summary and preview.

Text
Recommended: Rotate by (0.0, -90.0, 0.0) deg about X, Y, Z: problem checks 1 -> 0; bed contact 100.0 -> 600.0 mm^2; height 60.0 -> 10.0 mm.problems 1 → 0 · height 60 → 10 mm · bed contact 100 → 600 mm² · overhangs 0 → 0 mm²To apply it, call print {action:"orient", apply: true} (one undoable step).

A model of separate pieces is laid out flat on the bed, each piece in its own best pose; the answer says how each lies:

Text
Recommended: lay out 5 pieces on the bed: body as modelled; wheel_fl, wheel_fr, wheel_rl, wheel_rr on their sides.problems 6 → 3 · height 36 → 29 mm · bed contact 37.7 → 1933.4 mm² · overhangs 1268.6 → 1108.4 mm²To apply it, call print {action:"orient", apply: true} (one undoable step).

To write the file for the slicer, use export with print: true. How the checks work: 3D printing.

projects

Manages projects in the project folder (~/Zolid by default).

ArgumentTypeNotes
actionlist · open · new · copy · remix · public · private · visibility · workspaceRequired.
namestringFor open: the project's name or id, or a pasted link (required). For new: the name (default Untitled). For copy: the copy's name (default <name> (copy)). For remix: a share link. For visibility: public or private (none = show it). For workspace: personal or a team's name (none = list them).
JSON
{ "action": "open", "name": "Phone stand" }
ActionResult
listEvery project in the folder: id, name, step count, visibility, last change, and team "Acme" for a team's projects. The current one is marked *.
openSwitches to a project and rebuilds it from its history. Also takes a link you paste: a studio link (https://zolid.dev/app?project=…) or id opens that project from your account or one of your teams, downloading it first if it isn't in the folder yet (signed in); a live-view link opens its project. A share link (/p/…) to someone else's project can't be edited, so the agent offers remix. If the project isn't yours, or you aren't signed in, the result says so and how to fix it.
newStarts an empty project and switches to it.
copyCopies the current project (all its steps and imported files) into a new project and switches to it, to try a variant. The original is unchanged. The copy is a new project, so it follows the same visibility rules.
remixCopies a public project from its share link into a new project of yours, like Remix on its share page.
public, privateSets the current project's visibility. Only matters when you are signed in and it syncs.
visibilitySigned in: the default for new projects. The first time a new project would sync, the agent asks you public or private and saves your answer with this action. Without name it shows the current default.
workspaceSigned in: without name, lists your workspaces (personal and your teams, with your role); with name, new projects sync there and list shows that workspace's projects. Every session starts in your personal workspace; if you are in a team, the first new project of a session (build, import or new) waits until your agent asks you where to save it and picks a workspace (personal included).

A session starts on the most recently changed project. build with a project name is the shortest way to switch or create.

With an account, the agent must never publish your work on its own: if your private slots are used up, the sync status says so and tells the agent to ask you first. See Accounts.

Prompting tips

  • Give real dimensions and the purpose. "A wall hook for a 25 mm towel rail, 5 kg load, M4 screws" beats "a hook".
  • Ask for steps. "Build it in steps: body, then holes, then the lid" gives you a readable history and easy undo.
  • Say how it will be made. "For FDM printing in PETG, no supports" makes the agent set units("mm"), stand parts on the bed and avoid overhangs.
  • Ask it to look. "Check the front view and the wall thickness" makes the agent call look and catch mistakes.
  • Name the parts. "Make the lid a separate part called lid" keeps parts apart for multi-colour prints and separate exports.
  • Ask for parameters. "Put the width, depth and wall at the top as numbers" makes resizing one edit.
  • Finish with print and export. "Check it prints on my Prusa MK4S in PETG, orient it for printing and export a print-ready 3MF."
  • Iterate in words. "Make the slot 2 mm wider", "round the top edges", "undo the last step" all map onto single tool calls.

The live view shows each step as it lands, so you can stop the agent as soon as something looks wrong.