Skip to main content
Glama

FERS Structural Analysis

Add a geometric imperfection

add_imperfection_case
Read-only

Add a geometric imperfection — a global sway (out-of-plumb lean, EN 1993-1-1 §5.3.2) and/or a member bow — bound to specific load combinations. The solver perturbs the geometry before solving those combinations, so it feeds both first-order and P-Delta results. Give the sway as a ratio denominator (200 means a 1/200 lean); it is stored in radians. IMPORTANT: the engine ignores an unknown combination id SILENTLY, so a typo would apply no imperfection at all — this tool rejects unknown ids instead. Free.

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

Input Schema

NameRequiredDescriptionDefault
modelNoStringified FERS model JSON
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.
sway_axis_xNoSway rotation axis X (default 0).
sway_axis_yNoSway rotation axis Y (default 0).
sway_axis_zNoSway rotation axis Z (default 1). The lean direction is axis x height_direction.
height_direction_xNoDirection height is measured along, X (default 0).
height_direction_yNoY (default 1 — these models are Y-up).
height_direction_zNoZ (default 0).
sway_magnitude_radNoSway angle directly in radians, if you would rather not use a ratio (0.005 = 1/200).
translation_axis_xNoBow direction X (default 1).
translation_axis_yNoBow direction Y (default 0).
translation_axis_zNoBow direction Z (default 0).
load_combination_idsYesJSON array of combination ids this imperfection applies to, e.g. [1,2]. Required — an imperfection only affects the combinations it names.
translation_magnitudeNoBow amplitude in model length units. Required when translation_memberset_ids is given.
sway_ratio_denominatorNoSway as 1/N: pass 200 for a 1/200 lean. Converted to radians for you.
translation_memberset_idsNoJSON array of member-set ids to give a bow imperfection, e.g. [1].

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.2/5.0
Behavior4/5

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

Beyond the annotations it discloses real behavior: the solver perturbs geometry before solving the named combinations, the ratio input is stored in radians, and — most valuable — it warns about the engine's silent-ignore of unknown combination ids and states this tool validates instead. It does not describe the returned payload (schema only notes the handle is echoed back), and readOnlyHint=true fits an in-memory model edit persisted later via save_model, so there is no contradiction.

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 sentences, front-loaded: purpose first, mechanism second, the silent-failure hazard third, with the cost note ('Free') as a short trailing signal. Nothing is repeated from the schema and no sentence is filler.

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 16-parameter mutation-style tool with full schema coverage and no output schema, the description covers intent, effect on results, validation behavior, and cost. The only remaining gap is the shape of the response, which the schema hints at but the description never confirms.

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% across all 16 parameters, so the baseline is 3. The description reinforces the sway-ratio-to-radians conversion and the sway/bow duality, but adds nothing about the axis or height_direction parameters that an agent must set to aim the lean correctly.

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 concrete verb and resource — add a geometric imperfection — and enumerates the two supported forms (global sway lean per EN 1993-1-1 §5.3.2 and/or member bow) plus their binding to specific load combinations. That is enough for an agent to distinguish it from siblings like add_load_combination or set_member, which do not perturb geometry.

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 makes the operating context explicit: the imperfection affects only the combinations it names and feeds both first-order and P-Delta results, which tells an agent where in a workflow it belongs. It stops short of naming an alternative or a when-not-to-use condition (e.g., choose sway vs. bow, or skip this when the analysis is set to second-order without imperfections).

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.