Skip to main content
Glama
eng-toolkit

eng-toolkit

by Lin830326

Fatigue Sn

fatigue_sn

Calculate fatigue life and proportional-load safety factors by fitting S-N data or estimating steel strength with Basquin/Shigley, Marin factors, mean-stress corrections, and notch sensitivity.

Instructions

Basquin S-N fit or Shigley steel estimate with Marin factors; Goodman, Gerber, Soderberg, Morrow, SWT or Walker mean stress and proportional-load safety. Peterson/Neuber notch sensitivity. Uniaxial elastic fatigue; runouts excluded; compressive mean benefit omitted. Safety factors assume PROPORTIONAL loading (mean and alternating grow together): NOT valid for preloaded bolts, where the mean is fixed.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "fatigue_sn"
  }
}

Input Schema

NameRequiredDescriptionDefault
ktNoElastic notch concentration Kt, dimensionless 1..100; multiplies mean and elastic peak stress.
modeNofit, curve, estimate, correction or notch; choose the source of the stress-life calculation.fit
cyclesNoLife for a strength query, e.g. '1e5 cycle'; optional except correction safety requires it or endurance; '' omits.
pointsNoFit records 'stress,cycles[,failure|runout]', e.g. '400 MPa,1000'; ;/newline separators, <=2000; '' omits.
diameterNoEffective round diameter for automatic Marin size, e.g. '20 mm'; 2.79..254 mm; estimate mode; '' omits.
basquin_aNoBasquin amplitude at one cycle, e.g. '1000 MPa'; required in curve mode; '' omits otherwise.
basquin_bNoBasquin log-log slope, dimensionless -2..-0.00001; curve mode, e.g. -0.1.
load_typeNoEstimate/notch basis: bending, axial or torsion; Marin kc=1, .85 or .59; torsion uses shear stress and its Neuber fit.bending
fit_methodNoFit regression: e739 (default; log N on log S, ASTM E739) or s_on_n (log S on log N); fit mode only.e739
knee_cyclesNoEndurance knee, e.g. '1e6 cycle'; optional fit/curve, must match endurance if both supplied; '' omits.
mean_methodNoMean correction: none, goodman, gerber, soderberg, morrow, swt or walker; compressive mean is clamped to zero.none
mean_stressNoNominal signed mean stress, e.g. '50 MPa'; used with an amplitude; negative means receive no benefit.0 MPa
reliabilityNoEstimate reliability percentage: 50, 90, 95, 99, 99.9 or 99.99; rounded Shigley normal-quantile factors.
size_factorNoMarin size factor kb, dimensionless 0..2; 0 requires diameter in estimate mode, axial defaults to 1.
notch_methodNonone, peterson or neuber; a supplied material length overrides the automatic steel correlation.none
notch_radiusNoNotch root radius, e.g. '1 mm'; required for Peterson/Neuber; '' omits with no notch correction.
walker_gammaNoWalker amplitude exponent gamma, dimensionless 0..1; gamma=0.5 gives SWT; used only by Walker.
surface_finishNoEstimate surface: polished, ground, machined, hot_rolled or as_forged; Shigley steel coefficients use Su in MPa.polished
yield_strengthNoTensile yield strength, e.g. '400 MPa'; Soderberg requires it, otherwise optional elastic check; '' omits.
endurance_limitNoFully reversed endurance amplitude, e.g. '200 MPa'; optional fit/curve or correction safety; '' omits.
ultimate_strengthNoTensile ultimate strength, e.g. '600 MPa'; estimate, Goodman/Gerber or automatic notch fit; '' omits.
alternating_stressNoNominal stress amplitude, e.g. '100 MPa'; optional life query; required for correction; '' omits.
temperature_factorNoCaller Marin temperature factor kd, dimensionless >0..2, default 1; estimate mode, no temperature extrapolation.
notch_material_lengthNoPeterson a or Neuber a_N, e.g. '0.1 mm'; optional measured constant for selected notch method; '' uses steel fit.
shear_ultimate_strengthNoShear ultimate Ssu for torsion estimates, e.g. '400 MPa', at most Su; '' uses Shigley Ssu=0.67 Su.
fatigue_strength_coefficientNoFatigue strength coefficient sigma_f', e.g. '900 MPa'; required for Morrow mean correction; '' omits.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.1

TDQS

A4/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 disclosure burden and does well: it states the proportional-loading assumption underpinning safety factors, the invalidity for preloaded bolts, runout exclusion from fits, and clamping of compressive mean to zero benefit. It stops short of describing return contents or error behavior, which matters for a 26-parameter tool with no output schema.

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?

Four dense sentences organized as: capabilities, then modeling domain, then the critical proportional-loading caveat up front rather than buried. Every clause carries engineering content and nothing is repeated from the schema; the telegraphic style suits a highly technical tool.

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?

For a 26-parameter tool with no annotations and no output schema, the description supplies the modeling envelope, governing assumptions, and the most consequential failure mode (preloaded bolts). Missing pieces are modest: no summary of return values and no indication of which mode combinations are mutually exclusive beyond what the schema hints.

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%, and the schema entries already explain units, ranges, defaults, and mode requirements (e.g. basquin_a required in curve mode, Morrow requiring sigma_f'). The description's parameter-related statements largely restate what the schema provides, so the baseline 3 for high coverage is appropriate.

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 specific methods and resources: 'Basquin S-N fit', 'Shigley steel estimate with Marin factors', mean-stress corrections (Goodman/Gerber/Soderberg/Morrow/SWT/Walker), and Peterson/Neuber notch sensitivity. That is far more specific than the title 'Fatigue Sn'. It does not explicitly name siblings such as fatigue_strain_life or fatigue_fracture, so differentiation relies on the agent knowing what 'S-N' implies.

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 applicability boundaries: 'Uniaxial elastic fatigue; runouts excluded; compressive mean benefit omitted' and a strong exclusion for preloaded bolts where the mean is fixed. However, it never routes the agent to an alternative tool when those conditions fail, and it does not explain when to choose 'fit' vs 'estimate' vs 'correction' beyond the schema's mode description.

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