{
  "_meta": {
    "stateless": true,
    "supportedProtocolVersions": [
      "2024-11-05",
      "2025-03-26",
      "2025-06-18",
      "2025-11-25"
    ]
  },
  "capabilities": {
    "prompts": {
      "listChanged": false
    },
    "resources": {
      "listChanged": false,
      "subscribe": false
    },
    "tools": {
      "listChanged": false
    }
  },
  "description": "Deterministic 3D parametric CAD, printability, assembly fit, and 2D sheet layout checks. Units: mm, deg, +Z up. Every geometric claim is independently verified; incomplete checks return verified false.",
  "disclaimer": "Geometric verification only. Not structural or safety certification. Provided as-is without warranty.",
  "documentationUrl": "https://cad.burgeonads.com/llms-full.txt",
  "instructions": "Deterministic 3D parametric CAD, printability, assembly fit, and 2D sheet layout checks. Units: mm, deg, +Z up. Every geometric claim is independently verified; incomplete checks return verified false.",
  "prompts": [
    {
      "arguments": [
        {
          "description": "Build volume [x,y,z] in mm.",
          "name": "bed_mm",
          "required": false
        },
        {
          "description": "Minimum wall thickness in mm.",
          "name": "min_wall_mm",
          "required": false
        }
      ],
      "description": "Design, compile, and verify a printable parametric part.",
      "name": "design_printable_part"
    },
    {
      "arguments": [
        {
          "description": "Global clearance in mm.",
          "name": "min_clearance_mm",
          "required": false
        }
      ],
      "description": "Audit mating clearances, collisions, and extraction paths.",
      "name": "audit_assembly_clearance"
    },
    {
      "arguments": [
        {
          "description": "Sheet [width,height] in mm.",
          "name": "sheet_mm",
          "required": false
        },
        {
          "description": "Cutting kerf in mm.",
          "name": "kerf_mm",
          "required": false
        }
      ],
      "description": "Nest 2D parts on a cut sheet with verified kerf spacing.",
      "name": "nest_cut_sheet"
    }
  ],
  "protocolVersion": "2025-11-25",
  "resources": [
    {
      "description": "Reference for overview.",
      "mimeType": "text/markdown",
      "name": "CAD Oracle overview",
      "uri": "cad://docs/overview"
    },
    {
      "description": "Reference for parametric.",
      "mimeType": "text/markdown",
      "name": "compile_parametric_part reference",
      "uri": "cad://docs/parametric"
    },
    {
      "description": "Reference for printability.",
      "mimeType": "text/markdown",
      "name": "verify_printability reference",
      "uri": "cad://docs/printability"
    },
    {
      "description": "Reference for assembly-fit.",
      "mimeType": "text/markdown",
      "name": "check_assembly_fit reference",
      "uri": "cad://docs/assembly-fit"
    },
    {
      "description": "Reference for sheet-layout.",
      "mimeType": "text/markdown",
      "name": "optimize_sheet_layout reference",
      "uri": "cad://docs/sheet-layout"
    },
    {
      "description": "Worked example request for compile_parametric_part.",
      "mimeType": "application/json",
      "name": "Example enclosure-base",
      "uri": "cad://examples/enclosure-base"
    },
    {
      "description": "Worked example request for compile_parametric_part.",
      "mimeType": "application/json",
      "name": "Example mounting-bracket",
      "uri": "cad://examples/mounting-bracket"
    },
    {
      "description": "Worked example request for verify_printability.",
      "mimeType": "application/json",
      "name": "Example printability-pass",
      "uri": "cad://examples/printability-pass"
    },
    {
      "description": "Worked example request for verify_printability.",
      "mimeType": "application/json",
      "name": "Example printability-thin-wall-overhang",
      "uri": "cad://examples/printability-thin-wall-overhang"
    },
    {
      "description": "Worked example request for check_assembly_fit.",
      "mimeType": "application/json",
      "name": "Example assembly-fit-ok",
      "uri": "cad://examples/assembly-fit-ok"
    },
    {
      "description": "Worked example request for check_assembly_fit.",
      "mimeType": "application/json",
      "name": "Example assembly-fit-collision",
      "uri": "cad://examples/assembly-fit-collision"
    },
    {
      "description": "Worked example request for optimize_sheet_layout.",
      "mimeType": "application/json",
      "name": "Example sheet-layout-packed",
      "uri": "cad://examples/sheet-layout-packed"
    },
    {
      "description": "Worked example request for optimize_sheet_layout.",
      "mimeType": "application/json",
      "name": "Example sheet-layout-infeasible",
      "uri": "cad://examples/sheet-layout-infeasible"
    }
  ],
  "serverInfo": {
    "name": "cad-oracle",
    "version": "0.2.0"
  },
  "tools": [
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "Compile parametric part"
      },
      "description": "Compile a declarative CSG tree into a verified manifold mesh with exact metrics, orthographic blueprint SVG, optional section, and optional 3MF/STL base64 export. Units: mm, deg, +Z up. Minimal example: {\"model\":{\"type\":\"box\",\"size\":[20,10,5]}}",
      "inputSchema": {
        "$defs": {
          "CsgNode": {
            "additionalProperties": false,
            "allOf": [
              {
                "if": {
                  "properties": {
                    "type": {
                      "const": "box"
                    }
                  }
                },
                "then": {
                  "required": [
                    "size"
                  ]
                }
              },
              {
                "if": {
                  "properties": {
                    "type": {
                      "const": "cylinder"
                    }
                  }
                },
                "then": {
                  "required": [
                    "radius",
                    "height"
                  ]
                }
              },
              {
                "if": {
                  "properties": {
                    "type": {
                      "const": "sphere"
                    }
                  }
                },
                "then": {
                  "required": [
                    "radius"
                  ]
                }
              },
              {
                "if": {
                  "properties": {
                    "type": {
                      "const": "extrude"
                    }
                  }
                },
                "then": {
                  "required": [
                    "polygon",
                    "height"
                  ]
                }
              },
              {
                "if": {
                  "properties": {
                    "type": {
                      "const": "revolve"
                    }
                  }
                },
                "then": {
                  "required": [
                    "profile"
                  ]
                }
              },
              {
                "if": {
                  "properties": {
                    "type": {
                      "const": "translate"
                    }
                  }
                },
                "then": {
                  "required": [
                    "vector",
                    "child"
                  ]
                }
              },
              {
                "if": {
                  "properties": {
                    "type": {
                      "const": "rotate"
                    }
                  }
                },
                "then": {
                  "required": [
                    "angles_deg",
                    "child"
                  ]
                }
              },
              {
                "if": {
                  "properties": {
                    "type": {
                      "const": "scale"
                    }
                  }
                },
                "then": {
                  "required": [
                    "factor",
                    "child"
                  ]
                }
              },
              {
                "if": {
                  "properties": {
                    "type": {
                      "const": "mirror"
                    }
                  }
                },
                "then": {
                  "required": [
                    "normal",
                    "child"
                  ]
                }
              },
              {
                "if": {
                  "properties": {
                    "type": {
                      "enum": [
                        "union",
                        "difference",
                        "intersection"
                      ]
                    }
                  }
                },
                "then": {
                  "properties": {
                    "children": {
                      "minItems": 2
                    }
                  },
                  "required": [
                    "children"
                  ]
                }
              },
              {
                "if": {
                  "properties": {
                    "type": {
                      "const": "hull"
                    }
                  }
                },
                "then": {
                  "required": [
                    "children"
                  ]
                }
              },
              {
                "if": {
                  "properties": {
                    "type": {
                      "const": "offset_2d"
                    }
                  }
                },
                "then": {
                  "required": [
                    "delta_mm",
                    "child"
                  ]
                }
              }
            ],
            "properties": {
              "angle_deg": {
                "default": 360,
                "maximum": 360,
                "minimum": 0.001,
                "type": "number"
              },
              "angles_deg": {
                "$ref": "#/$defs/Vec3"
              },
              "center": {
                "type": "boolean"
              },
              "child": {
                "$ref": "#/$defs/CsgNode"
              },
              "children": {
                "items": {
                  "$ref": "#/$defs/CsgNode"
                },
                "minItems": 1,
                "type": "array"
              },
              "delta_mm": {
                "$ref": "#/$defs/Num"
              },
              "factor": {
                "items": {
                  "maximum": 1000,
                  "minimum": -1000,
                  "type": "number"
                },
                "maxItems": 3,
                "minItems": 3,
                "type": "array"
              },
              "fillet_mm": {
                "maximum": 10000,
                "minimum": 0,
                "type": "number"
              },
              "height": {
                "$ref": "#/$defs/Pos"
              },
              "holes": {
                "items": {
                  "$ref": "#/$defs/Ring"
                },
                "type": "array"
              },
              "join": {
                "default": "round",
                "enum": [
                  "round",
                  "miter",
                  "square"
                ]
              },
              "normal": {
                "$ref": "#/$defs/Vec3"
              },
              "polygon": {
                "$ref": "#/$defs/Ring"
              },
              "profile": {
                "$ref": "#/$defs/Ring"
              },
              "radius": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/Pos"
                  },
                  {
                    "items": {
                      "maximum": 10000,
                      "minimum": 0,
                      "type": "number"
                    },
                    "maxItems": 2,
                    "minItems": 2,
                    "type": "array"
                  }
                ]
              },
              "scale_top": {
                "default": [
                  1,
                  1
                ],
                "items": {
                  "maximum": 100,
                  "minimum": 0,
                  "type": "number"
                },
                "maxItems": 2,
                "minItems": 2,
                "type": "array"
              },
              "segments": {
                "$ref": "#/$defs/Seg"
              },
              "size": {
                "items": {
                  "$ref": "#/$defs/Pos"
                },
                "maxItems": 3,
                "minItems": 3,
                "type": "array"
              },
              "twist_deg": {
                "maximum": 360,
                "minimum": -360,
                "type": "number"
              },
              "type": {
                "enum": [
                  "box",
                  "cylinder",
                  "sphere",
                  "extrude",
                  "revolve",
                  "translate",
                  "rotate",
                  "scale",
                  "mirror",
                  "union",
                  "difference",
                  "intersection",
                  "hull",
                  "offset_2d"
                ]
              },
              "vector": {
                "$ref": "#/$defs/Vec3"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          },
          "Num": {
            "maximum": 10000,
            "minimum": -10000,
            "type": "number"
          },
          "Pos": {
            "maximum": 10000,
            "minimum": 0.001,
            "type": "number"
          },
          "Ring": {
            "items": {
              "items": {
                "$ref": "#/$defs/Num"
              },
              "maxItems": 2,
              "minItems": 2,
              "type": "array"
            },
            "maxItems": 256,
            "minItems": 3,
            "type": "array"
          },
          "Seg": {
            "default": 32,
            "maximum": 96,
            "minimum": 3,
            "type": "integer"
          },
          "Vec3": {
            "items": {
              "$ref": "#/$defs/Num"
            },
            "maxItems": 3,
            "minItems": 3,
            "type": "array"
          }
        },
        "additionalProperties": false,
        "properties": {
          "export_format": {
            "default": "none",
            "enum": [
              "none",
              "3mf_base64",
              "stl_base64"
            ]
          },
          "include_svg_views": {
            "default": true,
            "type": "boolean"
          },
          "model": {
            "$ref": "#/$defs/CsgNode"
          },
          "section_y_mm": {
            "$ref": "#/$defs/Num"
          },
          "section_z_mm": {
            "$ref": "#/$defs/Num"
          },
          "timeout_ms": {
            "default": 5000,
            "maximum": 8000,
            "minimum": 100,
            "type": "integer"
          }
        },
        "required": [
          "model"
        ],
        "type": "object"
      },
      "name": "compile_parametric_part",
      "outputSchema": {
        "$defs": {
          "Metrics": {
            "properties": {
              "bbox_max_mm": {
                "$ref": "#/$defs/V3"
              },
              "bbox_min_mm": {
                "$ref": "#/$defs/V3"
              },
              "center_of_mass_mm": {
                "$ref": "#/$defs/V3"
              },
              "component_count": {
                "minimum": 1,
                "type": "integer"
              },
              "euler_characteristic": {
                "type": "integer"
              },
              "genus": {
                "$ref": "#/$defs/UInt"
              },
              "is_manifold": {
                "const": true,
                "type": "boolean"
              },
              "is_watertight": {
                "const": true,
                "type": "boolean"
              },
              "size_mm": {
                "$ref": "#/$defs/V3"
              },
              "surface_area_mm2": {
                "exclusiveMinimum": 0,
                "type": "number"
              },
              "triangle_count": {
                "minimum": 4,
                "type": "integer"
              },
              "vertex_count": {
                "minimum": 4,
                "type": "integer"
              },
              "volume_mm3": {
                "exclusiveMinimum": 0,
                "type": "number"
              }
            },
            "required": [
              "bbox_min_mm",
              "bbox_max_mm",
              "size_mm",
              "volume_mm3",
              "surface_area_mm2",
              "center_of_mass_mm",
              "triangle_count",
              "vertex_count",
              "component_count",
              "is_watertight",
              "is_manifold",
              "euler_characteristic",
              "genus"
            ],
            "type": "object"
          },
          "Section": {
            "properties": {
              "area_mm2": {
                "minimum": 0,
                "type": "number"
              },
              "axis": {
                "enum": [
                  "z",
                  "y"
                ]
              },
              "contour_count": {
                "$ref": "#/$defs/UInt"
              },
              "offset_mm": {
                "type": "number"
              }
            },
            "required": [
              "axis",
              "offset_mm",
              "area_mm2",
              "contour_count"
            ],
            "type": "object"
          },
          "UInt": {
            "minimum": 0,
            "type": "integer"
          },
          "V3": {
            "items": {
              "type": "number"
            },
            "maxItems": 3,
            "minItems": 3,
            "type": "array"
          }
        },
        "properties": {
          "artifact_base64": {
            "maxLength": 524288,
            "type": [
              "string",
              "null"
            ]
          },
          "artifact_bytes": {
            "minimum": 1,
            "type": [
              "integer",
              "null"
            ]
          },
          "artifact_format": {
            "anyOf": [
              {
                "enum": [
                  "3mf",
                  "stl"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "artifact_sha256": {
            "pattern": "^[0-9a-f]{64}$",
            "type": [
              "string",
              "null"
            ]
          },
          "blueprint_svg": {
            "maxLength": 131072,
            "type": [
              "string",
              "null"
            ]
          },
          "metrics": {
            "anyOf": [
              {
                "$ref": "#/$defs/Metrics"
              },
              {
                "type": "null"
              }
            ]
          },
          "section": {
            "anyOf": [
              {
                "$ref": "#/$defs/Section"
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "enum": [
              "ok",
              "empty",
              "timeout",
              "unknown"
            ]
          },
          "verified": {
            "type": "boolean"
          }
        },
        "required": [
          "status",
          "verified",
          "metrics",
          "section",
          "blueprint_svg",
          "artifact_format",
          "artifact_base64",
          "artifact_sha256",
          "artifact_bytes"
        ],
        "type": "object"
      },
      "title": "Compile parametric part"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "Verify printability"
      },
      "description": "Verify a CSG part or inline mesh against bed size, topology, wall thickness, overhang, and stability tolerances with exact (x,y,z) failure witnesses. STL/3MF/OBJ files up to 4 MiB: POST /v1/verify/mesh. Minimal example: {\"model\":{\"type\":\"box\",\"size\":[20,20,10]}}",
      "inputSchema": {
        "$defs": {
          "CsgNode": {
            "additionalProperties": false,
            "allOf": [
              {
                "if": {
                  "properties": {
                    "type": {
                      "const": "box"
                    }
                  }
                },
                "then": {
                  "required": [
                    "size"
                  ]
                }
              },
              {
                "if": {
                  "properties": {
                    "type": {
                      "const": "cylinder"
                    }
                  }
                },
                "then": {
                  "required": [
                    "radius",
                    "height"
                  ]
                }
              },
              {
                "if": {
                  "properties": {
                    "type": {
                      "const": "sphere"
                    }
                  }
                },
                "then": {
                  "required": [
                    "radius"
                  ]
                }
              },
              {
                "if": {
                  "properties": {
                    "type": {
                      "const": "extrude"
                    }
                  }
                },
                "then": {
                  "required": [
                    "polygon",
                    "height"
                  ]
                }
              },
              {
                "if": {
                  "properties": {
                    "type": {
                      "const": "revolve"
                    }
                  }
                },
                "then": {
                  "required": [
                    "profile"
                  ]
                }
              },
              {
                "if": {
                  "properties": {
                    "type": {
                      "const": "translate"
                    }
                  }
                },
                "then": {
                  "required": [
                    "vector",
                    "child"
                  ]
                }
              },
              {
                "if": {
                  "properties": {
                    "type": {
                      "const": "rotate"
                    }
                  }
                },
                "then": {
                  "required": [
                    "angles_deg",
                    "child"
                  ]
                }
              },
              {
                "if": {
                  "properties": {
                    "type": {
                      "const": "scale"
                    }
                  }
                },
                "then": {
                  "required": [
                    "factor",
                    "child"
                  ]
                }
              },
              {
                "if": {
                  "properties": {
                    "type": {
                      "const": "mirror"
                    }
                  }
                },
                "then": {
                  "required": [
                    "normal",
                    "child"
                  ]
                }
              },
              {
                "if": {
                  "properties": {
                    "type": {
                      "enum": [
                        "union",
                        "difference",
                        "intersection"
                      ]
                    }
                  }
                },
                "then": {
                  "properties": {
                    "children": {
                      "minItems": 2
                    }
                  },
                  "required": [
                    "children"
                  ]
                }
              },
              {
                "if": {
                  "properties": {
                    "type": {
                      "const": "hull"
                    }
                  }
                },
                "then": {
                  "required": [
                    "children"
                  ]
                }
              },
              {
                "if": {
                  "properties": {
                    "type": {
                      "const": "offset_2d"
                    }
                  }
                },
                "then": {
                  "required": [
                    "delta_mm",
                    "child"
                  ]
                }
              }
            ],
            "properties": {
              "angle_deg": {
                "default": 360,
                "maximum": 360,
                "minimum": 0.001,
                "type": "number"
              },
              "angles_deg": {
                "$ref": "#/$defs/Vec3"
              },
              "center": {
                "type": "boolean"
              },
              "child": {
                "$ref": "#/$defs/CsgNode"
              },
              "children": {
                "items": {
                  "$ref": "#/$defs/CsgNode"
                },
                "minItems": 1,
                "type": "array"
              },
              "delta_mm": {
                "$ref": "#/$defs/Num"
              },
              "factor": {
                "items": {
                  "maximum": 1000,
                  "minimum": -1000,
                  "type": "number"
                },
                "maxItems": 3,
                "minItems": 3,
                "type": "array"
              },
              "fillet_mm": {
                "maximum": 10000,
                "minimum": 0,
                "type": "number"
              },
              "height": {
                "$ref": "#/$defs/Pos"
              },
              "holes": {
                "items": {
                  "$ref": "#/$defs/Ring"
                },
                "type": "array"
              },
              "join": {
                "default": "round",
                "enum": [
                  "round",
                  "miter",
                  "square"
                ]
              },
              "normal": {
                "$ref": "#/$defs/Vec3"
              },
              "polygon": {
                "$ref": "#/$defs/Ring"
              },
              "profile": {
                "$ref": "#/$defs/Ring"
              },
              "radius": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/Pos"
                  },
                  {
                    "items": {
                      "maximum": 10000,
                      "minimum": 0,
                      "type": "number"
                    },
                    "maxItems": 2,
                    "minItems": 2,
                    "type": "array"
                  }
                ]
              },
              "scale_top": {
                "default": [
                  1,
                  1
                ],
                "items": {
                  "maximum": 100,
                  "minimum": 0,
                  "type": "number"
                },
                "maxItems": 2,
                "minItems": 2,
                "type": "array"
              },
              "segments": {
                "$ref": "#/$defs/Seg"
              },
              "size": {
                "items": {
                  "$ref": "#/$defs/Pos"
                },
                "maxItems": 3,
                "minItems": 3,
                "type": "array"
              },
              "twist_deg": {
                "maximum": 360,
                "minimum": -360,
                "type": "number"
              },
              "type": {
                "enum": [
                  "box",
                  "cylinder",
                  "sphere",
                  "extrude",
                  "revolve",
                  "translate",
                  "rotate",
                  "scale",
                  "mirror",
                  "union",
                  "difference",
                  "intersection",
                  "hull",
                  "offset_2d"
                ]
              },
              "vector": {
                "$ref": "#/$defs/Vec3"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          },
          "Num": {
            "maximum": 10000,
            "minimum": -10000,
            "type": "number"
          },
          "Pos": {
            "maximum": 10000,
            "minimum": 0.001,
            "type": "number"
          },
          "Ring": {
            "items": {
              "items": {
                "$ref": "#/$defs/Num"
              },
              "maxItems": 2,
              "minItems": 2,
              "type": "array"
            },
            "maxItems": 256,
            "minItems": 3,
            "type": "array"
          },
          "Seg": {
            "default": 32,
            "maximum": 96,
            "minimum": 3,
            "type": "integer"
          },
          "Vec3": {
            "items": {
              "$ref": "#/$defs/Num"
            },
            "maxItems": 3,
            "minItems": 3,
            "type": "array"
          }
        },
        "additionalProperties": false,
        "oneOf": [
          {
            "required": [
              "model"
            ]
          },
          {
            "required": [
              "mesh"
            ]
          }
        ],
        "properties": {
          "auto_drop_to_bed": {
            "default": true,
            "type": "boolean"
          },
          "bed_mm": {
            "default": [
              220,
              220,
              220
            ],
            "items": {
              "maximum": 10000,
              "minimum": 1,
              "type": "number"
            },
            "maxItems": 3,
            "minItems": 3,
            "type": "array"
          },
          "check_orientations": {
            "default": false,
            "type": "boolean"
          },
          "max_overhang_deg": {
            "default": 45,
            "maximum": 85,
            "minimum": 5,
            "type": "number"
          },
          "mesh": {
            "additionalProperties": false,
            "properties": {
              "faces": {
                "items": {
                  "items": {
                    "minimum": 0,
                    "type": "integer"
                  },
                  "maxItems": 3,
                  "minItems": 3,
                  "type": "array"
                },
                "maxItems": 25000,
                "minItems": 4,
                "type": "array"
              },
              "vertices": {
                "items": {
                  "$ref": "#/$defs/Vec3"
                },
                "maxItems": 75000,
                "minItems": 4,
                "type": "array"
              }
            },
            "required": [
              "vertices",
              "faces"
            ],
            "type": "object"
          },
          "min_wall_mm": {
            "default": 1.2,
            "maximum": 50,
            "minimum": 0.1,
            "type": "number"
          },
          "model": {
            "$ref": "#/$defs/CsgNode"
          },
          "timeout_ms": {
            "default": 5000,
            "maximum": 8000,
            "minimum": 100,
            "type": "integer"
          }
        },
        "required": [],
        "type": "object"
      },
      "name": "verify_printability",
      "outputSchema": {
        "$defs": {
          "BedFitCheck": {
            "properties": {
              "bed_mm": {
                "$ref": "#/$defs/V3"
              },
              "below_bed_mm": {
                "minimum": 0,
                "type": "number"
              },
              "excess_mm": {
                "$ref": "#/$defs/V3"
              },
              "size_mm": {
                "$ref": "#/$defs/V3"
              },
              "status": {
                "enum": [
                  "pass",
                  "fail"
                ]
              }
            },
            "required": [
              "status",
              "size_mm",
              "bed_mm",
              "excess_mm",
              "below_bed_mm"
            ],
            "type": "object"
          },
          "BestOrientation": {
            "properties": {
              "candidates": {
                "items": {
                  "$ref": "#/$defs/OrientationCandidate"
                },
                "maxItems": 6,
                "minItems": 6,
                "type": "array"
              },
              "rotate_deg": {
                "$ref": "#/$defs/V3N"
              },
              "up_axis": {
                "anyOf": [
                  {
                    "enum": [
                      "+X",
                      "-X",
                      "+Y",
                      "-Y",
                      "+Z",
                      "-Z"
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "up_axis",
              "rotate_deg",
              "candidates"
            ],
            "type": "object"
          },
          "BoxMm": {
            "properties": {
              "max_mm": {
                "$ref": "#/$defs/V3"
              },
              "min_mm": {
                "$ref": "#/$defs/V3"
              }
            },
            "required": [
              "min_mm",
              "max_mm"
            ],
            "type": "object"
          },
          "OrientationCandidate": {
            "properties": {
              "fits_bed": {
                "type": "boolean"
              },
              "margin_mm": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "overhang_area_mm2": {
                "minimum": 0,
                "type": "number"
              },
              "rotate_deg": {
                "$ref": "#/$defs/V3"
              },
              "stable": {
                "type": "boolean"
              },
              "unsupported_minima_count": {
                "$ref": "#/$defs/UInt"
              },
              "up_axis": {
                "enum": [
                  "+X",
                  "-X",
                  "+Y",
                  "-Y",
                  "+Z",
                  "-Z"
                ]
              }
            },
            "required": [
              "up_axis",
              "rotate_deg",
              "fits_bed",
              "overhang_area_mm2",
              "unsupported_minima_count",
              "stable",
              "margin_mm"
            ],
            "type": "object"
          },
          "OverhangCheck": {
            "properties": {
              "max_observed_deg": {
                "maximum": 90,
                "minimum": 0,
                "type": "number"
              },
              "max_overhang_deg": {
                "type": "number"
              },
              "overhang_area_mm2": {
                "minimum": 0,
                "type": "number"
              },
              "overhang_face_count": {
                "$ref": "#/$defs/UInt"
              },
              "region_count": {
                "$ref": "#/$defs/UInt"
              },
              "regions": {
                "items": {
                  "$ref": "#/$defs/OverhangRegion"
                },
                "maxItems": 5,
                "type": "array"
              },
              "status": {
                "enum": [
                  "pass",
                  "fail"
                ]
              },
              "unsupported_minima_count": {
                "$ref": "#/$defs/UInt"
              },
              "unsupported_minima_mm": {
                "items": {
                  "$ref": "#/$defs/V3"
                },
                "maxItems": 5,
                "type": "array"
              }
            },
            "required": [
              "status",
              "max_overhang_deg",
              "overhang_area_mm2",
              "overhang_face_count",
              "max_observed_deg",
              "region_count",
              "regions",
              "unsupported_minima_count",
              "unsupported_minima_mm"
            ],
            "type": "object"
          },
          "OverhangRegion": {
            "properties": {
              "area_mm2": {
                "exclusiveMinimum": 0,
                "type": "number"
              },
              "bbox": {
                "$ref": "#/$defs/BoxMm"
              },
              "face_count": {
                "minimum": 1,
                "type": "integer"
              },
              "max_angle_deg": {
                "type": "number"
              },
              "point_mm": {
                "$ref": "#/$defs/V3"
              }
            },
            "required": [
              "area_mm2",
              "face_count",
              "max_angle_deg",
              "point_mm",
              "bbox"
            ],
            "type": "object"
          },
          "PrintChecks": {
            "properties": {
              "bed_fit": {
                "$ref": "#/$defs/BedFitCheck"
              },
              "overhangs": {
                "$ref": "#/$defs/OverhangCheck"
              },
              "standing_stability": {
                "$ref": "#/$defs/StabilityCheck"
              },
              "topology": {
                "$ref": "#/$defs/TopologyCheck"
              },
              "wall_thickness": {
                "$ref": "#/$defs/WallCheck"
              }
            },
            "required": [
              "topology",
              "bed_fit",
              "wall_thickness",
              "overhangs",
              "standing_stability"
            ],
            "type": "object"
          },
          "PrintMetrics": {
            "properties": {
              "bbox_max_mm": {
                "$ref": "#/$defs/V3"
              },
              "bbox_min_mm": {
                "$ref": "#/$defs/V3"
              },
              "drop_z_mm": {
                "type": "number"
              },
              "input_kind": {
                "enum": [
                  "model",
                  "mesh",
                  "mesh_file"
                ]
              },
              "size_mm": {
                "$ref": "#/$defs/V3"
              },
              "triangle_count": {
                "minimum": 1,
                "type": "integer"
              },
              "vertex_count": {
                "minimum": 3,
                "type": "integer"
              },
              "volume_mm3": {
                "type": [
                  "number",
                  "null"
                ]
              }
            },
            "required": [
              "input_kind",
              "triangle_count",
              "vertex_count",
              "bbox_min_mm",
              "bbox_max_mm",
              "size_mm",
              "drop_z_mm",
              "volume_mm3"
            ],
            "type": "object"
          },
          "StabilityCheck": {
            "properties": {
              "center_of_mass_mm": {
                "$ref": "#/$defs/V3N"
              },
              "margin_mm": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "status": {
                "enum": [
                  "pass",
                  "fail",
                  "skipped"
                ]
              },
              "support_hull_mm": {
                "items": {
                  "$ref": "#/$defs/V2"
                },
                "maxItems": 256,
                "type": [
                  "array",
                  "null"
                ]
              },
              "support_hull_vertex_count": {
                "$ref": "#/$defs/UInt"
              },
              "support_vertex_count": {
                "$ref": "#/$defs/UInt"
              },
              "tipping_direction": {
                "items": {
                  "type": "number"
                },
                "maxItems": 2,
                "minItems": 2,
                "type": [
                  "array",
                  "null"
                ]
              }
            },
            "required": [
              "status",
              "support_vertex_count",
              "support_hull_vertex_count",
              "support_hull_mm",
              "center_of_mass_mm",
              "margin_mm",
              "tipping_direction"
            ],
            "type": "object"
          },
          "TopologyCheck": {
            "properties": {
              "component_count": {
                "minimum": 1,
                "type": "integer"
              },
              "consistent_winding": {
                "type": "boolean"
              },
              "degenerate_face_count": {
                "$ref": "#/$defs/UInt"
              },
              "floating_island_count": {
                "$ref": "#/$defs/UInt"
              },
              "floating_islands": {
                "items": {
                  "$ref": "#/$defs/BoxMm"
                },
                "maxItems": 5,
                "type": "array"
              },
              "inverted": {
                "type": "boolean"
              },
              "is_manifold": {
                "type": "boolean"
              },
              "is_watertight": {
                "type": "boolean"
              },
              "non_manifold_edge_count": {
                "$ref": "#/$defs/UInt"
              },
              "non_manifold_vertex_count": {
                "$ref": "#/$defs/UInt"
              },
              "open_edge_count": {
                "$ref": "#/$defs/UInt"
              },
              "self_intersection_count": {
                "$ref": "#/$defs/UInt"
              },
              "status": {
                "enum": [
                  "pass",
                  "fail"
                ]
              },
              "void_count": {
                "$ref": "#/$defs/UInt"
              },
              "witnesses_mm": {
                "items": {
                  "$ref": "#/$defs/V3"
                },
                "maxItems": 5,
                "type": "array"
              }
            },
            "required": [
              "status",
              "is_watertight",
              "is_manifold",
              "consistent_winding",
              "inverted",
              "open_edge_count",
              "non_manifold_edge_count",
              "non_manifold_vertex_count",
              "degenerate_face_count",
              "self_intersection_count",
              "component_count",
              "void_count",
              "floating_island_count",
              "floating_islands",
              "witnesses_mm"
            ],
            "type": "object"
          },
          "UInt": {
            "minimum": 0,
            "type": "integer"
          },
          "V2": {
            "items": {
              "type": "number"
            },
            "maxItems": 2,
            "minItems": 2,
            "type": "array"
          },
          "V3": {
            "items": {
              "type": "number"
            },
            "maxItems": 3,
            "minItems": 3,
            "type": "array"
          },
          "V3N": {
            "items": {
              "type": "number"
            },
            "maxItems": 3,
            "minItems": 3,
            "type": [
              "array",
              "null"
            ]
          },
          "WallCheck": {
            "properties": {
              "below_min_area_fraction": {
                "maximum": 1,
                "minimum": 0,
                "type": [
                  "number",
                  "null"
                ]
              },
              "min_observed_mm": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "min_wall_mm": {
                "type": "number"
              },
              "rechecked_ray_count": {
                "$ref": "#/$defs/UInt"
              },
              "sampled_face_count": {
                "$ref": "#/$defs/UInt"
              },
              "status": {
                "enum": [
                  "pass",
                  "fail",
                  "skipped"
                ]
              },
              "witnesses": {
                "items": {
                  "$ref": "#/$defs/WallWitness"
                },
                "maxItems": 5,
                "type": "array"
              }
            },
            "required": [
              "status",
              "min_wall_mm",
              "min_observed_mm",
              "below_min_area_fraction",
              "sampled_face_count",
              "rechecked_ray_count",
              "witnesses"
            ],
            "type": "object"
          },
          "WallWitness": {
            "properties": {
              "exit_point_mm": {
                "$ref": "#/$defs/V3"
              },
              "point_mm": {
                "$ref": "#/$defs/V3"
              },
              "thickness_mm": {
                "exclusiveMinimum": 0,
                "type": "number"
              }
            },
            "required": [
              "point_mm",
              "exit_point_mm",
              "thickness_mm"
            ],
            "type": "object"
          }
        },
        "properties": {
          "best_orientation": {
            "anyOf": [
              {
                "$ref": "#/$defs/BestOrientation"
              },
              {
                "type": "null"
              }
            ]
          },
          "checks": {
            "anyOf": [
              {
                "$ref": "#/$defs/PrintChecks"
              },
              {
                "type": "null"
              }
            ]
          },
          "metrics": {
            "anyOf": [
              {
                "$ref": "#/$defs/PrintMetrics"
              },
              {
                "type": "null"
              }
            ]
          },
          "printable": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "status": {
            "enum": [
              "ok",
              "timeout",
              "unknown"
            ]
          },
          "verified": {
            "type": "boolean"
          }
        },
        "required": [
          "status",
          "verified",
          "printable",
          "metrics",
          "checks",
          "best_orientation"
        ],
        "type": "object"
      },
      "title": "Verify printability"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "Check assembly fit"
      },
      "description": "Verify CSG assembly interference, pairwise clearances with closest-point witnesses, and axis-aligned insertion sweeps. Minimal example: {\"parts\":[{\"name\":\"a\",\"model\":{\"type\":\"box\",\"size\":[10,10,10]}},{\"name\":\"b\",\"model\":{\"type\":\"translate\",\"vector\":[12,0,0],\"child\":{\"type\":\"box\",\"size\":[10,10,10]}}}]}",
      "inputSchema": {
        "$defs": {
          "CsgNode": {
            "additionalProperties": false,
            "allOf": [
              {
                "if": {
                  "properties": {
                    "type": {
                      "const": "box"
                    }
                  }
                },
                "then": {
                  "required": [
                    "size"
                  ]
                }
              },
              {
                "if": {
                  "properties": {
                    "type": {
                      "const": "cylinder"
                    }
                  }
                },
                "then": {
                  "required": [
                    "radius",
                    "height"
                  ]
                }
              },
              {
                "if": {
                  "properties": {
                    "type": {
                      "const": "sphere"
                    }
                  }
                },
                "then": {
                  "required": [
                    "radius"
                  ]
                }
              },
              {
                "if": {
                  "properties": {
                    "type": {
                      "const": "extrude"
                    }
                  }
                },
                "then": {
                  "required": [
                    "polygon",
                    "height"
                  ]
                }
              },
              {
                "if": {
                  "properties": {
                    "type": {
                      "const": "revolve"
                    }
                  }
                },
                "then": {
                  "required": [
                    "profile"
                  ]
                }
              },
              {
                "if": {
                  "properties": {
                    "type": {
                      "const": "translate"
                    }
                  }
                },
                "then": {
                  "required": [
                    "vector",
                    "child"
                  ]
                }
              },
              {
                "if": {
                  "properties": {
                    "type": {
                      "const": "rotate"
                    }
                  }
                },
                "then": {
                  "required": [
                    "angles_deg",
                    "child"
                  ]
                }
              },
              {
                "if": {
                  "properties": {
                    "type": {
                      "const": "scale"
                    }
                  }
                },
                "then": {
                  "required": [
                    "factor",
                    "child"
                  ]
                }
              },
              {
                "if": {
                  "properties": {
                    "type": {
                      "const": "mirror"
                    }
                  }
                },
                "then": {
                  "required": [
                    "normal",
                    "child"
                  ]
                }
              },
              {
                "if": {
                  "properties": {
                    "type": {
                      "enum": [
                        "union",
                        "difference",
                        "intersection"
                      ]
                    }
                  }
                },
                "then": {
                  "properties": {
                    "children": {
                      "minItems": 2
                    }
                  },
                  "required": [
                    "children"
                  ]
                }
              },
              {
                "if": {
                  "properties": {
                    "type": {
                      "const": "hull"
                    }
                  }
                },
                "then": {
                  "required": [
                    "children"
                  ]
                }
              },
              {
                "if": {
                  "properties": {
                    "type": {
                      "const": "offset_2d"
                    }
                  }
                },
                "then": {
                  "required": [
                    "delta_mm",
                    "child"
                  ]
                }
              }
            ],
            "properties": {
              "angle_deg": {
                "default": 360,
                "maximum": 360,
                "minimum": 0.001,
                "type": "number"
              },
              "angles_deg": {
                "$ref": "#/$defs/Vec3"
              },
              "center": {
                "type": "boolean"
              },
              "child": {
                "$ref": "#/$defs/CsgNode"
              },
              "children": {
                "items": {
                  "$ref": "#/$defs/CsgNode"
                },
                "minItems": 1,
                "type": "array"
              },
              "delta_mm": {
                "$ref": "#/$defs/Num"
              },
              "factor": {
                "items": {
                  "maximum": 1000,
                  "minimum": -1000,
                  "type": "number"
                },
                "maxItems": 3,
                "minItems": 3,
                "type": "array"
              },
              "fillet_mm": {
                "maximum": 10000,
                "minimum": 0,
                "type": "number"
              },
              "height": {
                "$ref": "#/$defs/Pos"
              },
              "holes": {
                "items": {
                  "$ref": "#/$defs/Ring"
                },
                "type": "array"
              },
              "join": {
                "default": "round",
                "enum": [
                  "round",
                  "miter",
                  "square"
                ]
              },
              "normal": {
                "$ref": "#/$defs/Vec3"
              },
              "polygon": {
                "$ref": "#/$defs/Ring"
              },
              "profile": {
                "$ref": "#/$defs/Ring"
              },
              "radius": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/Pos"
                  },
                  {
                    "items": {
                      "maximum": 10000,
                      "minimum": 0,
                      "type": "number"
                    },
                    "maxItems": 2,
                    "minItems": 2,
                    "type": "array"
                  }
                ]
              },
              "scale_top": {
                "default": [
                  1,
                  1
                ],
                "items": {
                  "maximum": 100,
                  "minimum": 0,
                  "type": "number"
                },
                "maxItems": 2,
                "minItems": 2,
                "type": "array"
              },
              "segments": {
                "$ref": "#/$defs/Seg"
              },
              "size": {
                "items": {
                  "$ref": "#/$defs/Pos"
                },
                "maxItems": 3,
                "minItems": 3,
                "type": "array"
              },
              "twist_deg": {
                "maximum": 360,
                "minimum": -360,
                "type": "number"
              },
              "type": {
                "enum": [
                  "box",
                  "cylinder",
                  "sphere",
                  "extrude",
                  "revolve",
                  "translate",
                  "rotate",
                  "scale",
                  "mirror",
                  "union",
                  "difference",
                  "intersection",
                  "hull",
                  "offset_2d"
                ]
              },
              "vector": {
                "$ref": "#/$defs/Vec3"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          },
          "Mm50": {
            "maximum": 50,
            "minimum": 0,
            "type": "number"
          },
          "Name": {
            "pattern": "^[A-Za-z0-9_.-]{1,64}$",
            "type": "string"
          },
          "Num": {
            "maximum": 10000,
            "minimum": -10000,
            "type": "number"
          },
          "Pos": {
            "maximum": 10000,
            "minimum": 0.001,
            "type": "number"
          },
          "Ring": {
            "items": {
              "items": {
                "$ref": "#/$defs/Num"
              },
              "maxItems": 2,
              "minItems": 2,
              "type": "array"
            },
            "maxItems": 256,
            "minItems": 3,
            "type": "array"
          },
          "Seg": {
            "default": 32,
            "maximum": 96,
            "minimum": 3,
            "type": "integer"
          },
          "Vec3": {
            "items": {
              "$ref": "#/$defs/Num"
            },
            "maxItems": 3,
            "minItems": 3,
            "type": "array"
          }
        },
        "additionalProperties": false,
        "properties": {
          "insertion_checks": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "direction": {
                  "$ref": "#/$defs/Vec3"
                },
                "part": {
                  "$ref": "#/$defs/Name"
                }
              },
              "required": [
                "part",
                "direction"
              ],
              "type": "object"
            },
            "maxItems": 16,
            "type": "array"
          },
          "min_clearance_mm": {
            "default": 0.2,
            "maximum": 50,
            "minimum": 0,
            "type": "number"
          },
          "pair_rules": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "allow_contact": {
                  "default": false,
                  "type": "boolean"
                },
                "max_gap_mm": {
                  "$ref": "#/$defs/Mm50"
                },
                "min_clearance_mm": {
                  "$ref": "#/$defs/Mm50"
                },
                "part_a": {
                  "$ref": "#/$defs/Name"
                },
                "part_b": {
                  "$ref": "#/$defs/Name"
                }
              },
              "required": [
                "part_a",
                "part_b"
              ],
              "type": "object"
            },
            "maxItems": 120,
            "type": "array"
          },
          "parts": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "model": {
                  "$ref": "#/$defs/CsgNode"
                },
                "name": {
                  "$ref": "#/$defs/Name"
                },
                "role": {
                  "default": "solid",
                  "enum": [
                    "solid",
                    "keepout"
                  ]
                }
              },
              "required": [
                "name",
                "model"
              ],
              "type": "object"
            },
            "maxItems": 16,
            "minItems": 2,
            "type": "array"
          },
          "timeout_ms": {
            "default": 5000,
            "maximum": 8000,
            "minimum": 100,
            "type": "integer"
          }
        },
        "required": [
          "parts"
        ],
        "type": "object"
      },
      "name": "check_assembly_fit",
      "outputSchema": {
        "$defs": {
          "BoxMm": {
            "properties": {
              "max_mm": {
                "$ref": "#/$defs/V3"
              },
              "min_mm": {
                "$ref": "#/$defs/V3"
              }
            },
            "required": [
              "min_mm",
              "max_mm"
            ],
            "type": "object"
          },
          "Collision": {
            "properties": {
              "part": {
                "type": "string"
              },
              "point_mm": {
                "$ref": "#/$defs/V3"
              }
            },
            "required": [
              "part",
              "point_mm"
            ],
            "type": "object"
          },
          "InsertionResult": {
            "properties": {
              "blocking_parts": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "clear": {
                "type": "boolean"
              },
              "collisions": {
                "items": {
                  "$ref": "#/$defs/Collision"
                },
                "type": "array"
              },
              "direction": {
                "$ref": "#/$defs/V3"
              },
              "part": {
                "type": "string"
              }
            },
            "required": [
              "part",
              "direction",
              "clear",
              "blocking_parts",
              "collisions"
            ],
            "type": "object"
          },
          "PairResult": {
            "properties": {
              "allow_contact": {
                "type": "boolean"
              },
              "clearance_ok": {
                "type": "boolean"
              },
              "closest_points_mm": {
                "items": {
                  "$ref": "#/$defs/V3"
                },
                "maxItems": 2,
                "minItems": 2,
                "type": [
                  "array",
                  "null"
                ]
              },
              "gap_ok": {
                "type": "boolean"
              },
              "intersection_bbox": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/BoxMm"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "intersection_volume_mm3": {
                "minimum": 0,
                "type": "number"
              },
              "intersects": {
                "type": "boolean"
              },
              "max_gap_mm": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "min_distance_mm": {
                "minimum": 0,
                "type": [
                  "number",
                  "null"
                ]
              },
              "part_a": {
                "type": "string"
              },
              "part_b": {
                "type": "string"
              },
              "required_clearance_mm": {
                "minimum": 0,
                "type": "number"
              },
              "witness_point_mm": {
                "$ref": "#/$defs/V3N"
              }
            },
            "required": [
              "part_a",
              "part_b",
              "required_clearance_mm",
              "max_gap_mm",
              "allow_contact",
              "intersects",
              "intersection_volume_mm3",
              "intersection_bbox",
              "witness_point_mm",
              "min_distance_mm",
              "closest_points_mm",
              "clearance_ok",
              "gap_ok"
            ],
            "type": "object"
          },
          "V3": {
            "items": {
              "type": "number"
            },
            "maxItems": 3,
            "minItems": 3,
            "type": "array"
          },
          "V3N": {
            "items": {
              "type": "number"
            },
            "maxItems": 3,
            "minItems": 3,
            "type": [
              "array",
              "null"
            ]
          }
        },
        "properties": {
          "distance_search_mm": {
            "type": "number"
          },
          "fit_ok": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "insertion_results": {
            "items": {
              "$ref": "#/$defs/InsertionResult"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "pair_results": {
            "items": {
              "$ref": "#/$defs/PairResult"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "status": {
            "enum": [
              "ok",
              "timeout",
              "unknown"
            ]
          },
          "verified": {
            "type": "boolean"
          }
        },
        "required": [
          "status",
          "verified",
          "fit_ok",
          "distance_search_mm",
          "pair_results",
          "insertion_results"
        ],
        "type": "object"
      },
      "title": "Check assembly fit"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "Optimize sheet layout"
      },
      "description": "Nest 2D polygons with holes onto cut sheets with margin, kerf, and rotation step; returns verified placements and a 1:1 mm SVG cut sheet. Minimal example: {\"sheet_mm\":[100,100],\"parts\":[{\"id\":\"p\",\"polygon\":[[0,0],[20,0],[20,10],[0,10]],\"quantity\":2}]}",
      "inputSchema": {
        "$defs": {
          "Name": {
            "pattern": "^[A-Za-z0-9_.-]{1,64}$",
            "type": "string"
          },
          "Num": {
            "maximum": 10000,
            "minimum": -10000,
            "type": "number"
          },
          "Ring": {
            "items": {
              "items": {
                "$ref": "#/$defs/Num"
              },
              "maxItems": 2,
              "minItems": 2,
              "type": "array"
            },
            "maxItems": 256,
            "minItems": 3,
            "type": "array"
          }
        },
        "additionalProperties": false,
        "properties": {
          "include_svg": {
            "default": true,
            "type": "boolean"
          },
          "kerf_mm": {
            "default": 0.2,
            "maximum": 20,
            "minimum": 0,
            "type": "number"
          },
          "margin_mm": {
            "default": 2,
            "maximum": 100,
            "minimum": 0,
            "type": "number"
          },
          "max_sheets": {
            "default": 1,
            "maximum": 8,
            "minimum": 1,
            "type": "integer"
          },
          "parts": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "holes": {
                  "items": {
                    "$ref": "#/$defs/Ring"
                  },
                  "type": "array"
                },
                "id": {
                  "$ref": "#/$defs/Name"
                },
                "polygon": {
                  "$ref": "#/$defs/Ring"
                },
                "quantity": {
                  "default": 1,
                  "maximum": 128,
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "required": [
                "id",
                "polygon"
              ],
              "type": "object"
            },
            "maxItems": 32,
            "minItems": 1,
            "type": "array"
          },
          "rotation_step_deg": {
            "default": 90,
            "enum": [
              0,
              90,
              45,
              15
            ]
          },
          "sheet_mm": {
            "items": {
              "maximum": 5000,
              "minimum": 10,
              "type": "number"
            },
            "maxItems": 2,
            "minItems": 2,
            "type": "array"
          },
          "timeout_ms": {
            "default": 5000,
            "maximum": 8000,
            "minimum": 100,
            "type": "integer"
          }
        },
        "required": [
          "sheet_mm",
          "parts"
        ],
        "type": "object"
      },
      "name": "optimize_sheet_layout",
      "outputSchema": {
        "$defs": {
          "Placement": {
            "properties": {
              "bbox_mm": {
                "items": {
                  "type": "number"
                },
                "maxItems": 4,
                "minItems": 4,
                "type": "array"
              },
              "instance_index": {
                "$ref": "#/$defs/UInt"
              },
              "part_id": {
                "type": "string"
              },
              "rotate_deg": {
                "exclusiveMaximum": 360,
                "minimum": 0,
                "type": "number"
              },
              "sheet_index": {
                "maximum": 7,
                "minimum": 0,
                "type": "integer"
              },
              "translate_mm": {
                "$ref": "#/$defs/V2"
              }
            },
            "required": [
              "part_id",
              "instance_index",
              "sheet_index",
              "translate_mm",
              "rotate_deg",
              "bbox_mm"
            ],
            "type": "object"
          },
          "UInt": {
            "minimum": 0,
            "type": "integer"
          },
          "Unplaced": {
            "properties": {
              "instance_index": {
                "$ref": "#/$defs/UInt"
              },
              "part_id": {
                "type": "string"
              }
            },
            "required": [
              "part_id",
              "instance_index"
            ],
            "type": "object"
          },
          "V2": {
            "items": {
              "type": "number"
            },
            "maxItems": 2,
            "minItems": 2,
            "type": "array"
          }
        },
        "properties": {
          "layout_svg": {
            "maxLength": 131072,
            "type": [
              "string",
              "null"
            ]
          },
          "min_spacing_mm": {
            "minimum": 0,
            "type": [
              "number",
              "null"
            ]
          },
          "oversized_part_ids": {
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "placements": {
            "items": {
              "$ref": "#/$defs/Placement"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "sheet_area_mm2": {
            "exclusiveMinimum": 0,
            "type": [
              "number",
              "null"
            ]
          },
          "sheets_used": {
            "maximum": 8,
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "status": {
            "enum": [
              "placed_all",
              "partial",
              "infeasible",
              "timeout",
              "unknown"
            ]
          },
          "total_part_area_mm2": {
            "minimum": 0,
            "type": [
              "number",
              "null"
            ]
          },
          "unplaced": {
            "items": {
              "$ref": "#/$defs/Unplaced"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "unplaced_count": {
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "utilization_ratio": {
            "maximum": 1,
            "minimum": 0,
            "type": [
              "number",
              "null"
            ]
          },
          "verified": {
            "type": "boolean"
          }
        },
        "required": [
          "status",
          "verified",
          "placements",
          "unplaced",
          "unplaced_count",
          "oversized_part_ids",
          "sheets_used",
          "utilization_ratio",
          "total_part_area_mm2",
          "sheet_area_mm2",
          "min_spacing_mm",
          "layout_svg"
        ],
        "type": "object"
      },
      "title": "Optimize sheet layout"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Submit Feedback"
      },
      "description": "Opt-in: send a bug report, schema friction note, feature request or praise about this service. Call only when you or your user explicitly choose to send feedback. Not read-only: each call stores one entry. message: 1..1000 characters of plain text. no_sensitive_data must be true. Do not include personal data, secrets, credentials or proprietary inputs. Global limits: 10 per UTC hour, 50 per UTC day; RATE_LIMITED otherwise.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "category": {
            "enum": [
              "bug",
              "schema",
              "geometry",
              "performance",
              "feature",
              "other"
            ],
            "type": "string"
          },
          "message": {
            "maxLength": 1000,
            "minLength": 1,
            "type": "string"
          },
          "no_sensitive_data": {
            "const": true,
            "type": "boolean"
          },
          "tool": {
            "enum": [
              "compile_parametric_part",
              "verify_printability",
              "check_assembly_fit",
              "optimize_sheet_layout"
            ],
            "type": "string"
          }
        },
        "required": [
          "category",
          "message",
          "no_sensitive_data"
        ],
        "type": "object"
      },
      "name": "submit_feedback",
      "title": "Submit Feedback"
    }
  ],
  "transport": {
    "endpoint": "https://cad.burgeonads.com/mcp",
    "type": "streamable-http"
  },
  "version": "1.0"
}
