Skip to main content
Glama
eng-toolkit

eng-toolkit

by Lin830326

Metrology Form Error

metrology_form_error

Calculates 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

NameRequiredDescriptionDefault
unitNoLength unit of the coordinates, which carry none, as a unit only with no number: 'mm', 'um', 'inch', 'm'mm
pointsNoMeasured 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
featureYes'flatness', 'straightness', 'circularity' or 'cylindricity'
toleranceNoOptional form tolerance with unit, e.g. '0.02 mm'; adds a pass/fail to the result. Empty = none
output_unitNoLength unit of the results, e.g. 'mm', 'um', 'inch'mm
points_pathNoPath 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

NameRequiredDescriptionDefault
okYes
dataNoNon-quantity payload (reports, listings)
errorNo
valueNoPrimary quantity result
valuesNoAll named quantity results (includes the primary)
warningsNo
artifactsNo
provenanceYesWhat produced the result and from which inputs.
review_statusNounreviewed

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.1

TDQS

A4.6/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden and does so unusually well: it defines the ISO 1101 minimum-zone semantics, discloses per-feature estimator exactness (straightness exact; flatness/circularity exact only for small sets; cylindricity an upper bound never claimed minimal), and points to data.method for provenance. It also states that a least-squares zone is returned for comparison and that coordinates carry no unit.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the feature list, and every sentence contributes information about inputs, accuracy, or outputs. However, sentences are long and semicolon-dense, making the accuracy caveats harder to scan than necessary.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a six-parameter, annotation-free computational tool with an output schema, this covers what an agent needs: input formats and file handling, unit conventions, tolerance behavior, and the exactness limitations that determine how much to trust the result. Return structure is delegated appropriately to the output schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3; the description adds genuine meaning beyond it, notably that x,y,z points for circularity are projected onto their best-fit plane and that 'unit' names otherwise unitless coordinates while 'output_unit' governs results. The points vs points_path precedence is reinforced rather than merely repeated.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb+resource ('Form error of a feature from measured points') and immediately enumerates the four supported feature types with their required point dimensionality. An agent can distinguish this from siblings like metrology_check_scan or metrology_position_tolerance without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Clear usage context: which feature geometry maps to which coordinate set, the inline-vs-file input choice, and the optional pass/fail via 'tolerance'. It does not name a sibling alternative or state when to prefer another tool, so guidance is strong but not exhaustive.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools