Skip to main content
Glama

FERS Structural Analysis

Add a cross-section

create_section
Read-only

Add or replace a cross-section on an existing FERS model and optionally assign it to members. Takes the model JSON, mutates model.sections (and model.materials when a new preset is introduced), returns the model.

THREE WAYS TO DEFINE IT:

  1. LIBRARY — shape:"library" with library_name (or just name) set to a library profile — European IPE/HEA/HEB/HEM/UPE/RHS/SHS/CHS/L or UK UB/UC/PFC, e.g. "IPE300", "HEB240", "CHS 114.3x5", "RHS 100x50x5", "UB 457x191x67". This is the ONLY way to get exact rolled-profile properties (root fillets included) and it carries every EC3 modulus. Prefer it whenever a standard profile fits.

  2. PARAMETRIC — shape:"rect" (h_mm, b_mm), "circle" (d_mm), "chs" (d_mm, t_mm), "rhs"/"shs"/"box" (h_mm, b_mm, t_mm) or "i" (h_mm, b_mm, tf_mm, tw_mm), dimensions in MILLIMETRES. rect/circle/chs are exact and rhs area+inertias are exact (its Bredt torsion J is ~2% low), but the "i" generator assumes SHARP fillets: against a real rolled IPE300 it is 3.6% low on area, 4.3% low on i_z and 22% low on J. Use "i" for WELDED plate girders, not for rolled profiles.

  3. CUSTOM — shape:"custom" with your own SI numbers. area, i_y, i_z and j are all MANDATORY and strictly positive; a missing one is a hard parse error and a MISTYPED one is silently ignored (Section has no deny_unknown_fields), giving a wrong answer that still solves.

AXIS CONVENTION: local z is the STRONG axis. For depth h and width b, i_z = b·h³/12 (strong, resists gravity on a horizontal member) and i_y = h·b³/12 (weak). Getting these the wrong way round is the most common authoring error and the solver cannot detect it.

EC3 CHECKS NEED MORE THAN STIFFNESS. An Ec3Steel check on a section lacking wel_y/wpl_y/i_w does not fail — it returns utilization 0.0, status Green and an explanatory message, which reads as a clean pass. So also give wel_y, wel_z, wpl_y, wpl_z and i_w (warping constant, m⁶); the parametric shapes compute these for you. Optionally add ec3 {"section_class":1,"buckling_curve_y":"B","buckling_curve_z":"C","buckling_curve_lt":"B"} — curves A0/A/B/C/D (alpha 0.13/0.21/0.34/0.49/0.76); omitting the block silently uses curve b. Unlike the rest of the section, the ec3 block DOES reject unknown keys, so a typo there is a hard solve-time error.

ASSIGNMENT: apply_to "all" reassigns every member, a JSON array of member ids reassigns those, a classification string reassigns every member in that group. A section whose name already exists is overwritten IN PLACE, keeping its id and all existing member references.

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

Input Schema

NameRequiredDescriptionDefault
jNoTorsion constant, m⁴.
ec3NoEN 1993-1-1 design parameters: {"section_class":1,"buckling_curve_y":"a","buckling_curve_z":"b","buckling_curve_lt":"c"}. Unlike the rest of Section, a typo here IS a hard error.
i_wNoWarping constant, m⁶.
i_yNoSecond moment about local y, m⁴.
i_zNoSecond moment about local z (STRONG axis), m⁴.
a_syNoShear area along local y, m².
a_szNoShear area along local z, m².
areaNoArea in m² (required for shape 'custom').
b_mmNoWidth in MILLIMETRES.
d_mmNoDiameter in MILLIMETRES (circle/chs).
h_mmNoDepth in MILLIMETRES.
nameYesName for the section in this model.
t_mmNoWall thickness in MILLIMETRES.
modelNoStringified FERS model JSON
shapeNolibrary (default when library_name is given) | rect | circle | chs | rhs | shs | box | i | custom. Prefer "library" for a standard profile: the parametric "i" generator has sharp fillets and is ~4% low on area and ~22% low on J versus a real rolled IPE300.
tf_mmNoFlange thickness in MILLIMETRES.
tw_mmNoWeb thickness in MILLIMETRES.
wel_yNoElastic modulus about y, m³.
wel_zNoElastic modulus about z, m³.
wpl_yNoPlastic modulus about y, m³.
wpl_zNoPlastic modulus about z, m³.
apply_toNo"all", a JSON array of member ids, or a classification string — assigns the section to those members.
materialNoMaterial preset for this section (see list_materials).
model_refNoHandle from a builder or stash_model, used INSTEAD of `model`. Avoids sending the whole document on every step; the tool returns the same handle back.
library_nameNoLibrary section name, e.g. IPE300 (see list_sections).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / model_ref / description
      Previous value: -"Handle from stash_model, used INSTEAD of `model`. Avoids sending the whole document on every step; the tool returns the same handle back."New value: +"Handle from a builder or stash_model, used INSTEAD of `model`. Avoids sending the whole document on every step; the tool returns the same handle back."
  2. First observed

TDQS

A4.1/5.0
Behavior1/5

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

The description states plainly that the tool "mutates model.sections (and model.materials when a new preset is introduced)" and that apply_to "reassigns every member," yet the annotations declare readOnlyHint=true. Marking a member-reassigning mutation as read-only is a direct contradiction an agent could act on wrongly. The otherwise excellent disclosure of silent-failure modes (EC3 utilization 0.0 reading as Green, unknown keys ignored in Section but rejected in ec3) does not offset this conflict.

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?

The description is long but front-loaded and organized under labeled sections (THREE WAYS, AXIS CONVENTION, EC3 CHECKS, ASSIGNMENT), and nearly every sentence carries a decision-relevant fact such as the 22% J error for the "i" generator. It is dense rather than padded, though the length is at the upper limit for a tool description.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 25-parameter tool with no output schema, the description covers the input contract (units, required fields, shape routing), the failure modes (hard parse errors versus silent wrong answers), and the return ("returns the model", handle returned for model_ref). Nothing an agent needs to call it correctly is missing — the only deficiency is the read-only mislabel, which is an annotation problem rather than a description gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is already 100%, yet the description still adds real meaning: the strong-axis convention with explicit formulas (i_z = b·h³/12 for depth h) and the warning that swapping them is undetectable, the mandatory-and-strictly-positive rule for custom area/i_y/i_z/j, the m⁶ unit for i_w, and the concrete apply_to semantics for "all", member-id arrays, and classification strings.

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?

The opening sentence gives a specific verb and resource — "Add or replace a cross-section on an existing FERS model" — plus the optional assignment behavior, and states the return value ("returns the model"). It is immediately distinguishable from siblings such as get_section and list_sections, which are referenced as read-side lookups.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit routing guidance is given for the three definition modes: prefer "library" whenever a standard profile fits, use parametric "i" only for welded plate girders, and reserve "custom" for your own SI numbers. It also states when the section is preferred (exact rolled profiles with root fillets, every EC3 modulus) and names the lookups (list_sections, list_materials) needed to supply valid inputs.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.