MCP server closing the loop from parametric CAD to sliced G-code for 3D printing
printable-mcp demonstrates solid domain-specific tool design with clear parametric CAD workflows. All 11 tools have descriptions (194-char baseline met) and visible input schemas with typed parameters. However, several tools lack parameter descriptions for critical inputs (e.g., 'params' object in cad_write, 'variants' array in compare), and output schemas are not documented. Error handling is present but inconsistent, some tools return structured error dicts with hints, others return bare strings. Tool naming is verb-forward and clear (cad_write, cad_render, print_check), following production conventions. Composition is strong: tools chain logically (write → render → check → slice). No security issues detected (no secrets in params). Main gaps: incomplete parameter documentation, missing output schema specs, and inconsistent error guidance across tools.
Measure a model: bounding box, volume, surface area, body count, centre of mass, wall thickness, and mesh health. Use it to confirm the geometry matches the dimensional requirement before spending a slice on it.
Render a model offscreen and return the images. This is the visual feedback channel: look at the result before trusting it. Available views are iso, front, back, left, right, top, bottom. Set `highlight_overhangs` to shade every surface steeper than the threshold in red, which shows where supports would be needed.
Rebuild a model across a range of values for one parameter and compare them. Returns a table of measurements per value plus a single labelled grid of renders, so variants can be compared side by side. Use it to pick a dimension empirically — most often a clearance, where the table reports the gap between separate bodies and flags the value at which they fuse into one. `param` must be a top-level variable in the model source; OpenSCAD silently ignores an override for anything else, so that case is reported rather than returning a table of identical rows. Set `check` to also run the full printability report on every variant.
Save a parametric model source and compile it to check that it is valid. Writing the same `name` again replaces the source, so an agent can iterate on one model instead of accumulating variants. Compilation errors come back with line numbers rather than as a failed call. `params` are passed to OpenSCAD as `-D` overrides, so top-level variables in the source can be driven without editing the code.
Parameter descriptions missing or incomplete for complex inputs. 'params' in cad_write, 'variants' in compare, and 'orientation' arrays lack format/constraint documentation. LLMs cannot infer structure of nested objects.
Output schemas not documented. Tools return structured dicts (cad_write) or lists (cad_render, cad_sweep) but LLMs have no schema reference for downstream tool chaining. Breaks pattern:tool-chain.
Inconsistent error handling. cad_write returns structured {'ok': False, 'error': ..., 'diagnostics': ...} with recovery hints; cad_render returns bare strings ['error message']. Agents cannot reliably classify errors as retryable or user-fixable.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | D | 57 | 2026-07-28+ | v2 |
Slice a model across multiple variants and compare the results side by side.
Find the best orientation for a model to minimize supports or print time.
Run the full printability report: mesh integrity, overhangs, wall thickness, bed contact, aspect ratio, and build volume.
Fetch a live image from the printer's camera.
Send a G-code file to the printer over MQTT.
Query the printer's current state over MQTT.
Slice a model to G-code using Bambu Studio or OrcaSlicer.
Printer tools (printer_status, printer_send, printer_camera) have minimal descriptions (60 chars or less) and no parameter documentation. printer_status and printer_camera accept empty input {} but purpose is unclear.
No pagination or result limits documented for tools returning large datasets (cad_sweep contact sheet, compare variants). Risk of context window exhaustion if many variants are swept.