Skip to main content
Glama
eng-toolkit

eng-toolkit

by Lin830326

Metrology Fit Limits

metrology_fit_limits

Calculate ISO 286 limits and fits for a hole/shaft pair such as H7/g6 from 3 to 500 mm, returning deviations, limit sizes, tolerances, clearance or interference, and fit type.

Instructions

ISO 286 limits and fits for a hole/shaft pair such as 'H7/g6' at a nominal size from 3 to 500 mm. Returns the upper/lower deviations, limit sizes, tolerances, min and max clearance (negative = interference) and the fit type (clearance, transition, interference). IT01 to IT18; positions A..ZC / a..zc as tabulated in ISO 286-1.

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>",
      "fit": "<fit>"
    },
    "name": "metrology_fit_limits"
  }
}

Input Schema

NameRequiredDescriptionDefault
fitYesHole class in upper case, '/', shaft class in lower case, e.g. 'H7/g6', 'H7/p6', 'G7/h6'
nominalYesNominal size of hole and shaft with unit, e.g. '25 mm'. Range 3 to 500 mm.

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

A3.6/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full disclosure burden; it does so reasonably well by declaring the tool's scope limits (size range, grade range, position range) and enumerating the deterministic outputs including the sign convention for interference. It stops short of stating units for deviations/tolerances or error behaviour for out-of-range or malformed fit strings.

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?

Two dense sentences, front-loaded with the domain and standard, followed by the output inventory. The output enumeration partly duplicates the output schema, but it is compact and helps an agent recognise the result shape at a glance.

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

Completeness3/5

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

An output schema exists and both parameters are fully described in the schema, so the core is covered. The remaining gaps — units of the returned deviations and limit sizes, and behaviour for out-of-range nominal or unsupported grade/position — are material for a precision-metrology calculation and are not addressed.

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

Parameters3/5

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

Schema description coverage is 100%, with both 'fit' and 'nominal' documented including format examples, so the baseline is 3. The description restates the fit example and the 3-500 mm range but adds no new semantics such as accepted unit spellings, whitespace tolerance, or case-sensitivity rules.

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

Purpose4/5

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

The description names a specific standard-backed resource (ISO 286 limits and fits) and states exactly what is computed for a hole/shaft pair, with an example input ('H7/g6'). It does not explicitly differentiate itself from the sibling 'metrology_fit_search' or 'optimize_fit', so an agent must infer the boundary between lookup, search, and optimisation.

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

Usage Guidelines3/5

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

Valid input domains are given (3-500 mm, IT01 to IT18, positions A..ZC / a..zc), which implicitly tells the agent when the tool is applicable. However, there is no explicit when-to-use/when-not guidance and no named alternative for the obviously adjacent tasks of finding a fit or optimising one, even though 'metrology_fit_search' and 'optimize_fit' sit in the sibling set.

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