Skip to main content
Glama

tolerance_cost_check

Price a tolerance scheme against the process that must hold it: flags tolerances needing a secondary operation and compares total cost index across schemes.

Instructions

Price a tolerance scheme against the process that has to hold it — the missing link between tolerance_stackup ("what tolerance works") and cost_estimate ("what does it cost").

Per toleranced dimension: its ISO 286 IT grade as a FLOAT (a band between IT6 and IT7 reports 6.4, not 7), the cheapest machining operation that holds that grade naturally (drilling ~IT11, milling ~IT10, turning ~IT9, reaming ~IT7, grinding ~IT6), a relative cost index normalised to 1.0 at process's natural capability, and a verdict: 'ok', 'in_process_tightening' (tighter but reachable in the same operation), or 'needs_secondary_operation' — the flag, meaning the part silently acquired an operation nobody costed. pass is false when any link flags. Cost roughly doubles every 1.5 IT grades tightened below natural capability; above it only inspection/scrap falls. total_cost_index is the sum, so two tolerance SCHEMES over the same chain compare directly.

chain is the same [{name, nominal, plus, minus | tol}] tolerance_stackup takes; instead pass a live handle (+ axis, default_tol, general) and the chain is derived off the solid the same way. process: cnc | injection | casting | sheet | fdm | drilling | milling | turning | boring | reaming | grinding | honing | lapping.

fidelity='correlation', band_pct=50 — the RATIOS are defensible, the absolute index is dimensionless and is not money. Returns {process, links:[{name, nominal_mm, band_mm, it_grade, cost_index, verdict, cheapest_operation, natural_it, note}], n_links, total_cost_index, mean_cost_index, flagged, pass, fidelity, band_pct, basis, escalate_to}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
axisNo+z
chainNo
handleNo
generalNom
processNocnc
default_tolNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

With no annotations to lean on, the description carries the full behavioral burden and does so richly: it defines the three verdict values and what 'needs_secondary_operation' means, explains the cost-doubling-per-1.5-IT-grade behavior, clarifies that ratios (not absolutes) are defensible, and discloses the fidelity='correlation'/band_pct=50 caveat plus the escalate_to hint. This is far more than structured fields provide.

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?

Purpose is front-loaded in the first sentence and the dense technical content (IT grade mapping, cost behavior, return fields) is well organized. It is long and prose-heavy with several parenthetical digressions, so it is efficient rather than maximally tight.

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 6-parameter analysis tool with no output schema, the description supplies the full return shape ({process, links:[...], n_links, total_cost_index, mean_cost_index, flagged, pass, fidelity, band_pct, basis, escalate_to}) and the per-link field semantics (it_grade, cost_index, verdict, cheapest_operation, natural_it). Nothing an agent needs to call or interpret the result is missing.

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

Parameters5/5

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

Schema description coverage is 0%, so the description must compensate and it does: it documents `chain` format and its relationship to tolerance_stackup's chain, the live `handle` (+ axis, default_tol, general) alternative, and enumerates all `process` values (cnc | injection | casting | sheet | fdm | drilling | ...). All six parameters are given meaning absent from the schema.

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 opening line states a specific verb+resource ('Price a tolerance scheme against the process that has to hold it') and explicitly positions the tool relative to two siblings, tolerance_stackup ('what tolerance works') and cost_estimate ('what does it cost'). An agent can tell exactly what this does and how it differs from neighboring tools.

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 clearly states the context of use — the 'missing link' between tolerance_stackup and cost_estimate — and the metrics paragraph explains when the results matter (`pass` is false when any link flags). It stops short of explicit when-not-to-use guidance or a direct 'use X instead' routing statement, so it falls just below the top.

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