Skip to main content
Glama
eng-toolkit

eng-toolkit

by Lin830326

Metrology Fit Search

metrology_fit_search

Find ISO 286 hole- or shaft-basis fits that keep clearance within a specified window for nominal sizes 3–500 mm, returning ranked candidates or closest misses.

Instructions

Reverse lookup of ISO 286 fits: which standard fits keep the clearance between min_clearance and max_clearance at a nominal size from 3 to 500 mm. Clearance = hole size - shaft size, so give interference as a negative length, e.g. min '-0.05 mm', max '-0.001 mm'. A fit qualifies when its minimum clearance is at least min_clearance and its maximum clearance is at most max_clearance. Searches the 10 preferred fits (default) or a wider 'common' set, on hole basis (H holes) or shaft basis (h shafts). Candidates come best first, ranked by larger tolerances (a cost proxy), then by closeness to the window centre. If nothing fits, the closest misses are returned with how far outside the window they lie.

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>",
      "min_clearance": "<min_clearance>",
      "max_clearance": "<max_clearance>"
    },
    "name": "metrology_fit_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
basisNo'hole' (default): H holes with shafts c..u, e.g. H7/g6. 'shaft': h shafts with holes C..U, e.g. G7/h6hole
fit_setNo'preferred' (default): the 10 preferred fits of the basis. 'common': every hole grade 6 to 11 paired with shaft letters c..u at the same or one finer gradepreferred
nominalYesNominal size of hole and shaft with unit, e.g. '25 mm'. Range 3 to 500 mm.
max_resultsNoMaximum number of candidates returned, 1 to 50
max_clearanceYesLargest clearance the assembly tolerates, with unit, e.g. '0.05 mm'. Must not be below min_clearance; negative values are interference.
min_clearanceYesSmallest clearance the assembly tolerates, with unit, e.g. '0 mm', '0.007 mm'. Negative means interference: '-0.03 mm' allows up to 0.03 mm of interference.

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 behavioral burden well. It discloses the qualification rule, ranking order (larger tolerances first as a cost proxy, then closeness to window centre), search scope (preferred vs common, hole vs shaft basis), and fallback behavior when nothing fits.

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?

The description is front-loaded and efficient: purpose first, then sign convention, qualification rule, search scope, ranking, and fallback. There is minor repetition of the basis and fit_set defaults already documented in the schema.

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 search tool with full schema coverage and an output schema, the description is complete enough to invoke correctly. It covers domain-specific input semantics, search scope, ranking, and no-match behavior without needing to explain return-value schema details.

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 description coverage is 100%, so the schema already defines each parameter. The description still adds interpretive value by defining clearance as hole size minus shaft size, explaining negative interference input, and stating the at-least/at-most rule used for min_clearance and max_clearance.

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 states a specific verb and resource: 'Reverse lookup of ISO 286 fits'. It defines the exact question answered (which standard fits satisfy a clearance window at a nominal size from 3 to 500 mm) and distinguishes this search-by-clearance behavior from a direct fit-limits lookup.

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?

It gives clear usage context for a clearance-window search and explains how to express interference with negative values. It does not explicitly name when to choose this over siblings such as metrology_fit_limits or optimize_fit, so it lacks formal alternatives or exclusions.

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