Resources and prompts
CAD Oracle overview
Reference for overview.
cad://docs/overview
# CAD Oracle
## Units and coordinates
- Millimeters (`mm`), degrees (`deg`), right-handed Cartesian `(x, y, z)`, `+Z` up, build plate at `Z = 0`.
- Every verified claim sets `verified: true`. Timeouts or incomplete checks return `verified: false`.
## Endpoints
- MCP Streamable HTTP: `POST /mcp`
- REST JSON: `/v1/compile/parametric`, `/v1/verify/printability`, `/v1/check/assembly-fit`, `/v1/optimize/sheet-layout`, `/v1/feedback`
- REST binary mesh upload (`<= 4 MiB` STL/3MF/OBJ): `POST /v1/verify/mesh`
## Privacy
Zero visitor data and zero payload logging. Inputs live in memory only.
Geometric verification only. Not structural or safety certification. Provided as-is without warranty.
compile_parametric_part reference
Reference for parametric.
cad://docs/parametric
# compile_parametric_part
POST `/v1/compile/parametric` or MCP tool `compile_parametric_part`.
## CSG nodes
- Primitives: `box`, `cylinder`, `sphere`, `extrude`, `revolve`
- Transforms: `translate` (`vector`), `rotate` (`angles_deg`, XYZ extrinsic), `scale` (`factor`), `mirror` (`normal`); each takes one `child`
- Booleans and modifiers: `union`, `difference`, `intersection`, `hull`, `offset_2d`
- Limits: 128 nodes, depth 16, 96 segments, 256 points per profile, coordinates in `-10000..10000`.
## Outputs
Verified metrics (`bbox_min_mm`, `bbox_max_mm`, `size_mm`, `volume_mm3`, `surface_area_mm2`, `center_of_mass_mm`, topology counts), optional 3-view orthographic SVG (`<= 128 KiB`), optional cross-section (`section_z_mm` or `section_y_mm`), optional `3mf_base64`/`stl_base64` (`<= 512 KiB`).
Geometric verification only. Not structural or safety certification. Provided as-is without warranty.
verify_printability reference
Reference for printability.
cad://docs/printability
# verify_printability
POST `/v1/verify/printability` (CSG or inline mesh `<= 25000` faces), POST `/v1/verify/mesh` (raw binary STL/3MF/OBJ `<= 4 MiB`, `<= 100000` faces), or MCP tool `verify_printability`.
## Parameters
- `bed_mm`: `[x, y, z]` (default `[220, 220, 220]`; query form `bed_mm=220,220,220`)
- `min_wall_mm`: `0.1..50` (default `1.2`)
- `max_overhang_deg`: `5..85` from vertical `+Z` (default `45`)
- `auto_drop_to_bed`: boolean (default `true`)
- `check_orientations`: boolean (default `false`; evaluates 6 axis-aligned orientations)
- `timeout_ms`: `100..8000` (default `5000`)
## Checks
`topology`, `bed_fit`, `wall_thickness`, `overhangs`, `standing_stability`.
## Mesh upload
`curl --data-binary @part.stl -H 'Content-Type: application/octet-stream' 'https://cad.burgeonads.com/v1/verify/mesh?min_wall_mm=1.2&bed_mm=220,220,220'`
Geometric verification only. Not structural or safety certification. Provided as-is without warranty.
check_assembly_fit reference
Reference for assembly-fit.
cad://docs/assembly-fit
# check_assembly_fit
POST `/v1/check/assembly-fit` or MCP tool `check_assembly_fit`.
## Parameters
- `parts`: `2..16` items `{name, model, role}` (`role`: `solid` or `keepout`)
- `min_clearance_mm`: `0..50` (default `0.2`)
- `pair_rules`: optional overrides `{part_a, part_b, min_clearance_mm, max_gap_mm, allow_contact}`
- `insertion_checks`: optional axis-aligned extraction sweeps `{part, direction}`
## Outputs
Per-pair collision volume, witness point, minimum distance with closest points, and sweep clearance.
Geometric verification only. Not structural or safety certification. Provided as-is without warranty.
optimize_sheet_layout reference
Reference for sheet-layout.
cad://docs/sheet-layout
# optimize_sheet_layout
POST `/v1/optimize/sheet-layout` or MCP tool `optimize_sheet_layout`.
## Parameters
- `sheet_mm`: `[width, height]` (`10..5000`)
- `kerf_mm`: `0..20` (default `0.2`)
- `margin_mm`: `0..100` (default `2.0`)
- `rotation_step_deg`: `0`, `90`, `45`, or `15` (default `90`)
- `parts`: `1..32` items `{id, polygon, holes, quantity}` (max 128 total instances)
- `max_sheets`: `1..8` (default `1`), `include_svg`: boolean (default `true`)
Geometric verification only. Not structural or safety certification. Provided as-is without warranty.
Example enclosure-base
Worked example request for compile_parametric_part.
cad://examples/enclosure-base
{"slug":"enclosure-base","tool":"compile_parametric_part","request":{"model":{"type":"difference","children":[{"type":"union","children":[{"type":"difference","children":[{"type":"box","size":[80,60,30]},{"type":"translate","vector":[2,2,2],"child":{"type":"box","size":[76,56,30]}}]},{"type":"translate","vector":[10,10,1],"child":{"type":"cylinder","radius":3.5,"height":9,"segments":32}},{"type":"translate","vector":[70,10,1],"child":{"type":"cylinder","radius":3.5,"height":9,"segments":32}},{"type":"translate","vector":[10,50,1],"child":{"type":"cylinder","radius":3.5,"height":9,"segments":32}},{"type":"translate","vector":[70,50,1],"child":{"type":"cylinder","radius":3.5,"height":9,"segments":32}}]},{"type":"translate","vector":[34,-1,12],"child":{"type":"box","size":[12,4,6]}},{"type":"translate","vector":[10,10,4],"child":{"type":"cylinder","radius":1.25,"height":7,"segments":24}},{"type":"translate","vector":[70,10,4],"child":{"type":"cylinder","radius":1.25,"height":7,"segments":24}},{"type":"translate","vector":[10,50,4],"child":{"type":"cylinder","radius":1.25,"height":7,"segments":24}},{"type":"translate","vector":[70,50,4],"child":{"type":"cylinder","radius":1.25,"height":7,"segments":24}}]},"section_z_mm":6}}
Example mounting-bracket
Worked example request for compile_parametric_part.
cad://examples/mounting-bracket
{"slug":"mounting-bracket","tool":"compile_parametric_part","request":{"model":{"type":"difference","children":[{"type":"translate","vector":[0,30,0],"child":{"type":"rotate","angles_deg":[90,0,0],"child":{"type":"extrude","polygon":[[0,0],[50,0],[50,5],[5,5],[5,40],[0,40]],"height":30,"fillet_mm":1.5,"segments":24}}},{"type":"translate","vector":[32,8,-1],"child":{"type":"cylinder","radius":2.25,"height":7,"segments":24}},{"type":"translate","vector":[32,22,-1],"child":{"type":"cylinder","radius":2.25,"height":7,"segments":24}},{"type":"translate","vector":[32,8,2.5],"child":{"type":"cylinder","radius":4.0,"height":3,"segments":32}},{"type":"translate","vector":[32,22,2.5],"child":{"type":"cylinder","radius":4.0,"height":3,"segments":32}},{"type":"translate","vector":[-1,15,28],"child":{"type":"rotate","angles_deg":[0,90,0],"child":{"type":"cylinder","radius":2.5,"height":7,"segments":24}}}]},"section_y_mm":8,"export_format":"3mf_base64"}}
Example printability-pass
Worked example request for verify_printability.
cad://examples/printability-pass
{"slug":"printability-pass","tool":"verify_printability","request":{"model":{"type":"union","children":[{"type":"hull","children":[{"type":"box","size":[40,40,2]},{"type":"translate","vector":[2,2,2],"child":{"type":"box","size":[36,36,2]}}]},{"type":"translate","vector":[15,15,4],"child":{"type":"box","size":[10,10,26]}}]},"check_orientations":true}}
Example printability-thin-wall-overhang
Worked example request for verify_printability.
cad://examples/printability-thin-wall-overhang
{"slug":"printability-thin-wall-overhang","tool":"verify_printability","request":{"model":{"type":"union","children":[{"type":"box","size":[12,12,4]},{"type":"translate","vector":[3,3,4],"child":{"type":"box","size":[6,6,40]}},{"type":"translate","vector":[6,3,40],"child":{"type":"box","size":[60,6,4]}},{"type":"translate","vector":[0,5.6,4],"child":{"type":"box","size":[12,0.8,15]}}]}}}
Example assembly-fit-ok
Worked example request for check_assembly_fit.
cad://examples/assembly-fit-ok
{"slug":"assembly-fit-ok","tool":"check_assembly_fit","request":{"parts":[{"name":"base","model":{"type":"difference","children":[{"type":"union","children":[{"type":"difference","children":[{"type":"box","size":[80,60,30]},{"type":"translate","vector":[2,2,2],"child":{"type":"box","size":[76,56,30]}}]},{"type":"translate","vector":[10,10,1],"child":{"type":"cylinder","radius":3.5,"height":9,"segments":32}},{"type":"translate","vector":[70,10,1],"child":{"type":"cylinder","radius":3.5,"height":9,"segments":32}},{"type":"translate","vector":[10,50,1],"child":{"type":"cylinder","radius":3.5,"height":9,"segments":32}},{"type":"translate","vector":[70,50,1],"child":{"type":"cylinder","radius":3.5,"height":9,"segments":32}}]},{"type":"translate","vector":[34,-1,12],"child":{"type":"box","size":[12,4,6]}},{"type":"translate","vector":[10,10,4],"child":{"type":"cylinder","radius":1.25,"height":7,"segments":24}},{"type":"translate","vector":[70,10,4],"child":{"type":"cylinder","radius":1.25,"height":7,"segments":24}},{"type":"translate","vector":[10,50,4],"child":{"type":"cylinder","radius":1.25,"height":7,"segments":24}},{"type":"translate","vector":[70,50,4],"child":{"type":"cylinder","radius":1.25,"height":7,"segments":24}}]},"role":"solid"},{"name":"lid","model":{"type":"union","children":[{"type":"translate","vector":[0,0,30],"child":{"type":"box","size":[80,60,2]}},{"type":"translate","vector":[2.25,2.25,27],"child":{"type":"box","size":[75.5,55.5,3]}}]},"role":"solid"},{"name":"pcb_keepout","model":{"type":"translate","vector":[6,6,10.25],"child":{"type":"box","size":[68,48,13.75]}},"role":"keepout"}],"min_clearance_mm":0.25,"pair_rules":[{"part_a":"base","part_b":"lid","allow_contact":true}],"insertion_checks":[{"part":"lid","direction":[0,0,1]}]}}
Example assembly-fit-collision
Worked example request for check_assembly_fit.
cad://examples/assembly-fit-collision
{"slug":"assembly-fit-collision","tool":"check_assembly_fit","request":{"parts":[{"name":"base","model":{"type":"union","children":[{"type":"difference","children":[{"type":"union","children":[{"type":"difference","children":[{"type":"box","size":[80,60,30]},{"type":"translate","vector":[2,2,2],"child":{"type":"box","size":[76,56,30]}}]},{"type":"translate","vector":[10,10,1],"child":{"type":"cylinder","radius":3.5,"height":9,"segments":32}},{"type":"translate","vector":[70,10,1],"child":{"type":"cylinder","radius":3.5,"height":9,"segments":32}},{"type":"translate","vector":[10,50,1],"child":{"type":"cylinder","radius":3.5,"height":9,"segments":32}},{"type":"translate","vector":[70,50,1],"child":{"type":"cylinder","radius":3.5,"height":9,"segments":32}}]},{"type":"translate","vector":[34,-1,12],"child":{"type":"box","size":[12,4,6]}},{"type":"translate","vector":[10,10,4],"child":{"type":"cylinder","radius":1.25,"height":7,"segments":24}},{"type":"translate","vector":[70,10,4],"child":{"type":"cylinder","radius":1.25,"height":7,"segments":24}},{"type":"translate","vector":[10,50,4],"child":{"type":"cylinder","radius":1.25,"height":7,"segments":24}},{"type":"translate","vector":[70,50,4],"child":{"type":"cylinder","radius":1.25,"height":7,"segments":24}}]},{"type":"translate","vector":[40,30,1],"child":{"type":"cylinder","radius":3.5,"height":13,"segments":32}}]},"role":"solid"},{"name":"lid","model":{"type":"union","children":[{"type":"translate","vector":[0,0,30],"child":{"type":"box","size":[80,60,2]}},{"type":"translate","vector":[2.25,2.25,27],"child":{"type":"box","size":[75.5,55.5,3]}}]},"role":"solid"},{"name":"pcb_keepout","model":{"type":"translate","vector":[6,6,10.25],"child":{"type":"box","size":[68,48,13.75]}},"role":"keepout"}],"min_clearance_mm":0.25,"pair_rules":[{"part_a":"base","part_b":"lid","allow_contact":true}],"insertion_checks":[{"part":"lid","direction":[0,0,1]},{"part":"lid","direction":[0,0,-1]}]}}
Example sheet-layout-packed
Worked example request for optimize_sheet_layout.
cad://examples/sheet-layout-packed
{"slug":"sheet-layout-packed","tool":"optimize_sheet_layout","request":{"sheet_mm":[300,200],"kerf_mm":0.2,"margin_mm":2,"rotation_step_deg":90,"parts":[{"id":"l_bracket","polygon":[[0,0],[60,0],[60,10],[10,10],[10,40],[0,40]],"quantity":4},{"id":"ring","polygon":[[20.0,0.0],[19.318517,5.176381],[17.320508,10.0],[14.142136,14.142136],[10.0,17.320508],[5.176381,19.318517],[0.0,20.0],[-5.176381,19.318517],[-10.0,17.320508],[-14.142136,14.142136],[-17.320508,10.0],[-19.318517,5.176381],[-20.0,0.0],[-19.318517,-5.176381],[-17.320508,-10.0],[-14.142136,-14.142136],[-10.0,-17.320508],[-5.176381,-19.318517],[-0.0,-20.0],[5.176381,-19.318517],[10.0,-17.320508],[14.142136,-14.142136],[17.320508,-10.0],[19.318517,-5.176381]],"holes":[[[10.0,0.0],[9.659258,2.58819],[8.660254,5.0],[7.071068,7.071068],[5.0,8.660254],[2.58819,9.659258],[0.0,10.0],[-2.58819,9.659258],[-5.0,8.660254],[-7.071068,7.071068],[-8.660254,5.0],[-9.659258,2.58819],[-10.0,0.0],[-9.659258,-2.58819],[-8.660254,-5.0],[-7.071068,-7.071068],[-5.0,-8.660254],[-2.58819,-9.659258],[-0.0,-10.0],[2.58819,-9.659258],[5.0,-8.660254],[7.071068,-7.071068],[8.660254,-5.0],[9.659258,-2.58819]]],"quantity":3},{"id":"plate","polygon":[[0,0],[50,0],[50,30],[0,30]],"quantity":4}]}}
Example sheet-layout-infeasible
Worked example request for optimize_sheet_layout.
cad://examples/sheet-layout-infeasible
{"slug":"sheet-layout-infeasible","tool":"optimize_sheet_layout","request":{"sheet_mm":[300,200],"kerf_mm":0.2,"margin_mm":2,"parts":[{"id":"beam","polygon":[[0,0],[400,0],[400,50],[0,50]],"quantity":1},{"id":"plate","polygon":[[0,0],[50,0],[50,30],[0,30]],"quantity":2}]}}
design_printable_part
Design, compile, and verify a printable parametric part.
Design a declarative CSG model in mm (+Z up) for the requested part. 1. Call compile_parametric_part to confirm manifold geometry and review the orthographic SVG. 2. Call verify_printability with bed_mm={bed_mm} and min_wall_mm={min_wall_mm}. 3. Fix any reported (x,y,z) wall, overhang, or stability witnesses until verified=true and printable=true. Geometric verification only. Not structural or safety certification. Provided as-is without warranty.
[
{
"choices": [
"[220,220,220]",
"[180,180,180]",
"[256,256,256]",
"[300,300,400]"
],
"description": "Build volume [x,y,z] in mm.",
"name": "bed_mm",
"required": false
},
{
"choices": [
"1.2",
"0.8",
"1.6",
"2.0"
],
"description": "Minimum wall thickness in mm.",
"name": "min_wall_mm",
"required": false
}
]
audit_assembly_clearance
Audit mating clearances, collisions, and extraction paths.
Construct CSG models for each part and keepout of the assembly. Call check_assembly_fit with min_clearance_mm={min_clearance_mm}, explicit pair_rules for mating faces, and axis-aligned insertion_checks for removable parts. Report verified collisions, closest-point distances, and blocking parts. Geometric verification only. Not structural or safety certification. Provided as-is without warranty.
[
{
"choices": [
"0.2",
"0.1",
"0.3",
"0.5"
],
"description": "Global clearance in mm.",
"name": "min_clearance_mm",
"required": false
}
]
nest_cut_sheet
Nest 2D parts on a cut sheet with verified kerf spacing.
Convert the 2D parts into simple [x,y] polygon rings in mm. Call optimize_sheet_layout with sheet_mm={sheet_mm}, kerf_mm={kerf_mm}, and include_svg=true. Confirm verified=true and report utilization_ratio and any unplaced or oversized parts. Geometric verification only. Not structural or safety certification. Provided as-is without warranty.
[
{
"choices": [
"[300,200]",
"[600,400]",
"[1220,610]",
"[1000,500]"
],
"description": "Sheet [width,height] in mm.",
"name": "sheet_mm",
"required": false
},
{
"choices": [
"0.2",
"0.1",
"0.15",
"0.3"
],
"description": "Cutting kerf in mm.",
"name": "kerf_mm",
"required": false
}
]
Geometric verification only. Not structural or safety certification. Provided as-is without warranty.