Metrology Form Error
metrology_form_errorCalculates flatness, straightness, circularity, or cylindricity form error from measured points using ISO 1101 minimum zones, with optional tolerance pass/fail and least-squares comparison.
Instructions
Form error of a feature from measured points: flatness (x,y,z points), straightness (x,y points of a profile in a plane), circularity/roundness (x,y points of a section; x,y,z points are projected onto their best-fit plane) or cylindricity (x,y,z points). The value is the width of the minimum zone (ISO 1101): the thinnest pair of parallel planes / lines, concentric circles or coaxial cylinders that holds every point. Straightness is exact; flatness and circularity are exact minimum zones for small point sets and polished, optimality-checked minimum zones above that; cylindricity is an axis search that gives an upper bound, never claimed minimal. data.method says which estimator ran and whether the value is the proven minimum. The least-squares zone is returned for comparison. Points come inline ('points') or from a CSV/text file ('points_path'); coordinates carry no unit, so 'unit' names it. An optional 'tolerance' gives a pass/fail.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"feature": "<feature>"
},
"name": "metrology_form_error"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit | No | Length unit of the coordinates, which carry none, as a unit only with no number: 'mm', 'um', 'inch', 'm' | mm |
| points | No | Measured points inline, one point per row: JSON [[x,y,z],...] or text with a row per line or ';' and values separated by commas or spaces, e.g. '0,0,0.01; 10,0,-0.01; 0,10,0.02; 10,10,0'. x,y for straightness and circularity, x,y,z for flatness and cylindricity. Leave empty when using points_path | |
| feature | Yes | 'flatness', 'straightness', 'circularity' or 'cylindricity' | |
| tolerance | No | Optional form tolerance with unit, e.g. '0.02 mm'; adds a pass/fail to the result. Empty = none | |
| output_unit | No | Length unit of the results, e.g. 'mm', 'um', 'inch' | mm |
| points_path | No | Path to a point file (.csv .txt .xyz .pts .asc .dat), same layout as 'points'; one header line is skipped and, if it names x, y, z, those columns are used. Leave empty when using 'points' |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| data | No | Non-quantity payload (reports, listings) | |
| error | No | ||
| value | No | Primary quantity result | |
| values | No | All named quantity results (includes the primary) | |
| warnings | No | ||
| artifacts | No | ||
| provenance | Yes | What produced the result and from which inputs. | |
| review_status | No | unreviewed |