Skip to main content
Glama
eng-toolkit

eng-toolkit

by Lin830326

Mech Beam Bending

mech_beam_bending

Computes support reactions, maximum shear, bending moment, deflection, and bending stress for simply supported or cantilever beams under point or uniform loads.

Instructions

Closed-form single-span beam: simply supported or cantilever, with one point load or a uniform load over the whole span. Returns support reactions, maximum shear, maximum bending moment, maximum deflection and maximum bending stress (Euler-Bernoulli, linear elastic, self-weight ignored). Section: rectangle, circle, tube, or custom second moment of area and extreme-fibre distance.

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": {
      "length": "<length>",
      "load": "<load>"
    },
    "name": "mech_beam_bending"
  }
}

Input Schema

NameRequiredDescriptionDefault
loadYesPoint load as a force, e.g. '5 kN', or for load_type 'udl' a force per length, e.g. '10 kN/m'
widthNoRectangle width b (parallel to the neutral axis), e.g. '50 mm'
heightNoRectangle height h (in the load direction), e.g. '100 mm'
lengthYesSpan (simply supported) or length from wall to free end (cantilever), e.g. '2 m'
sectionNo'rectangle' (width, height), 'circle' (diameter), 'tube' (diameter, inner_diameter) or 'custom' (second_moment, extreme_fiber). Bending is about the axis parallel to the width; the load acts along the height.rectangle
supportNo'simply_supported' or 'cantilever'simply_supported
diameterNoCircle or tube OUTER diameter, e.g. '40 mm'
positionNoPoint load only: distance from the left support (or from the wall for a cantilever), e.g. '0.5 m'. Empty = midspan (simply supported) or the free end (cantilever).
load_typeNo'point' (one concentrated load) or 'udl' (uniform over the whole length)point
unit_systemNoUnit system of the results: 'metric' (kN, N*m, mm, MPa) or 'imperial' (lbf, lbf*ft, inch, ksi)metric
extreme_fiberNoCustom section: distance c from the neutral axis to the extreme fibre, e.g. '50 mm'
second_momentNoCustom section: second moment of area I, e.g. '4.17e6 mm^4'
inner_diameterNoTube inner diameter, e.g. '32 mm'
elastic_modulusNoYoung's modulus E, e.g. '210 GPa' (steel), '70 GPa' (aluminium)210 GPa
allowable_stressNoOptional allowable bending stress, e.g. '160 MPa'. 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

A4.2/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full burden, and it does disclose the key modeling assumptions an agent needs to judge validity: closed-form, Euler-Bernoulli, linear elastic, self-weight neglected, and that a UDL spans the full length. It omits sign conventions, error behavior for inconsistent section inputs, and unit-validation behavior, which keeps it below a 5.

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?

Three compact sentences ordered as purpose/scope → returns → supported sections, with no filler and no repetition of the name or title. The most decision-relevant constraints (support types, single load, span) are front-loaded.

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?

The tool is fairly complex (15 parameters, conditional section geometry), but the schema is fully documented and an output schema exists, so the definition is not obliged to spell out return fields or validate parameter combinations. It is nearly complete, with small gaps around sign convention, unit-string formatting expectations, and which inputs are ignored for which section types.

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% and the schema descriptions are richer than the definition (per-section requirements, defaults, examples). The description only summarizes the section family and load types already documented in the schema, adding little new meaning beyond a restatement, so the 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 verb and resource ('closed-form single-span beam') and immediately bounds the scope: simply supported or cantilever, one point load or a UDL over the whole span. It also names the outputs (reactions, max shear, moment, deflection, stress) and the supported sections, so an agent knows exactly which physical problem class it solves and can distinguish it from the sibling mech_* checks.

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?

The description scopes applicability tightly — single-span, one load only, whole-span UDL — which implicitly excludes multi-span, multi-load and partial-UDL cases, and it states the governing theory (Euler-Bernoulli, linear elastic, self-weight ignored). What it lacks is explicit routing language such as 'for a cantilever with two point loads, do not use this tool'; no alternatives are named.

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