Skip to main content
Glama
eng-toolkit

eng-toolkit

by Lin830326

Fatigue Rainflow

fatigue_rainflow

Counts fatigue cycles from stress or force histories using ASTM E1049 three-point rainflow, then estimates Miner damage with Basquin/Goodman-family corrections, histograms, and CSV artifacts.

Instructions

ASTM E1049 three-point rainflow with half-cycle residue, optional hysteresis gate, range histogram and range-mean matrix. Basquin/Goodman-family Miner damage, endurance cutoff or Haibach extension. Uniaxial stress or count-only force histories; at most 1,000,000 samples; CSV artifacts. Reports the history min/max and warns about a dominant cycle (over 50 % of the damage) or isolated single-sample spikes.

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_rainflow"
  }
}

Input Schema

NameRequiredDescriptionDefault
closedNoTrue treats history as periodic: close and rotate to a global maximum; paired residue becomes full cycles.
historyNoFlat JSON number list, e.g. '[0,100,-100,0]'; <=1,000,000 points, 24 MB; '' uses history_file.
repeatsNoNumber of identical history blocks, dimensionless >0..1e12, default 1; damage scales linearly.
basquin_aNoFatigue Basquin coefficient A, e.g. '1000 MPa'; with b enables damage; '' omits or uses sn_points.
basquin_bNoFatigue Basquin slope b, dimensionless -1..-0.00001; used with A; e.g. -0.1.
mean_binsNoEqual-width range-mean matrix mean bins, 1..128, default 20; matrix has at most 32768 cells.
sn_pointsNoAlternative two failure points 'stress,cycles;stress,cycles', e.g. '400 MPa,1000;200 MPa,1e6'; slope b>=-1; '' omits.
below_kneeNonone (default endurance cutoff), elementary (same slope), or haibach (2m-1, m=-1/b) below the knee.none
hysteresisNoPeak-valley reversal gate, same dimension as samples, e.g. '2 MPa'; '' means zero, endpoints retained.
range_binsNoEqual-width histogram range bins, 1..256, default 20; edges include the maximum range.
mean_methodNoPer-cycle correction: none, goodman, gerber, soderberg, morrow, swt or walker; compressive mean gives no benefit.none
history_fileNoNumeric CSV path, one value column or time,value, optional header line, <=48 MB; '' uses inline history.
history_kindNostress for stress counting/damage, force for count-only loads; selects the sample_scale dimension.stress
sample_scaleNoPhysical value of one history unit, e.g. '1 MPa' for stress or '1 N' for force; required in all modes.
walker_gammaNoWalker gamma on amplitude, dimensionless 0..1, default .5; used only for Walker per-cycle correction.
reference_lifeNoCycles over which to distribute block damage as constant amplitude, e.g. '1e6 cycle'; '' omits equivalent range.
yield_strengthNoMaterial tensile yield strength, e.g. '400 MPa'; Soderberg requires it, otherwise optional peak check; '' omits.
endurance_limitNoOptional S-N endurance amplitude, e.g. '150 MPa'; sets knee from A,b; '' means no knee.
ultimate_strengthNoMaterial ultimate tensile strength, e.g. '600 MPa'; required by Goodman/Gerber; '' omits.
fatigue_strength_coefficientNoMorrow fatigue coefficient sigma_f', e.g. '900 MPa'; required by Morrow; '' omits.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.1

TDQS

A3.9/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 does well: it discloses input size limits (1e6 samples, CSV artifacts), that the result reports history min/max, and that warnings fire for a dominant cycle over 50% of damage or isolated single-sample spikes. It stops short of stating whether inputs are mutated or how damage totals are returned, but the behavioral picture is substantially richer than the schema alone.

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?

Front-loaded with the method and standard, then options, then input limits and outputs; no filler sentences. It is dense with domain terminology, which suits the tool but makes it demanding on first read.

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 20-parameter tool with no annotations and no output schema, the description covers method, options, limits, and the shape of key outputs (min/max, warnings). It omits how damage or histograms are actually returned and the role of sample_scale, but the essentials for correct invocation are present.

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 the schema already documents every parameter in detail. The description adds light framing (hysteresis as a 'reversal gate', the Basquin/Goodman family, endurance cutoff vs Haibach extension) but no parameter syntax or constraint beyond what the schema provides, so baseline 3 applies.

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 algorithm and standard ('ASTM E1049 three-point rainflow with half-cycle residue'), names the downstream analysis (Basquin/Goodman-family Miner damage) and the accepted input types. An agent can distinguish this counting/damage tool from fatigue_sn or fatigue_strain_life without opening the schema.

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?

Constrains applicability ('Uniaxial stress or count-only force histories; at most 1,000,000 samples') and notes that compressive mean gives no benefit, which implies usage boundaries. However, it never explicitly says when to pick this over fatigue_sn or the other fatigue siblings, so selection guidance is only implied.

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