Metrology Position Tolerance
metrology_position_toleranceCalculate true position (ISO 1101) from nominal and measured coordinates, including MMC/LMC bonus, and determine pass/fail against the stated tolerance.
Instructions
True position (ISO 1101) of features from their nominal and measured coordinates. For each feature the deviation is measured minus nominal and the position error is the diameter of the zone it needs, 2sqrt(dx^2+dy^2) for x,y (spherical SØ 2sqrt(dx^2+dy^2+dz^2) for x,y,z). It passes when that does not exceed the tolerance plus the bonus. With bonus_modifier 'M' (maximum material condition) or 'L' (least material condition) the bonus is how far the actual feature size has left its MMC / LMC size (for a hole MMC is the smallest hole, for a shaft the largest). Datum shift is not applied; coordinates must already be in the datum reference frame of the nominal.
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": {
"nominal": "<nominal>",
"measured": "<measured>",
"tolerance": "<tolerance>"
},
"name": "metrology_position_tolerance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit | No | Length unit of the numbers in nominal, measured and feature_size, as a unit only with no number: 'mm', 'um', 'inch' | mm |
| nominal | Yes | Nominal feature coordinates, one feature per row: JSON [[x,y],...] or text '10,20; 30,40' (rows by line or ';'). x,y or x,y,z, in 'unit' | |
| lmc_size | No | Least material size with unit, e.g. '10.1 mm'. Required with bonus_modifier 'L' | |
| measured | Yes | Measured feature coordinates, same layout, row count and column count as 'nominal' | |
| mmc_size | No | Maximum material size with unit, e.g. '10 mm'. Required with bonus_modifier 'M' | |
| tolerance | Yes | Stated position tolerance, the diameter of the zone, with unit, e.g. '0.1 mm' ('0 mm' is allowed) | |
| output_unit | No | Length unit of the results, e.g. 'mm', 'um', 'inch' | mm |
| feature_kind | No | 'hole' (internal feature: slot, hole; MMC is its smallest size) or 'shaft' (external feature: pin, boss; MMC is its largest size). Only used with a bonus modifier | hole |
| feature_size | No | Actual size of each feature (measured diameter or width) in 'unit', one number per feature in the order of nominal: JSON [10.02, 10.05] or '10.02; 10.05'. Required with a bonus modifier | |
| bonus_modifier | No | 'none' (default, no bonus), 'M' (MMC bonus) or 'L' (LMC bonus) | none |
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 |