Skip to main content
Glama
ottonic
by ottonic

Fit Between a Hole and a Shaft

fit

Calculate clearance, transition, or interference for an ISO 286 hole/shaft pair and return minimum/maximum clearance and maximum interference in millimetres.

Instructions

Return the resulting fit between one hole class and one shaft class at the same nominal size, such as 12 H7/h6: the type (clearance, transition or interference), the minimum and maximum clearance, and the maximum interference. Values are millimetres. A negative minimum clearance means the fit can interfere. This reports the geometry of the fit, not whether it is the right choice for a joint, which depends on function and is the caller's decision.

Input Schema

NameRequiredDescriptionDefault
holeYesHole tolerance class, e.g. H7.
shaftYesShaft tolerance class, e.g. g6 or n6.
nominalYesNominal size in millimetres, shared by the hole and shaft.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does well: it declares output units (millimetres), the sign convention ('a negative minimum clearance means the fit can interfere'), and scopes itself as a pure geometry report rather than a recommendation. It does not say what happens when a class is invalid or unavailable at the given nominal size, which is the remaining behavioral gap.

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

Conciseness5/5

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

Opens with the core operation and its return contents, then adds one short scoping sentence. No filler, and the most decision-relevant information (what comes back and in what units) is front-loaded.

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

Completeness4/5

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

An output schema exists, so return-value explanation is optional, yet the description still clarifies units and sign semantics. Parameters are fully covered. Only failure/edge behavior for invalid or inapplicable class-size combinations is unaddressed.

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%, so all three parameters are already documented, giving a baseline of 3. The description adds the combined format '12 H7/h6' and restates the shared-nominal constraint, but no new detail on accepted class syntax beyond the schema's own examples.

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?

States a specific verb and resource ('Return the resulting fit between one hole class and one shaft class at the same nominal size') and enumerates exactly what is returned: fit type, min/max clearance, max interference. The example '12 H7/h6' makes the operation unambiguous and clearly separates it from sibling limit/grade lookups.

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?

Supplies a concrete usage example and draws an explicit boundary: it reports fit geometry, not whether the fit suits a joint, which 'is the caller's decision.' That prevents misuse for design-selection questions. It stops short of naming which sibling to call for alternative needs (e.g. limits_of_size or iso286_applicability).

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