{
  "name": "chapa_unfold",
  "title": "Sheet-metal unfold (newlife)",
  "description": "Resolve the flat blank of a bent sheet-metal part: developed length, area and weight, plus the per-bend allowance, deduction and setback. Free and unmetered. The K-factor default is declared as newlife's own, not taken from a standard.",
  "units": "millimetre / kilogram / degree",
  "k_factor_source": "newlife default (declared, not a standard)",
  "disclaimer": "Reference calculation. Validate against your own flat pattern before cutting.",
  "generated": "2026-08-13",
  "version": "1.0.0",
  "license": "Data and formulas are free to use. No standard is reproduced here.",
  "inputSchema": {
    "type": "object",
    "properties": {
      "material": {
        "type": "string",
        "enum": [
          "S235JR",
          "S355J2",
          "AISI304",
          "EN-AW-5754",
          "Cu-ETP"
        ],
        "description": "Material id from index.json."
      },
      "thickness_mm": {
        "type": "number",
        "exclusiveMinimum": 0,
        "description": "Sheet thickness in mm."
      },
      "flanges_mm": {
        "type": "array",
        "items": {
          "type": "number",
          "exclusiveMinimum": 0
        },
        "minItems": 1,
        "description": "Outside (apex-to-apex) flange lengths in order along the part."
      },
      "bends": {
        "type": "array",
        "description": "Exactly one fewer than flanges_mm: the bend between each consecutive pair.",
        "items": {
          "type": "object",
          "properties": {
            "angle_deg": {
              "type": "number",
              "minimum": 0,
              "exclusiveMaximum": 180,
              "description": "Bend angle in degrees AWAY FROM FLAT (90 = right angle). Not the included angle. An acute 45° inside corner is 135 here."
            },
            "radius_mm": {
              "type": "number",
              "minimum": 0,
              "description": "INSIDE bend radius."
            },
            "k": {
              "type": "number",
              "minimum": 0,
              "maximum": 1,
              "description": "Optional per-bend K override."
            }
          },
          "required": [
            "angle_deg",
            "radius_mm"
          ]
        }
      },
      "width_mm": {
        "type": "number",
        "exclusiveMinimum": 0,
        "description": "Part width across the bend lines."
      },
      "k": {
        "type": "number",
        "minimum": 0,
        "maximum": 1,
        "description": "Neutral-axis factor. Defaults to 0.45."
      }
    },
    "required": [
      "material",
      "thickness_mm",
      "flanges_mm",
      "bends",
      "width_mm"
    ]
  },
  "resources": {
    "catalogue": "https://www.newlifesolutions.dev/agent/chapa/index.json",
    "spec": "https://www.newlifesolutions.dev/agent/chapa/unfold-spec.json",
    "precomputed_case": "https://www.newlifesolutions.dev/agent/chapa/cases/{material}/{thickness_mm}/{angle_deg}.json"
  },
  "pricing": {
    "scheme": "none",
    "price": "0",
    "currency": "USD",
    "note": "Free and unmetered. No x402 payment rail is armed on this resource."
  }
}
