Skip to main content
Glama
eng-toolkit

eng-toolkit

by Lin830326

Mech Spring Compression

mech_spring_compression

Calculate round-wire helical compression spring rate, Wahl-corrected stress, deflection or load, solid height, and stroke. Check buckling and allowable-shear utilization for static designs.

Instructions

Round-wire helical compression spring: spring rate k = Gd^4/(8D^3*Na), spring index, Wahl factor, solid height and total coils from the end type. With a 'load' or a 'deflection' it also returns the other, the Wahl-corrected shear stress and (with 'allowable_shear') the utilization; with 'free_length' it returns the stroke to solid and warns about buckling. Static loading 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": {
      "wire_diameter": "<wire_diameter>",
      "mean_diameter": "<mean_diameter>",
      "active_coils": "<active_coils>"
    },
    "name": "mech_spring_compression"
  }
}

Input Schema

NameRequiredDescriptionDefault
loadNoOptional axial load F, e.g. '100 N'. Gives deflection and stress. Give this OR deflection.
end_typeNo'squared_ground' (default), 'squared', 'plain_ground' or 'plain' ends; sets total coils and solid heightsquared_ground
deflectionNoOptional compression y, e.g. '10 mm'. Gives load and stress. Give this OR load.
free_lengthNoOptional free length L0, e.g. '50 mm'. Gives the stroke to solid, the solid load and the buckling check.
unit_systemNoUnit system of the results: 'metric' (kN, N*m, mm, MPa) or 'imperial' (lbf, lbf*ft, inch, ksi)metric
active_coilsYesNumber of active coils Na (may be fractional), e.g. 8
mean_diameterYesMean coil diameter D (outer minus wire) with unit, e.g. '16 mm'
shear_modulusNoShear modulus G of the wire, e.g. '79.3 GPa' (typical carbon / music-wire steel)79.3 GPa
wire_diameterYesWire diameter d with unit, e.g. '2 mm'
allowable_shearNoOptional allowable shear stress, e.g. '800 MPa' (from the wire material data). Gives the utilization.

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.8/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 behavioral burden and does so well: it discloses the conditional outputs tied to load, deflection, allowable_shear, and free_length, and warns that buckling checks are triggered. It omits failure modes such as fatigue or surge, but the static-only caveat covers the main limitation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is a single dense sentence stitched together with semicolons; there is no wasted filler, but the front-loaded formula and chained conditionals make it harder to scan than a short structured layout would. The content is efficient but the structure is not.

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?

An output schema exists, so return values need not be explained. The description covers the calculation, the optional-input effects, and the static-loading limitation, leaving only minor gaps such as unit-consistency expectations that the schema already addresses.

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 the schema already documents every parameter including the load/deflection mutual option and the end_type choices. The description reinforces the relationships between load, deflection, allowable_shear, and free_length but adds little syntax or format detail beyond what the schema provides.

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 specific artifact (round-wire helical compression spring) and enumerates the computed quantities (spring rate, index, Wahl factor, solid height, total coils), which clearly distinguishes it from the beam, bearing, and bolt siblings. It stops short of a clean verb-first statement, leading with a formula instead, but the purpose is unambiguous.

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 states the operating envelope ('Static loading only') and explains how optional inputs change the result ('With a load or a deflection it also returns the other...'). It gives no explicit when-not-to-use guidance beyond static loading and does not name an alternative tool, but no alternative within this catalog performs the same calculation.

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