kernelCAD
Server Details
CAD in ChatGPT and Claude: editable parts, STEP/STL/drawings, in-chat 3D, automatic checks.
- Status
- Healthy
- Uptime
- 100.0% over the last 24 hours
- Last Tested
- Transport
- Streamable HTTP · MCP 2025-11-25
- URL
- Repository
- w1ne/kernelCAD-web
- GitHub Stars
- 35
- Server Listing
- kernelCAD
- ChatGPT
- –
- Claude
- kernelCAD
TDQS
Scored across 22 tools
Most tools have a distinct role, but four separate 'evaluate/check' entry points overlap heavily: evaluate_script, design_loop, review_cad and verify all build the script and report mechanism/validity findings, and the descriptions have to cross-reference each other ('PREFERRED over one-shot evaluate_script', 'the same error review_cad reports', 'for the script-declared gates use verify({check:"dfm"})'). Similarly dfm_review vs verify({check:'dfm'}) and render_preview vs open_in_studio vs get_model_mesh require long prose to disambiguate. The descriptions do resolve it, but boundaries are not self-evident.
The dominant convention is snake_case verb_noun (evaluate_script, get_project, request_upload, order_part, search_tools, call_tool). Deviations are minor but real: single-word router tools (export, inspect, verify) and the inverted pair dfm_review vs review_cad, plus noun-phrase names like hardware_pack and design_loop.
22 advertised tools is at the heavy end, and it is only manageable because several of them are polymorphic routers (export by target, inspect by 'of', verify by 'check'). Worse, roughly 50 more tools are hidden behind search_tools/call_tool, so the effective surface is far larger than 22 and discovery becomes a two-step process. Scope is broad enough to justify many tools, but not this many distinct entry points.
Coverage is exceptional: modeling, evaluation, mechanism review, DFM, export in a dozen formats, BOM, drawing/DFM vendor packs, rendering, import, project revisions, pricing and ordering, FEA, and a parts catalog. Small gaps and one dangling reference: get_project tells the agent to 'prefer list_my_projects', but no such tool exists in the advertised or hidden list, and there is no delete/rename-project operation.
Available Tools
22 toolscall_toolRun ToolADestructiveInspect
Run any kernelCAD tool by name. Use it when a tool description or a tool result tells you to call a tool that is not in your tool list (for example repair_script, execute_cookbook, trace_from_image or run_fea), and for tools found with search_tools. Pass the tool name and its arguments object as that tool's inputSchema describes; search_tools returns the schema. The result is the tool's own result.
Inputs: name (required), arguments. Returns: object
design_loopRun Design LoopAIdempotentInspect
Use this when the goal is complex / production / enclosure / gearbox / robot-arm / multi-body, or when you need evaluate→review/verify→revise until green. PREFERRED over one-shot evaluate_script+open_in_studio for Adam-level parts. Runs a CAD design loop over attempt scripts: review_cad each attempt, continue past functional attempts with unresolved warnings, return repair prompts (nextActionPrompt) plus structured revisionAssist (suggestedPatches / autoApplied.suggestedCode for repairable feature failures; cookbook steers for stacked-primitive toys). Stop on ok or convergence.escalate. To pick among N alternative candidates for one goal without a judge, pass them all as attempts with consensus:true (geometric medoid selection). Optionally write a Studio build record JSON.
Inputs: goal (required), attempts (required), assembly, consensus, +17 more. Returns: object
dfm_reviewReview ManufacturabilityARead-onlyIdempotentInspect
Use this when you need a manufacturability (DFM) report before printing, machining, bending (sheet metal) or injection molding a part: returns a three-state checklist, no dfmSpec(...) needed. Pass { file | code } and optional processes: 'fdm' | 'cnc' | 'sheet-metal' | 'injection-molding' (default ['fdm', 'cnc']). FDM 3D printing checks: fdm.overhangs (unsupported overhang steeper than max_overhang_deg, default 45° from vertical), fdm.bridging (bridges over max_bridge_mm, default 10), fdm.min-wall (walls under 2 × nozzle_mm, default 0.4 mm nozzle), fdm.min-hole (holes under 5 × nozzle), fdm.min-pin (warn), fdm.bed-fit (printer profile bed, default generic-fdm), fdm.bed-contact (warn). CNC 3-axis milling checks: cnc.undercuts (surface unreachable from approach_axes, default ['+z']; list several axes for several setups) and cnc.internal-corner-radius (sharp internal corners and fillets smaller than the end-mill radius, tool_diameter_mm default 6). Sheet-metal checks (sheetMetal(...).bend(...) parts; thickness read from the model; a non-sheet part returns sheet.not-sheet-metal as not-checked) on the flat pattern: sheet.min-bend-radius (inner radius ≥ min_bend_radius_ratio × t, default 1), sheet.hole-to-bend (hole edge to bend line ≥ hole_to_bend_thicknesses × t + R, default 2.5), sheet.hole-to-edge (≥ hole_to_edge_thicknesses × t, default 2), sheet.min-flange (outside of bend to edge ≥ min_flange_thicknesses × t, default 4). Injection-molding checks (the dfmSpec({ process: 'moulding' }) engine; two-part mold opening along ±pull_direction, default '+z'): mold.draft (faces with less than min_draft_deg draft, default 1°; face refs are optional when unique lineage is available), mold.wall-thickness (fail under min_wall_mm, default 1; warn over max_wall_mm, default 4, or when thickest/thinnest > max_wall_ratio, default 2.5), mold.undercuts (faces neither mold half releases), mold.sharp-internal-corners (warn: creases and fillets under min_radius_mm, default 0.5); an unmeasured required rule is not-checked. Returns { ok, verdict?: 'pass'|'fail'|'not-checked', checks: [{ id (rule key), process, part, source, status: 'pass'|'fail'|'warn'|'not-checked', summary, value?, limit?, unit?, op?, tolerance?, refs? }] }. Tolerance is in the same unit as value and limit, defaults to zero, and is inclusive: for >=, pass when value + tolerance >= limit; for <=, pass when value - tolerance <= limit. Face refs are omitted when unique resolvable lineage is unavailable. Also returns fdm?, cnc?, sheetMetal?, injectionMolding?, diagnostics. ok reports successful invocation/model evaluation/process execution, not manufacturability: checked findings can fail while ok is true. Argument or model-evaluation errors return ok: false without a verdict; a completed review can be not-checked while ok is true. Settings from the script's dfmSpec({ process: 'fdm' | 'moulding' }) are used as defaults; call options win. For the script-declared gates (clearance, voids, channels) use verify({ check: 'dfm' }).
Inputs: code, file, printer, nozzle_mm, +17 more. Returns: object
evaluate_scriptEvaluate CAD ScriptAInspect
Run a script and check the built model against its declared requirements. A full result has buildOk for geometry availability and ok for overall acceptance: a failed or not-evaluated requirement makes ok:false while retaining built geometry for inspection. Full local builds return viewerUrl: a live Studio link reused and updated on later full builds in the same MCP process. Hosted builds return viewerMode: hosted and viewerHint pointing to open_in_studio; they do not start a loopback viewer. Full evaluations return step evidence: build validity, volume and before/after local PNG paths in one shared iso frame. Snapshots require PW_CDP_URL for an existing browser; unavailable captures report an explicit error. Run a kernelCAD .kcad.ts script and report pass/fail + feature count + diagnostics + sceneSummary (BREP validity, volume in mm³, face count, bounding size in mm). When ok is false, refuse is the first error (refuse.code, refuse.message, refuse.try) so the next edit can target it. When the scene is assembly-built (assembly().part(...) → .model()/.solvedModel()), also returns a parts summary { count, names } AND runs the mechanism-truth gate by default: the mechanism field reports real/broken/unverified and a broken mechanism (disconnected components / mechanism.orphan-part, self-collision, fastened drift, dof-mismatch) makes ok:false with the failures in diagnostics. A mate connector more than 6 mm outside the bounding box of its part and of every part fastened to it (assembly.mechanical.connector-not-in-solid, the same error review_cad reports) also makes mechanism broken and ok:false, preserving the diagnostic — a mechanism (any mate or joint) needs every part linked by connectors + mates/joints (axis+revolute for shafts/hinges/gears; frame+fastened for rigid; or arm.revolute/.prismatic/.ball/.fixed). A plain multi-part assembly with no mates (base + lid, print layout) is independent bodies and passes. Pass { skip_mechanism_check: true } to opt out (e.g. a deliberately free part next to a mechanism). An animation or drive on a fastened joint (mechanism.motion-on-fixed-joint) is broken: animate a revolute/prismatic mate pose. For a model with moving joints or motion intent, mechanismSummary.statement is one plain line: "Motion checked: ..." names what ran; "Motion not checked: ..." is NOT a pass — never call that mechanism working. If the joint-range collision sweep exceeds its work budget, mechanism.unverified-budget-exceeded appears as a warning in diagnostics and mechanismSummary.skipped explains the skip. Rest-pose body continuity, mate contact and interpenetration still run; a rest-pose error makes the mechanism broken, while a clean but skipped sweep remains unverified. Every union() is checked too (no opt-out): union.disconnected (the union is several separate solids — a floating operand) and union.member-overlap (two operands that each carry their own .finish()/.material(), the same one, share > 1 mm³ — cut members to fit, e.g. a cross tube between rails is span minus two rail widths) make ok:false. Pass either { file: "" } or { code: "" }. Set { dry_run: true } for fast validation while iterating: transpile + capture + capture-light checks without building solids, DFM gates, or meshing — milliseconds instead of seconds (100x+ on boolean/fillet-heavy scripts). A dry run catches script throws, capture-time API misuse, and assembly validity-gate failures, but NOT lowering failures or dfmSpec diagnostics; it leaves the active session untouched, so finish with a full (non-dry) evaluate_script before using session-dependent tools. To show a measurement in the 3D viewer (e.g. hole spacing), declare it in the script with shape.dimension({ kind: "linear", from, to, label }); a full evaluate lists them as dimensions: [{ text, kind, source }], and a shared /p link with ?dims=1 forces them on. A full evaluation updates the active MCP session and viewer state and keeps temporary step evidence; { dryRun: true } leaves the active session unchanged. Iterating on a saved project: pass file "project:" plus patch ([{ old, new }], each old exactly once) instead of resending the script; nothing is saved until open_in_studio. Hosted: lib.fromSTEP / fromSTL / meshFromSTL / fromDXF / fromSVG and referenceImage take a direct string literal or a const bound to one (computed expressions are unsupported). They accept "asset:" (from request_upload), an https:// URL or a data: URI as the path.
Inputs: code, file, patch, intent, +5 more. Returns: object
exportExportAInspect
Use this when you need to export geometry to a file. One exporter, selected by target:
target:'model' — export the script geometry to one file. Pass { file | code }, a required { output_path }, and { format }. Supported formats: stl (binary STL mesh), step (BREP CAD interchange), dxf (2D cut file for laser / waterjet / CNC: a flat part — plate, panel, extruded profile, in any orientation — exports its outline and holes in its own plane with exact arcs and circles; a sheet-metal part or a returned Region exports its flat pattern; a flat or sheet-metal part also returns sheet { thickness_mm, bend_count }, which a shop needs and the DXF does not carry; options.section { axis: "x"|"y"|"z", at } exports the cross-section of any part in world coordinates (plans, profiles); a multi-part model (cut list) writes all parts side by side on output_path, one layer per part, plus parts/.dxf per part (reported in part_files; options.layout 'sheet' writes the combined sheet only); a 3D part that is not a flat plate or panel fails with export.dxf.non-planar), 3mf (slicer-friendly mesh: one named object per part, colours as core-spec basematerials named by the part's engineering material; options.arrange 'plate' packs parts on the bed at Z=0 without overlap (options.orient puts each part's largest flat face down), 'assembled' keeps them together as one multi-part object for multi-colour prints; options.slicer 'bambu' | 'orca' | 'prusa' adds that slicer's per-object name + filament-slot sidecar — slot N is the Nth distinct colour/material), options.infill { fromFea: '' | true, bands?, pattern? } = stress-graded FDM infill (requires the local CalculiX + gmsh toolchain; without it the export fails with fea.solver.unavailable): solves the feaStudy and writes modifier volumes, each with its own infill density (Orca/Bambu format by default; options.slicer 'prusa' writes PrusaSlicer's format instead, since the two are not interchangeable); the result carries infill { bands, saving, images }), gcode (installed OrcaSlicer output; preserves G-code and returns optional gcode_stats with header generator identity and slicer-predicted time/material), glb (web-viewer / AR with PBR materials), asset-pack (deterministic zip of the script when the licence allows it, a default-parameter GLB, params JSON, README, SPDX licence, three.js viewer and sha256 manifest), obj (Wavefront indexed triangle mesh), ply (Stanford PLY triangle mesh, mm, Z-up, binary little-endian by default, with per-vertex normals and the part colour from .finish()/.material()/.color(); an assembly is one file with every part in world space), usd (ASCII USDA triangle mesh in millimeter, Z-up coordinates, with face-varying normals split at edges sharper than 30°; multi-part scenes emit one named mesh per part), svg-drawing (third-angle engineering-drawing sheet: front/top/left + isometric views, hidden edges dashed, tangent edges thin, overall bounding-box dimensions, title block; assemblies are drawn with inter-part occlusion; pass options.annotations to dimension specific features instead of the bounding box; pass options.exploded { factor, mode } to explode the isometric cell, options.balloons to number parts from the BOM, and options.partsList for an item/name/qty/material table above the title block). overall bounding-box dimensions, title block; assemblies are drawn with inter-part occlusion; pass options.annotations to dimension specific features instead of the bounding box, options.autoAnnotate to derive datums A/B/C, grouped hole callouts with position tolerances, hole positions, overall size, radius and chamfer callouts, flatness and an ISO 2768 note from the geometry (the result carries drawing_report with placed / overlapped counts), and options.sections for real section views on any cutting plane). pdf-drawing (the same sheet — views, dashed hidden lines, dimensions, hole callouts, GD&T, sections, parts list — as a printable vector PDF on a standard sheet, one call: ISO a4|a3|a2|a1|a0 or ANSI ansi-a…ansi-e landscape, default a3, or sheet "auto" / "auto-ansi" for the smallest sheet that holds the views at 1:1; the drawing scale is picked to fit; projection "third" (default) or "first" arranges the views and draws the matching symbol; a full title block carries title, part name, material, scale, units, sheet size, date and revision, settable through options.title / partName / material / revision / date; overall dimensions are the default; request inferred callouts and tolerances explicitly with options.autoAnnotate). Robot descriptions: urdf (tree-topology robot description), srdf (motion-planning semantics layered over the URDF), sdf-gazebo (SDFormat 1.10 with native ball joints, closed loops, and solved per-link poses), usd-isaac (ASCII USD physics stage: PhysicsArticulationRootAPI root, one rigid body per link at its solved pose with mass / centre of mass / principal inertia, PhysicsFixedJoint/PhysicsRevoluteJoint/PhysicsPrismaticJoint per mate with token axis, two-sided joint frames and limits, UsdPreviewSurface materials from the part appearance, and joint drives only when declared in options.drives { : { stiffness, damping, maxForce?, targetPosition? } }; options.collisionApproximation is convexHull | convexDecomposition; planar/cylindrical/pin_slot/ball mates fail closed with export.usd.joint-unsupported). bom-csv / bom-json (bill of materials over assembly.model()/solvedModel(): one row per distinct part — grouped by geometry/catalog identity, not name — with real instance quantity, kind, material, density, mass, bbox, fabrication process (
process+processSource), declared stock when present, and catalog provenance for purchased parts; same numbers as inspect({ of: 'bom' })). order-pack (a zip: one single-body file per fabricated part — STEP always, plus STL for 3d-print and DXF for sheet-cut rows, per-part drawing PDFs where available — with bom.csv/bom.json, vendor paste handoff texts for purchased rows and a machine-readable manifest; options processes / items narrow which rows are packed; nothing is uploaded). bend-table (tube bender tables over tube() records: one .csv per tube with the LRA bend table, XYZ points, cut length and last straight; output_path is a DIRECTORY and the written files are reported in table_files; a script with no tube() fails with export.bend-table.no-tubes, and a script whose tube gates report errors writes nothing). urdf and sdf-gazebo also write one meshes/.stl per link, and usd-isaac one meshes/.usda mesh layer per link, next to output_path (reported in mesh_files) — ship the whole directory to the consumer. STL exports run a watertight verify by default; failures return ok: false with export.mesh.not-watertight (open-edge count + up to 5 crack-cluster locations) but the file is still written so the broken mesh can be inspected. STEP exports check B-rep validity and mesh watertightness by default; failures return ok: false with export.brep.invalid or export.mesh.not-watertight, while keeping the STEP file for inspection. Set options.verify: false or pass { no_verify: true } to skip STEP checks. Optional { feature_id } selects which feature to export (default: last). Optional { options } carries per-format options bag (see the kernelcad-mcp skill for the per-format keys: step unit/verify, stl tolerance/angularToleranceDeg/verify, dxf layers/tolerance/unit/section/layout, 3mf tolerance/angularToleranceDeg/printUnit/embedSource/arrange/orient/slicer/printer/infill, obj tolerance/angularToleranceDeg, glb axis/draco, ply encoding/normals/colors). A requested mesh tolerance is checked against capped samples on the exact B-rep surfaces and the exported triangles; mesh_deviation reports that sampled maximum and p95, not a certified global bound.target:'part' — export solved-assembly parts as individual binary STL files in their modeled (world-frame) positions. Pass { file | code }, plus { part, output_path } for one part or { output_dir } for all parts (files land at <output_dir>/.stl). A watertight verify runs on every exported mesh by default and fails the call with export.mesh.not-watertight; unknown part names fail with export.part.not-found listing the valid names. Pass { no_verify: true } to skip the watertight gate. target:"part" options: { tolerance?: mm (finite, >= 0.001), angularToleranceDeg?: degrees }; each written STL reports mesh_deviation alongside watertight. Geometry-quality gate (both targets; formats stl, step, 3mf, obj, ply, gcode): every solid body (each assembly part) is screened for BREP faces below tiny_face_area_mm2 (default 0.01 mm²) and edges below short_edge_length_mm (default 0.1 mm), the same thresholds as verify({ check: 'geometry-quality' }) without its symmetry sampling. quality_gate 'warn' (default) exports and returns geometryQuality { ok, tinyFaces, shortEdges, worst: up to 5 { part, kind, id, location, size, unit }, thresholds, parts } plus warn diagnostics export.geometry-quality.tiny-faces / export.geometry-quality.short-edges; 'block' makes them errors and writes no file (ok: false); 'off' skips the screen. Shells, mesh bodies and bodies past the face budget are skipped with info export.geometry-quality.skipped. All params except
targetare forwarded verbatim; each target fails closed on its own missing required params. Hosted server: the file is written on the kernelCAD server, NOT on the caller's machine. The result carriesdownloads[]— an HTTPSurlper file (expires after 24 h; give it to the user) — Small text files an agent can read (SVG, DXF, URDF, JSON, CSV; up to 32 KB) also come inline as an embedded resource; STEP, STL, 3MF and GLB are link-only — do not fetch them into your context, give the user the link.output_pathonly names the file; the returnedoutput_pathis a server-side path, usable only asfilein later calls to this server. HEAVY FORMATS (step/stl/3mf/glb): if OCCT serialization outlives the client tool-call limit, this tool returns { ok:true, status:"running", code:"export.deferred", job_id } while the export continues on the server — poll by calling export({ job_id }) until status is done/failed. CRITICAL: open_in_studio / paint does NOT need STEP. On export.deferred or any STEP stall, call open_in_studio immediately for the shaded widget; do not block paint on export.
Inputs: code, file, part, format, +11 more. Returns: object
get_model_meshGet Model MeshARead-onlyInspect
Return the raw per-feature triangle mesh (positions/indices/normals) of a project by slug. Pass version for an exact immutable revision; omission reads the current model. The result echoes slug and version. For the in-chat 3D viewer widget to render geometry; delivered over the MCP Apps bridge. The slug is the capability: public/unlisted need no OAuth; private requires the owner signed in. This tool returns geometry without publishing a mesh, preview or animation artifact.
Inputs: slug (required), version. Returns: object
get_projectGet ProjectARead-onlyInspect
Use this when you need to reopen a saved project or browse what the user has saved — it fetches a kernelCAD Studio project, or lists the signed-in user's saved projects. Pass slug (from a /p/ link or a prior listing) to fetch that project's full .kcad source and metadata — then edit and open_in_studio with the same slug so the user's open tab updates live. Private projects require their owner's OAuth connection. OMIT slug to list the signed-in user's saved projects (most recently updated first); that listing mode requires the OAuth connection and does NOT paint — prefer list_my_projects to find a project to continue. Read-only: this tool never shows a viewer (only open_in_studio does, once per response). Paint phases: projectSaved/meshReady reflect fetch state; viewerPainted stays false. Use open_in_studio (with code) to publish+paint — do NOT call get_model_mesh or get_latest_render for interactive paint.
Inputs: slug. Returns: ok, url, code, slug, +18 more
get_project_revisionGet Project RevisionARead-onlyInspect
Fetch the exact immutable .kcad source and parameters captured at a prior open_in_studio version. Use this to read-after-write verify a release: pass the returned slug and version, then hash or inspect the returned source. Public/unlisted projects use the slug as capability; private projects require the owner's OAuth connection.
Inputs: slug (required), version (required). Returns: ok, code, slug, title, +3 more
hardware_packBuild with LabWired and KernelCADARead-onlyInspect
Plan one device across KernelCAD and LabWired. Read-only: returns companion tool names, project/revision links, the electronics-to-mechanics handoff, and a device review link for API clients. The viewer uses Order as its only purchase action. Use for robots, enclosures, PCB mounts or any hardware with electronics and mechanical parts. Optional slug resolves an accessible saved KernelCAD project; pass version to pin an immutable CAD revision, otherwise its current revision is used. Optional labwired_project/labwired_revision preserves its electronics reference. No purchase, payment, account linking, source upload or companion authorization is performed.
Inputs: slug, version, labwired_pcb, labwired_share, +3 more. Returns: object
import_stepImport STEPAIdempotentInspect
Use this when the user wants to start from their own STEP, IGES, native OCCT BREP, STL, OBJ, PLY, 3MF, glTF or GLB file (a part they designed elsewhere, a vendor model). Give exactly one source: url (a public https direct-download link), upload (a file the user attached in ChatGPT), or content_base64 (raw bytes, small files only). Max 50 MB. The format is detected from the bytes or file name (or pass format: 'step' | 'iges' | 'brep' | 'stl' | 'obj' | 'ply' | '3mf' | 'gltf' | 'glb'). STEP, IGES and BREP produce exact B-rep solids; IGES uses OCCT's reader and the shared topology repair pass, while BREP is OCCT's native serialization. A CAD file that does not produce a valid solid fails; it is never replaced by a mesh. STL is imported as faceted geometry. OBJ, PLY, 3MF, glTF and GLB stay source meshes. Writes the file and a starter .kcad.ts into output_dir (default: a fresh temp dir), evaluates it, and returns { ok, format, model_path, script_path, code, bbox, import_report }. The report gives representation, exact_solid, mesh_fallback, repair_required, solid_count, face_count, and triangle_count. Native CAD importers fail if they do not produce an exact solid; they never substitute a mesh. Every mesh format is reported as source-mesh, not as a CAD fallback. Pass script_path as { file } to evaluate_script, add_feature, dfm_review, export and the other tools, or edit code to build on the body. Source meshes are display-only triangle geometry. Use STEP, IGES or BREP when exact CAD topology is required. A non-watertight STL is refused unless allow_open is true.
Inputs: url, name, format, upload, +4 more. Returns: object
inspectInspect ModelARead-onlyIdempotentInspect
Use this when you need to read facts about a model. One reader, selected by of:
'assembly' — physical assembly inventory (parts, bboxes, connectors, mates, disconnected solids).
'robot' — URDF/SDFormat export preview (links, joints, planning groups, end-effectors, issues).
'step' — inspect an imported STEP file: solid tree, exact bbox/volume, analytic planar/cylindrical faces, hole axes, and conservative hole/pocket/boss/slot/round candidates with per-feature status/confidence.
'brep' — the same recognition report for a native OCCT BREP file, including BRepCheck validity per solid.
'shape' — volume / surfaceArea / bbox for one feature ({ feature_id? }).
'mass' — mass, centre of mass, centroidal inertia tensor (inertia6 + 3x3 inertiaMatrix), principalMoments/principalAxes, symmetry flags, and optionally the radius of gyration about an arbitrary axis ({ feature_id?, density?, gyration_axis? }); density in kg/m^3, defaults to 1000 (water).
'features' — features captured by the script (kind, id, params, transforms, suppression).
'assemblies' — assembly intent (assemblies, parts, connectors, joints).
'topology' — canonical face names + edge count for a feature ({ feature_id? }).
'edges' — edges of a shape with optional EdgeQuery ({ feature_id?, query? }); returns @kc[...] refs.
'face-edges' — boundary edges of a named canonical face ({ feature_id?, face_name }).
'faces' — faces of a shape with optional FaceQuery ({ feature_id?, query? }); returns @kc[...] refs.
'face-labels' — user-applied labels visible in the script.
'mates' — declared mates and limits. code/file captures the supplied source atomically. Optional query:{poses} adds solution from the mate solver and makes ok reflect convergence. evaluationEvidence binds exact source bytes and query inputs.
'constraints' — sketch constraints captured by the script.
'part-stats' — bundled parts-catalog statistics.
'bend-table' — sheet-metal bend table for a flattened pattern.
'params' — declared model parameters.
'part-categories' — top-level part-catalog categories available in the bundled (and configured remote) catalog.
'part-families' — part families within a category ({ category? }); count + exemplar ids per family.
'bom' — bill of materials ({ assembly? }): one row per distinct part (grouped by geometry/catalog identity, not name) with real instance quantity, kind ('fabricated'|'purchased'), material, density, per-unit and total mass, bbox, a fabrication process (
process+processSource), declaredstock(bar/plate/blank/filament, mm) whenasm.partset it, catalog provenance for purchased parts, and totals;bom.*diagnostics flag rows with no density source or missing catalog vendor info instead of guessing.'section' — numeric cross-section probe of a shape: area, perimeter, loop/hole counts, 2D bbox at a plane ({ feature_id?, plane | at+axis, stack?: { from, to, count, axis? } }).
stackscans evenly spaced slices and returnsminAreaIndex/minAreaPosition— use it to find the neck/thinnest cross-section along an axis.'continuity' — sampled G0/G1/G2 classification of shared edges ({ feature_id?, edges? }); returns the 9-station method, position/normal/curvature tolerances, edge-frame curvature comparability, worst sample, and explicitly marks G3/G4 as unmeasured. G2 describes the sampled BREP seam result, not the requested feature option.
'curvature' — per-face Gaussian and mean curvature min/max/mean, inflections, spikes ({ feature_id?, faces?, spike_factor? }).
'multi-material' — explicit material leaves shadowed by later attributed boolean descendants, with assembly-part rewrite templates; analyzes capture records and does not change mesh attribution. All params except
ofare subject-specific and forwarded verbatim. Most subjects accept { file | code }. Iterating on a saved project: pass file "project:" pluspatch([{ old, new }], each old exactly once) instead of resending the script; nothing is saved until open_in_studio. Hosted: give the file as an https:// URL, a data: URI (base64, max 25 MB) or "asset:" from request_upload (when the file is on the user's device).
Inputs: of (required), at, axis, code, +14 more. Returns: object
lookup_apiLook Up APIARead-onlyIdempotentInspect
Look up the kernelCAD script API by symbol, plain-language query, and/or section. Plain-language matches are ranked across sections. Results contain exact runtime signatures. All matching entries are returned by default; set limit and offset only when you want pages. Omit query and section for the compact API index and section counts. Use query to request full descriptions of matching entries. intent is telemetry, not a search query. Lookup responses include kernelSource: the exact kernel package version/revision, composed runtime source hash, and version-pinned public authoring/API references.
Inputs: limit, query, intent, offset, +1 more. Returns: object
lookup_authoring_skillLook Up Authoring SkillARead-onlyInspect
Return the kernelcad-authoring skill — conventions for writing .kcad.ts scripts (API surface, parameters, evaluation contract, common pitfalls) — in sections.
Call with NO arguments first: you get the quick-start (units, axes, the return rule, the rules that prevent most failures, the intent → API routing table, the "Before you finish" checklist) and an index of every section with a one-line summary (under 17k chars). Then pull what you need: { section: "<id>" } returns one section (e.g. "top-level-functions", "materials", "dfm-gates-print-readiness"); { query: "fillet after subtract" } returns the best-matching sections. { section: "all" } returns the full ~140k-char skill (SKILL.md plus its reference files) — only if your client accepts large responses.
Clients that list resources can also read kernelcad://skills/authoring (the SKILL.md core).
OUTPUT: { uri, mimeType, mode, text, sections? } — mode is index | section | search | all | not-found. Lookup responses include kernelSource: the exact kernel package version/revision, composed runtime source hash, and version-pinned public authoring/API references.
Inputs: query, topic, section. Returns: object
lookup_cookbookLook Up CookbookARead-onlyIdempotentInspect
Use this when you need a canonical pattern snippet for a CAD task. Search the kernelCAD cookbook for canonical pattern snippets. Returns top-k snippets matching the natural-language query, ranked by BM25 over title/tags/keywords/trigger. Use when you need a canonical pattern for fillet-after-subtract, non-overlapping booleans, sketch-to-extrude flows, etc. Returns empty if no snippet scores above the relevance floor — proceed without cookbook help in that case. Lookup responses include kernelSource: the exact kernel package version/revision, composed runtime source hash, and version-pinned public authoring/API references.
Inputs: k, id, query, intent. Returns: object
open_in_studioOpen in StudioAInspect
Save the model as a kernelCAD project AND show it: persists a project revision, returns the interactive Studio viewer (MCP Apps / ChatGPT outputTemplate), and includes a PNG preview in the SAME tool result (image content + previewUrl when available). For a new private model pass new_project:true, privacy:"private" over an authenticated connection. Private models return an owner-only Studio link without public preview, mesh or animation artifacts. For an update, pass expected_version from your read to refuse overwriting a newer revision. Decide electronics actions from the user request at render time: pass show_electronics:true only when electronics are relevant. Default false for mechanical-only models such as mugs. This is an agent decision, not geometry or linked-PCB detection. Use hardware_pack for optional LabWired context. ONE VIEWER PER PROJECT PER RESPONSE: every call renders a new viewer card. Do all validation with evaluate_script first, then call open_in_studio exactly once, after validation succeeds; reuse the returned URL, revision and preview, and never call it again after a successful result in the same response. Re-calling with unchanged code for the same project returns that revision instead of writing a new one. A heavy model can answer status:"running" (code tool.still-running) before the client times out; that is NOT a success: call open_in_studio again with exactly the same arguments, which joins the running save and returns its result. CONTINUE, DO NOT DUPLICATE: to change a model you already saved, pass project: '<slug>' from the last result (or from list_my_projects) — this adds a revision to that project. Without project, the save goes to the project this chat already saved, or to your project with the same title (case, punctuation and v2/rev3/(1) ignored) from the last 24 h. Views, poses, colours and options of one design are revisions of ONE project — keep the same title and slug. Pass new_project: true only when the user wants a separate design. A different cookbook (execute_cookbook, or open_in_studio of that cookbook's unchanged source) starts its own project; pass project to add a revision, or continue_design: true to keep revising the design this chat is already saving. The result starts with the slug to pass next time, a /p/?version= link for this revision, and that revision's title. Use this when the user wants to SEE or share the model — do NOT call get_latest_render afterwards for the happy path; the preview is already here when previewDelivered is true. Pass the full .kcad source as code (optional if you just called evaluate_script — omitting reuses that last evaluated source). Editing a saved project: run evaluate_script with file "project:" and patch ([{ old, new }]) to test small edits without resending the script, then call this with project: '<slug>' (no code) to save that patched source. Code that fails evaluate_script (for example overlapping same-material members or floating pieces) is refused; fix it first. A broken mechanism verdict alone does NOT refuse: the revision is saved, Studio shows "Mechanism broken", and the result returns mechanismSummary (statement, maxLevel, failures with the joint). Tell the user the mechanism is broken; do not call it working. Multi-body assemblies must declare connectors + mates/joints before publish — otherwise evaluate_script fails with mechanism.orphan-part (disconnected components). Use type: 'axis' + revolute mates for shafts/hinges/gears; type: 'frame' + fastened for rigid mounts; or arm.revolute/.prismatic/.ball/.fixed. Connector types are only frame|axis|planar|ball. Status fields: ok=true means the project revision was saved (projectSaved=true). meshSaved reports whether its display mesh is persisted; meshStatus=failed means meshSaved=false, but the saved project remains usable for geometry checks. Do not claim its 3D viewer is ready. previewDelivered=true means this result carries a displayable PNG — only then may you tell the user a preview was shown. meshStatus mirrors get_project (ready|building|failed|missing). Under CDN, open_in_studio waits up to ~20s (OPEN_IN_STUDIO_MESH_SYNC_BUDGET_MS) for the revision mesh before returning; heavier publishes usually land meshStatus=ready. If still meshStatus=building + meshReady=false: TRANSIENT — meshUrl is the expected CDN pin; embed retries 404s. Poll get_project({slug}) until ready (it shows no viewer) — do not re-call open_in_studio, and never treat building as permanent failure/404. ALWAYS pass code when you have it (avoid no_code_to_reuse); evaluate_script reuse is a fallback. Paint phases: projectSaved / meshReady / previewDelivered are set here; viewerPainted is ONLY true after widget ack (model context / widgetState) — never claim paint from this tool alone. Do NOT call get_model_mesh or get_latest_render for interactive paint. INDEPENDENT OF EXPORT/STEP: call this for shaded paint even while export is running, timed out, or returned export.deferred — mesh paint does not wait on STEP. Never block open_in_studio on a STEP download. Pass include_preview:false to skip the rasterizer (save + viewer URLs only). Trigger phrases: "open it in Studio", "let me see it", "show me the model"; also call once after you finish a build, and once per response after each meaningful revision while iterating. ORGANIC/CAR SUCCESS GATE: for final likeness claims pass likeness_profile:"automotive" (and body_bbox/wheels/still_verdicts, or a prior verify body-likeness pass for this code). If the gate fails, ok:false with DX reference.likeness.publish-blocked|gate-required — do not claim success. Omit likeness_profile for WIP previews only. Declare dimensions in the source with shape.dimension({ kind, from, to, label }) (label is a name; the measured value is appended) and they show on the model in every viewer; add ?dims=1 to a /p link to force dimensions on. MARK & FIX: a user message starting Edit kernelCAD project <slug> (revision N): "<note>". Targets: #1 feature "<id>" ... comes from pins the user tapped in the viewer. Feature/part ids are the script's own feature and part names (assembly part names, named shapes); points are world mm. Call get_project with that slug, change only the named features near those points, keep everything else, then open_in_studio with project set to the same slug. Hosted: lib.fromSTEP / fromSTL / meshFromSTL / fromDXF / fromSVG and referenceImage take a direct string literal or a const bound to one (computed expressions are unsupported). They accept "asset:" (from request_upload), an https:// URL or a data: URI as the path.
Inputs: code, slug, title, intent, +16 more. Returns: ok, url, slug, title, +32 more
order_partOrder PartAInspect
Order the part made: creates the production request and returns a pay_url for the user. Propose the manufacturing method from the user's words and the part, pass it as method with a one-line reason. The price is the real maker price; never invent or send one. Tell the user the card is only held, and a person confirms the final price before charging. If the result is status "pricing", the price is still being worked out: call again in a few seconds.
Inputs: slug, method, source. Returns: object
price_partPrice PartARead-onlyInspect
Start or read the real price for making the part. Cheap. Returns status "ready" with estimate_cents and summary, or "pricing" while the makers are asked (call again in a few seconds). Creates nothing and charges nothing.
Inputs: slug, method, source. Returns: object
render_previewRender PreviewAInspect
Use this when you need to LOOK at a kernelCAD model — render its script to deterministic PNG views for visual self-check (the visual half of the evaluate → render → inspect → fix loop), with NO studio or dev server required. Pass { code } (inline source) or { file } (a .kcad.ts path), exactly one. Renders the canonical engineering views (front, right, top, iso — pass { views } for a subset, e.g. ["iso"] for fastest iteration) plus an optional { pose: "," } arbitrary camera angle (degrees; az=0,el=0 is front, +az rotates CCW around +Z, +el lifts the camera). NO STUDIO / DEV-SERVER REQUIRED: a prebuilt static player (dist/headless-player) is served from an ephemeral local port automatically; a running studio dev server is used as fallback, and { base_url } forces one. The only environment dependency is playwright chromium (npx playwright install chromium). Pass { focus } or { hide } (arrays of feature ids or assembly part names, mutually exclusive) to isolate parts — same semantics as kernelcad render --focus/--hide. Pass { section: { axis, position, flip? } } to cut a cross-section and inspect INTERIOR geometry (wall thickness, internal pockets, whether a bore runs through) rather than only the outer shell. Pass { explode: { factor, mode? } } to pull a multi-part assembly apart (mode: "mate-axis" default, or "radial") using the same mesher as kernelcad render --explode — requires assembly.model()/solvedModel(). PNGs are written to { out_dir } (default: a fresh temp session directory) and returned as absolute paths with per-view camera descriptions (kernelCAD is Z-up). Mechanism truth runs first, same protocol as kernelcad render: a broken mechanism still renders but every tile is watermarked MECHANISM BROKEN (KERNELCAD_RENDER_STRICT=1 refuses instead); read { mechanism, mechanism_failure_codes }. The probe runs full BREP interference sweeps and can dominate latency on large assemblies — pass { no_mechanism_check: true } for fast iteration (the preview then reports mechanism: "unverified"; ignored under strict mode). Pass { overlay: 'zebra' | 'curvature' | 'continuity' } for a surface-quality visualisation (zebra stripes from vertex normals, curvature as vertex colours, continuity edges coloured by G0/G1/G2/broken) — numbers come from inspect({ of: 'continuity' | 'curvature' }); the overlay is the picture. PUBLISH / STUDIO PRESETS: pass { preset: 'publish' } for a share-ready studio product shot (gallery tile, social post, README image, product page) or { preset: 'studio' } for the standard KernelCAD studio graphical render mode. Both use studio key/fill/rim lights + procedural softbox IBL, real self-shadowing, AgX tone mapping, soft contact shadow, clean backdrop ({ background: 'white' (publish default) | 'light' | 'dark' | 'black' | 'neutral' | 'studio' (soft gradient, studio default) | '#rrggbb' | 'transparent' } — transparent gives a PNG with alpha), { shadow: false } to drop the shadow, supersampled anti-aliasing, 30° lens, the model silhouette centred and auto-framed with margin (a script's setCameraTarget is ignored), per-part colours/materials as authored, no watermark. With no views/pose it renders ONE image named 'hero': publish at 3/4 front-right az=30°, el=22°, 1600×1200; studio at az=32°, el=24°, 1280×960. width/height go up to 2048; views/pose still work under either preset. Output is deterministic for the same input. For a 360° loop use capture_animation({ turntable: true }). INSPECTION SHEET: { sheet: true } renders all seven views (iso, front, back, left, right, top, bottom) and adds one labelled image named 'sheet' tiling them — do not call a model done because it compiled; call it done when every tile of the sheet matches the request. Returns { ok, images: [{ name, path, description }], out_dir, bounds, mechanism, render_source, render_ms, diagnostics }. PATHS ARE LOCAL to the machine running the MCP server — local stdio clients read them directly; hosted/remote clients should use open_in_studio instead.
Hosted server: the PNGs come back IN the result as image content (up to ~1.5 MB total; larger sets are link-only) and each images[i].url is an HTTPS link that expires after 24 h. images[].path is a server-side path you cannot open. Works without saving a project (autosave:false is fine). Iterating on a saved project: pass file "project:" plus patch ([{ old, new }], each old exactly once) instead of resending the script; nothing is saved until open_in_studio. Hosted: lib.fromSTEP / fromSTL / meshFromSTL / fromDXF / fromSVG and referenceImage take a direct string literal or a const bound to one (computed expressions are unsupported). They accept "asset:" (from request_upload), an https:// URL or a data: URI as the path.
Inputs: code, file, hide, pose, +20 more. Returns: object
request_uploadRequest File UploadAInspect
Use this when the user has a photo, PDF drawing, STEP, STL, DXF, SVG or 3MF file on their device and you need it in a kernelCAD tool (trace_from_image, drawing_to_cad, mesh_to_features, inspect of:"step", or lib.fromSTEP / fromSTL / fromDXF / fromSVG / referenceImage in a script). Do not ask the user to paste the file as text or base64, and do not type coordinates from an image by hand. Returns a one-time uploadUrl (valid 30 minutes) and an asset reference. Give the user the link; after they say the upload is done, pass the asset value ("asset:") as the file argument, for example trace_from_image({ imageUrl: "asset:" }) or lib.fromSTEP("asset:"). If the file is already at a public https:// URL, pass that URL instead. On clients that support MCP URL elicitation the upload page opens for the user directly and the call returns once the file is stored (status "uploaded"); then use the asset right away without asking the user anything.
Inputs: purpose. Returns: object
review_cadReview CAD ModelAInspect
Run a deterministic mechanism-fitness review on supplied kernelCAD code or a file. It performs a full evaluation, replaces the active MCP session model on success, and clears that session if evaluation fails. The script may load referenced assets. The review validates the assembly/mate graph and connector placement, samples declared mate limits, optionally checks interference at sampled poses, and reports connector workspace bounds, fitness findings, and a repair mode (none, local-fix, parameter-tune, or topology-redesign). Runs within time_budget_ms (default 90 s); stages that do not fit are listed in skippedStages and were not checked. Hosted: lib.fromSTEP / fromSTL / meshFromSTL / fromDXF / fromSVG and referenceImage take a direct string literal or a const bound to one (computed expressions are unsupported). They accept "asset:" (from request_upload), an https:// URL or a data: URI as the path.
Inputs: code, file, assembly, design_goal, +13 more. Returns: object
search_toolsSearch ToolsARead-onlyInspect
Find kernelCAD tools that are not in the advertised list. Returns matching tool definitions (name, title, description, inputSchema); run one with call_tool({ name, arguments }). Example queries: "assembly mate", "nurbs surface", "stress analysis", "find a bearing part". Tools available this way: review_paint_peek_latest, get_latest_render, mesh_summary, report_need, netlist_export, netlist_query, erc_run, search_assets, get_asset, get_asset_pack, diff_scripts, why_did_this_fail, set_param, add_feature, add_surface, add_curve, add_path_segment, trace_from_image, add_variable_sweep, add_text, project_curve, add_pattern_feature, remove_feature, query, lookup_diagnostics, find_part, fetch_part, solve_sketch, add_constraint, add_part, add_connector, add_mate, add_workspace_target, set_scene_return, solve_mates, flatten_pattern, evaluate_sdf, capture_animation, resolve_assumptions, run_fea, fea_summary, repair_script, sweep_tolerance, diff_geometry, drawing_to_cad, mesh_to_features, execute_cookbook, fab_pack, ray_pick, inspect_nurbs, fit_plane, mesh_boolean, explode_view, apply_surface_blend, write_bom, blockout_assembly, estimate_assembly_manufacturing, request_assembly_quote.
Inputs: query (required), limit. Returns: object
verifyVerify DesignARead-onlyIdempotentInspect
Use this when you need to check a design against a rule set. One verifier, selected by check:
'assembly' — static assembly review ({ file | code }, or the session evaluate_script left): mate validator, default-pose interference, joint topology, mechanical plausibility. ok:false with
blocking[]exactly when review_cad's blocking rules fire on these findings; review_cad also sweeps joint ranges and runs physics.'urdf' — structural validity of a .urdf file ({ urdf_path }).
'dfm' — print-readiness gates declared by dfmSpec() ({ file | code }).
'dfm-preflight' — sheet-metal flat pattern vs a job-shop's ordering rules ({ vendor, material, thickness_in|thickness_mm, ... }). Returns the vendor's catalog source pages as
sources; whendisclosureis present, show it with those links.'assembly-path' — continuous straight-line removal of each assembly part along ±X/±Y/±Z and optional world-space directions. Returns valid directions, blocking parts and one of three states (removable / blocked / unknown); sequence peels the directional blocking graph and reverses it into a build sequence with a model stamp. Fastened-mate and fixed-connect clusters become subassemblies: each is planned recursively inside and installed as one unit at the top level (
Step.subassembly). Remaining valid orders use deterministic heuristics (subassemblies first, outside-in, fewest reorientations, fewest tool changes); stuck sets get a budgeted blocking-reduction partition and a sampling fallback whose paths are labelled found-by-search, never proven. A fastener with a fastened-matefastenerdeclaration (axis, pitch, optional tool envelope) is tested along its helical path and reportedmotion: helical; a press/snapfitdeclaration becomes arequires-forcestep, never simulated. A modelled driver/socket/hex-key envelope swept along the approach axis addstoolBlocked{ fastener, blockers } and a failing S2 ledger entry; unmodelled tools add nothing. Threaded fasteners without metadata stay unknown: non-straight-path.stability: trueadds an approximate P3 support check at each build step: each part's mesh centre of mass must project inside the support polygon of its contacts with already-stable parts (declared or inferred base/fixture undergravity, default [0,0,-1]); unsupported parts becomeneedsHold{ part, reason, supports } and their steps carrystability: 'needs-hold', while stable steps may carryheldBy. This is a projection, not gravity simulation, friction, tipping or fixture analysis. disassemblyOrder runs a deterministic greedy removal pass. Watertight mesh approximation, conservative contact, no rotation/mate/hardware certification.'swept-collision' — sweep declared joint range(s) and report colliding poses.
'joint-range' — suggest revolute and prismatic mate limits from geometry. Each joint is swept alone from its authored pose, other mates held at their authored poses, until a non-exempt pair is within clearance_mm (default 0.3) or the finite search bound is reached. Exact BREP distance brackets the crossing and the reported stop is the clear side of that bracket, so the suggested limit keeps the requested clearance. Returns lower/upper stop, the limiting part pair, resolution, and status stop | no-stop | unknown. no-stop means no crossing was found at the sampled poses, not continuous proof that the interval is clear. Unknown (no finite bound, budget, or a failed measurement) is never reported as no-stop. The result includes a limits snippet to apply explicitly; the script is not rewritten. Mate neighbours and declared contact pairs are not stops.
'reachable' — inverse-kinematics reachability for an end-effector ({ tip_link, target_position, ... }).
'geometry-quality' — one solid body's BREP tiny faces and short edges (ids, locations, mm²/mm), plus sampled mirror symmetry about centroid XY/YZ/XZ and principal inertia planes ({ file | code, feature_id?, tiny_face_area_mm2?, tiny_face_relative?, short_edge_length_mm?, symmetry_tolerance_mm?, mesh_deflection_mm?, asserted_plane?: { origin, normal } }). Relative area is a fraction of total surface area; thresholds are ORed. Candidate planes are discovery; only an asserted plane gates symmetry. Approximate sampled tessellation, not exact BREP proof.
'fastener-installation' — measured explicit catalog-screw installation stations on lowered assembly BREP ({ file | code, fasteners:[{ part, against, engagement_part?, min_engagement_mm?, max_protrusion_mm? }], tolerance_mm?, angle_tolerance_deg? }). Reports annular bearing gap, bore axis/diameter/overlap and receiver geometric engagement/protrusion. Unknown or zero coverage cannot pass. Simplified threads do not certify torque, preload or strength.
'mounting-holes' — fastened mates: hole pairs one screw can use (equal, or clearance over a tap drill / hole({ thread }) of the same metric size; hole-free faces are a rigid bond) and fastener holes meeting at the contact face are coaxial. Sides it cannot resolve are info, never mismatches.
'load-capacity' — will it hold? Closed-form Euler-Bernoulli beam check ({ loads, materials, ... }), or mode:'fea' to solve the script's feaStudy (quadratic-tet FEA, CalculiX) — both return { ok, safetyFactor, elements[{ partName, stressPa, yieldPa, safetyFactor }], failures[], diagnostics }; fea adds the threshold, the stress regions as @kc[...] faces with their location, and fea { peakStressPa, maxDisplacementMm, meshTrusted, peakAtSupportPa, refinement }; it refines the mesh automatically until the stress is trusted (refine: false for one solve).
'static-hold' — gravitational holding torque/force at a sampled pose grid vs actuator capacities declared on arm.revolute / arm.prismatic joints ({ joint?, pose?, gravity?, min_torque_margin_pct?, range_samples? }). No actuator coverage returns ok:false with assembly.joint.static-hold.no-actuator; unavailable assembly mass properties return ok:false with assembly.joint.static-hold.mass-unavailable; mate-only mechanicalJoint chains are not evaluated; check their torqueNm ratings with 'motion-load' (quasi_static: true).
'motion-load' — loads on each driven joint (mechanicalJoint on a revolute mate) while the model moves: gravity, inertia from the animationView tracks (finite differences), optional external forces. Mass and inertia come from the solids and density/material, or a part's massKg. Returns per joint peak torque vs the mechanicalJoint torqueNm (margin; < 1x error, < 2x warning), axial / radial force and bending moment on the actuator shaft (checked only against radialLimitN / axialLimitN; without them 'no rating, not checked'), the radial load on each of up to two coaxial supports (each at its station on the shaft: the actuator at the joint origin, else the support's connector on the axis, else the middle of its material nearest the shaft; an ambiguous station is a mechanism.load.not-resolved warning, not a number), the worst pose, a torque-vs-time series, and
partLoads(the worst wrench per part and side in that part's own frame, whichfeaStudy({ loadsFrom })consumes) ({ file | code, motion_mode?: 'tracks'|'range'|'poses', motion_poses?: [{ joint: value }], sample_ms?, range_samples?, quasi_static?, gravity?, motion_loads?: [{ part, point, force, from_ms?, to_ms? }], supports?: { joint: [parts] }, series_points? }). Pass supports to compare with and without a bushing. Rigid bodies, tree mate graphs, no friction.'physics' — mechanism truth: rest-pose continuity, contact and interpenetration; budgeted joint-range collision/DOF sweep; and, when within the physics budget, static equilibrium and drop-on-release under gravity ({ file | code, assembly?, physics? }). Returns { ok, mechanism: 'real'|'broken'|'unverified', failures[], coverage }. A skipped sweep reports warning mechanism.unverified-budget-exceeded with coverage.sweep:false; a skipped physics pass reports warning mechanism.physics-budget-exceeded with coverage.physics:false. A closed-loop mate graph reports warning mechanism.physics-unsupported with coverage.physics:false and stays unverified: that rejection is unsupported topology, not a dynamics failure. Any of these skips leaves a clean mechanism unverified, but a completed rest-pose error still makes it broken. A physics budget skip occurs before MuJoCo runs.
'edge-radius' — general edge-break specification on final BREP ({ file | code, min_radius_mm?, max_radius_mm?, require_edge_break?: 'external'|'internal'|'all', feature_id?, assembly?, parts?, edges?, faces? }). Reports sharp convex/concave edges, analytic cylindrical/toroidal fillet radii and spherical junctions, and heuristic planar chamfer strips. Radius bounds apply only to fillets; selectors/points are part-local. Unknown/empty coverage cannot pass.
'clearance-range' — per mating pair, actual vs planned minimum clearance at rest and across the declared joint range ({ file | code, assembly?, min_clearance_mm?, samples_per_mate? }). Planned values come from solvedModel({}, { clearances }) and, for every movable (non-fastened) mate pair not declared there, from min_clearance_mm or dfmSpec({ minClearance }); ignored and declared-contact pairs are exempt. Poses are the pose-envelope samples (rest, each limited mate's min, interior and max, coupled mates driven through their source); distance is exact BREP. Each row { a, b, planned, plannedSource, at: rest|range, actual, worstSample, status: pass|fail|unknown, reason }. A movable mate with no limits, an unsolved pose or an unmeasured pair gives unknown, never pass; ok only when every row passes. All params except
checkare check-specific and forwarded verbatim; each check fails closed on its own missing required params. Iterating on a saved project: pass file "project:" pluspatch([{ old, new }], each old exactly once) instead of resending the script; nothing is saved until open_in_studio.
Inputs: check (required), dxf, code, file, +71 more. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Parametric 3D CAD for AI agents: build print-ready parts, check them, export STL, 3MF or STEP.
- AutoMEPDeprecatedapp.automep
Edit AutoCAD and Revit MEP drawings from Claude or ChatGPT in plain English.
A browser 3D CAD for your AI: it scripts real-size models, uCAD builds them and returns pictures.
Browser CAD for AI: model parts and joints, check motion, export STEP, STL or robot files
Related MCP Servers
- AlicenseAqualityBmaintenanceGive your AI assistant the ability to inspect, measure, and compare 3D CAD models by dropping in a STEP file and asking engineering questions. Runs entirely on your machine with no cloud, no CAD license, and no setup.5160 npm6MIT
- AlicenseNot gradedqualityCmaintenanceEnables conversational creation and editing of STEP CAD models through MCP clients like Codex, Claude, or Cursor, with real-time 3D browser preview and tools for primitives, booleans, mounting holes, flanges, and gripper bases.1MIT
- -licenseNot gradedqualityNot gradedmaintenanceLets AI apps such as Claude, Cursor and Gemini CLI model directly in the parametric CAD design open in the user's own browser tab, covering constrained sketches, features, standard parts, assemblies and joints, interference and motion checks, and laser-cut box generation. Designs can be exported as STEP or STL, or as a robot to URDF, MJCF, SDF and a ROS 2 package.-
- AlicenseNot gradedqualityBmaintenanceEnables Claude to create and modify real Onshape CAD models — sketches, extrudes, fillets, patterns, mates, and parametric variables — with every mutation returning structured status, warnings, and geometric deltas. Includes multi-view PNG rendering, image-reference decomposition, and drawing OCR so the agent can visually verify and iterate on parts and assemblies.MIT
Glama MCP Gateway
Add one secure layer between your agents and this server.