Skip to main content
Glama
eng-toolkit

eng-toolkit

by Lin830326

Machine Shaft

machine_shaft

Calculate static and fatigue stresses for round shafts using von Mises/Tresca, Marin endurance, and Goodman/Soderberg/Gerber/ASME checks; optionally include twist and critical speed.

Instructions

Round shaft: von Mises/Tresca static stress, Marin endurance and Goodman/Soderberg/Gerber/ASME fatigue. Signed loads at one outer fibre; fatigue parts separate. Optional TL/GJ twist and Rayleigh/Dunkerley critical speed from static deflections. Elastic steel fatigue estimates. With only alternating/mean loads the static check is at |mean|+alternating.

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": {
      "outer_diameter": "<outer_diameter>"
    },
    "name": "machine_shaft"
  }
}

Input Schema

NameRequiredDescriptionDefault
kaNoFinite dimensionless coefficient; zero selects the documented automatic value where supported.
kbNoFinite dimensionless coefficient; zero selects the documented automatic value where supported.
kcNoFinite dimensionless coefficient; zero selects the documented automatic value where supported.
kdNoFinite dimensionless coefficient; zero selects the documented automatic value where supported.
keNoFinite dimensionless coefficient; zero selects the documented automatic value where supported.
kfNoFinite dimensionless coefficient; zero selects the documented automatic value where supported.
ktNoFinite dimensionless coefficient; zero selects the documented automatic value where supported.
kfsNoFinite dimensionless coefficient; zero selects the documented automatic value where supported.
ktsNoFinite dimensionless coefficient; zero selects the documented automatic value where supported.
lengthNoPhysical 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 ''.0 N*m
load_typeNoMarin kc choice: 'combined' or 'bending'=1, 'axial'=.85, 'torsion'=1 (shear enters as von Mises equivalent, so .59 is not applied).combined
axial_forceNoPhysical quantity with unit, e.g. '25 mm', '100 N*m', '200 MPa'; optional inputs use ''.0 N
mean_torqueNoPhysical quantity with unit, e.g. '25 mm', '100 N*m', '200 MPa'; optional inputs use ''.
reliabilityNoMarin reliability percentage: 50, 90, 95, 99, 99.9 or 99.99; a nondefault percentage conflicts with direct ke.
unit_systemNoOutput units: 'metric' (mm, N, MPa) or 'imperial' (inch, lbf, ksi).metric
mean_bendingNoPhysical quantity with unit, e.g. '25 mm', '100 N*m', '200 MPa'; optional inputs use ''.
shear_modulusNoPhysical quantity with unit, e.g. '25 mm', '100 N*m', '200 MPa'; optional inputs use ''.
bending_momentNoPhysical quantity with unit, e.g. '25 mm', '100 N*m', '200 MPa'; optional inputs use ''.0 N*m
inner_diameterNoPhysical quantity with unit, e.g. '25 mm', '100 N*m', '200 MPa'; optional inputs use ''.0 mm
outer_diameterYesPhysical quantity with unit, e.g. '25 mm', '100 N*m', '200 MPa'; optional inputs use ''.
surface_finishNoOptional 'ground', 'machined', 'hot_rolled', 'as_forged' to estimate ka; conflicts with direct ka.
yield_strengthNoPhysical quantity with unit, e.g. '25 mm', '100 N*m', '200 MPa'; optional inputs use ''.
ultimate_strengthNoPhysical quantity with unit, e.g. '25 mm', '100 N*m', '200 MPa'; optional inputs use ''.
alternating_torqueNoPhysical quantity with unit, e.g. '25 mm', '100 N*m', '200 MPa'; optional inputs use ''.
static_deflectionsNoOptional semicolon list, e.g. '1 mm; 3 mm'; each is a static deflection from one mass acting alone. Max 50.
alternating_bendingNoPhysical 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

B3.2/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does disclose useful model traits: results are elastic steel fatigue estimates, one outer fibre carries the signed loads, fatigue portions are reported separately, and the static check folds mean magnitude with alternating load when only those are given. However, it never states prerequisites for the fatigue path (are yield/ultimate strengths required?), what happens when strengths are omitted, or that the tool is a pure deterministic computation with no side effects.

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?

Five dense sentences that are front-loaded with the core capabilities and have no filler. Some fragments are telegraphic to the point of opacity ('Signed loads at one outer fibre; fatigue parts separate'), but nothing is redundant.

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 27-parameter tool with no annotations, the description covers the analysis model well, and the existing output schema removes the need to document return values. It still leaves an agent unsure which parameter subsets activate which analyses and what material data is mandatory versus optional, which matters at this parameter count.

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 coverage is 100%, so baseline is 3; the description earns that by clarifying the sign convention of the load inputs and how alternating/mean loads interact with the static check. But many schema entries are boilerplate ('Finite dimensionless coefficient', 'Physical quantity with unit, e.g. ...'), and the description never decodes the ka/kb/kc distinction or the kf/kfs stress-concentration factors, leaving the 27-parameter surface only partly illuminated.

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 the resource (a round shaft) and enumerates the specific analyses performed: von Mises/Tresca static stress, Marin endurance correction, and Goodman/Soderberg/Gerber/ASME fatigue, plus optional twist and critical speed. That is far more specific than a restatement of the title. It does not explicitly distinguish itself from the other machine_* tools, but the shaft-specific capability list makes the scope unambiguous.

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?

Usage is only implied through conditional phrasing: twist requires supplying torque/length context, critical speed requires static deflections, and the |mean|+alternating rule applies 'with only alternating/mean loads.' There is no explicit when-to-use or when-not-to-use guidance, and no alternative tool is named for beam bending or pure stress checks.

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