Skip to main content
Glama

Review Manufacturability

dfm_review
Read-onlyIdempotent

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' }).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "dfm_review"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeNoInline kernelCAD script source.
fileNoPath to a .kcad.ts script file. Hosted: `code`, `project:<slug>` (head), or a Studio `/p/<slug>?version=N` link (pinned); no local files.
printerNoFDM printer profile id for the bed-fit check. Default 'generic-fdm'.
nozzle_mmNoFDM nozzle diameter, mm. Default 0.4.
processesNoProcesses to review. Default ['fdm', 'cnc'].
max_wall_mmNoInjection molding: thickest allowed section, mm. Default 4.
min_wall_mmNoInjection molding: thinnest allowed wall, mm. Default 1.
approach_axesNoCNC tool approach directions, one per setup (the tool comes from that side). Default ['+z'].
max_bridge_mmNoFDM longest unsupported bridge, mm. Default 10.
min_draft_degNoInjection molding: minimum draft angle to the pull direction, degrees. Default 1.
min_radius_mmNoInjection molding: smallest internal corner radius before mold.sharp-internal-corners warns, mm. Default 0.5.
max_wall_ratioNoInjection molding: thickest / thinnest wall above this warns (non-uniform walls warp and sink). Default 2.5.
pull_directionNoInjection molding: part-local mold-opening axis (the two halves separate along ±this). Default '+z'.
build_directionNoFDM part-local axis pointing up from the bed. Default '+z'.
max_overhang_degNoFDM steepest printable overhang, degrees from vertical (0 = wall, 90 = flat ceiling). Default 45.
tool_diameter_mmNoCNC end-mill diameter, mm. Default 6.
max_undercut_area_mm2NoCNC unreachable area tolerated before cnc.undercuts fails, mm². Default 1.
min_bend_radius_ratioNoSheet metal: inner bend radius must be ≥ this × thickness. Default 1.
min_flange_thicknessesNoSheet metal: flange length from the outside of the bend must be ≥ this × thickness. Default 4.
hole_to_bend_thicknessesNoSheet metal: hole edge to bend line must be ≥ this × thickness + bend radius. Default 2.5.
hole_to_edge_thicknessesNoSheet metal: hole edge to blank edge must be ≥ this × thickness. Default 2.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / file / description
      Previous value: -"Path to a .kcad.ts script file. Hosted server: cannot read files from your machine — pass `code`, or `project:<slug>` for a saved project."New value: +"Path to a .kcad.ts script file. Hosted: `code`, `project:<slug>` (head), or a Studio `/p/<slug>?version=N` link (pinned); no local files."
  2. Changed11 schema fields changed
    • addedInput schema / properties / hole_to_bend_thicknesses
      Added value: +{
      +  "description": "Sheet metal: hole edge to bend line must be ≥ this × thickness + bend radius. Default 2.5.",
      +  "type": "number"
      +}
    • addedInput schema / properties / hole_to_edge_thicknesses
      Added value: +{
      +  "description": "Sheet metal: hole edge to blank edge must be ≥ this × thickness. Default 2.",
      +  "type": "number"
      +}
    • addedInput schema / properties / max_wall_mm
      Added value: +{
      +  "description": "Injection molding: thickest allowed section, mm. Default 4.",
      +  "type": "number"
      +}
    • addedInput schema / properties / max_wall_ratio
      Added value: +{
      +  "description": "Injection molding: thickest / thinnest wall above this warns (non-uniform walls warp and sink). Default 2.5.",
      +  "type": "number"
      +}
    • addedInput schema / properties / min_bend_radius_ratio
      Added value: +{
      +  "description": "Sheet metal: inner bend radius must be ≥ this × thickness. Default 1.",
      +  "type": "number"
      +}
    • addedInput schema / properties / min_draft_deg
      Added value: +{
      +  "description": "Injection molding: minimum draft angle to the pull direction, degrees. Default 1.",
      +  "type": "number"
      +}
    • addedInput schema / properties / min_flange_thicknesses
      Added value: +{
      +  "description": "Sheet metal: flange length from the outside of the bend must be ≥ this × thickness. Default 4.",
      +  "type": "number"
      +}
    • addedInput schema / properties / min_radius_mm
      Added value: +{
      +  "description": "Injection molding: smallest internal corner radius before mold.sharp-internal-corners warns, mm. Default 0.5.",
      +  "type": "number"
      +}
    • addedInput schema / properties / min_wall_mm
      Added value: +{
      +  "description": "Injection molding: thinnest allowed wall, mm. Default 1.",
      +  "type": "number"
      +}
    • changedInput schema / properties / processes / items / enum
      Previous value: -[
      -  "fdm",
      -  "cnc"
      -]New value: +[
      +  "fdm",
      +  "cnc",
      +  "sheet-metal",
      +  "injection-molding"
      +]
    • addedInput schema / properties / pull_direction
      Added value: +{
      +  "description": "Injection molding: part-local mold-opening axis (the two halves separate along ±this). Default '+z'.",
      +  "enum": [
      +    "+x",
      +    "-x",
      +    "+y",
      +    "-y",
      +    "+z",
      +    "-z"
      +  ],
      +  "type": "string"
      +}
  3. Added

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.