Metrology Stackup 1D
metrology_stackup_1dComputes one-dimensional tolerance stack-ups for dimension chains and returns closing dimension limits, per-link contributions, and optional Monte Carlo risk using worst-case or RSS methods.
Instructions
One-dimensional tolerance stack-up of a dimension chain. 'chain' is a JSON array of links {"name","nominal","tol" or ("plus","minus"),"direction":"+"|"-"}; direction "+" adds to the closing dimension, "-" subtracts. method "worst_case" (default) or "rss". Returns the nominal, mean and limits of the closing dimension and each link's share. A link may instead be an ISO 286 fit {"name","fit":"H7/g6","nominal":,"direction"}: its nominal is the diameter (3 to 500 mm) and the link itself is the clearance. Optional seeded Monte Carlo returns the probability of falling outside lower_limit/upper_limit.
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": {
"chain": "<chain>"
},
"name": "metrology_stackup_1d"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | Monte Carlo random seed; the same seed gives the same result | |
| chain | Yes | JSON array of links, e.g. [{"name":"housing","nominal":"50 mm","tol":"0.1 mm","direction":"+"},{"name":"bearing","nominal":"20 mm","plus":"0 mm","minus":"0.12 mm","direction":"-"}]. Every length needs a unit, also '0 mm'. 'tol' is symmetric +/-; 'plus'/'minus' are magnitudes. A fit link {"fit":"H7/g6","nominal":"25 mm","direction":"-"} replaces the tolerance: 'nominal' is then the diameter and the link itself is the clearance (hole - shaft). | |
| method | No | 'worst_case' (default) or 'rss' | worst_case |
| samples | No | Monte Carlo sample count, 1000 to 2000000 | |
| lower_limit | No | Lower spec limit of the closing dimension with unit, e.g. '0.2 mm'. Empty = none | |
| monte_carlo | No | Also run a seeded Monte Carlo simulation | |
| output_unit | No | Length unit of the results, e.g. 'mm', 'um', 'inch' | mm |
| upper_limit | No | Upper spec limit of the closing dimension with unit, e.g. '0.8 mm'. Empty = none | |
| distribution | No | Monte Carlo link distribution: 'normal' (tolerance = +/-3 sigma, default) or 'uniform' | normal |
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 |