Skip to main content
Glama
eng-toolkit

eng-toolkit

by Lin830326

Machine Key

machine_key

Calculate parallel key shear/crushing safety and minimum length, or straight/involute spline torque capacity, for static shaft-hub joint checks.

Instructions

Parallel key shear/crushing, safety and minimum length; or straight-sided/involute spline bearing torque capacity npLhr_meansharing. Key half-height bears in hub; shear strength may be 0.577Sy. Spline default sharing=0.75 is an assumed utilization, not a standards rating. Static only.

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": {
      "joint_type": "<joint_type>",
      "length": "<length>"
    },
    "name": "machine_key"
  }
}

Input Schema

NameRequiredDescriptionDefault
widthNoPhysical quantity with unit, e.g. '25 mm', '100 N*m', '200 MPa'; optional inputs use ''.
heightNoPhysical quantity with unit, e.g. '25 mm', '100 N*m', '200 MPa'; optional inputs use ''.
lengthYesPhysical quantity with unit, e.g. '25 mm', '100 N*m', '200 MPa'; optional inputs use ''.
torqueNoPhysical quantity with unit, e.g. '25 mm', '100 N*m', '200 MPa'; optional inputs use ''.
joint_typeYes'key' (parallel key), 'straight_spline', or 'involute_spline'. Spline height is effective loaded radial contact height.
mean_radiusNoPhysical quantity with unit, e.g. '25 mm', '100 N*m', '200 MPa'; optional inputs use ''.
tooth_countNoPositive whole-number count, at most 100000.
unit_systemNoOutput units: 'metric' (mm, N, MPa) or 'imperial' (inch, lbf, ksi).metric
load_sharingNoSpline flank utilization f in (0,1], default .75; an assumed uneven-load allowance, not a standards factor.
tooth_heightNoPhysical quantity with unit, e.g. '25 mm', '100 N*m', '200 MPa'; optional inputs use ''.
shaft_diameterNoPhysical quantity with unit, e.g. '25 mm', '100 N*m', '200 MPa'; optional inputs use ''.
shear_strengthNoPhysical quantity with unit, e.g. '25 mm', '100 N*m', '200 MPa'; optional inputs use ''.
yield_strengthNoPhysical quantity with unit, e.g. '25 mm', '100 N*m', '200 MPa'; optional inputs use ''.
bearing_strengthNoPhysical quantity with unit, e.g. '25 mm', '100 N*m', '200 MPa'; optional inputs use ''.
allowable_pressureNoPhysical quantity with unit, e.g. '25 mm', '100 N*m', '200 MPa'; optional inputs use ''.

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.7/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and discloses real modeling assumptions: the key half-height bears in the hub, shear strength may be estimated as 0.577*Sy, and the spline sharing default of 0.75 is an assumed utilization rather than a standards rating. Those caveats materially affect how an agent should trust and present results. What is missing is any statement of failure/error conditions or which inputs are mandatory per mode.

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?

Four short sentences, no filler, with the two analysis modes front-loaded before the assumptions. The compression in the first sentence and the inline formula string make it slightly harder to parse than it needs to be, but nothing is wasted.

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?

For a 15-parameter tool with no annotations, the definition covers modes, key modeling assumption, strength estimation, the load-sharing caveat and the static-only limit, and an output schema exists so return values need not be described. The notable gap is per-mode input expectations: an agent has to infer from joint_type which of the many optional quantities actually matter, and there is no guidance on valid ranges or what happens when inputs are omitted.

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 nominally 100%, but the schema text is boilerplate ('Physical quantity with unit'), so the description does the real semantic work. It maps the spline capacity formula n*p*L*h*r_mean*sharing onto tooth_count, length, tooth_height, mean_radius and load_sharing, and ties shear_strength to 0.577*Sy, which clarifies defaults the schema does not explain. Coverage of the remaining optional quantities (width, shaft_diameter, allowable_pressure, bearing_strength) is still left implicit.

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 two distinct capabilities concretely: parallel key analysis (shear/crushing, safety factor, minimum length) and spline bearing torque capacity for straight-sided/involute splines, which maps directly onto the joint_type parameter. The telegraphic phrasing ('Parallel key shear/crushing, safety and minimum length') lacks an explicit verb but the resource and outputs are identifiable. It is distinguishable from siblings like machine_shaft or machine_gear.

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?

'Static only' is a genuine applicability constraint, and the two-mode opening implies which inputs select which analysis. However, it never says which parameters are required or appropriate for each mode (e.g., that a key needs width/height/length while splines need tooth_count/tooth_height/mean_radius), nor does it warn against misuse such as dynamic or fatigue loading beyond the static note.

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