Skip to main content
Glama

FERS — structural FEM

Add a load

add_load
Read-only

Add ONE load of any kind to an existing load case. Choose kind: "nodal_force" (force at a node), "nodal_moment" (moment at a node — direction is the moment AXIS, right-hand rule), "distributed" (line load along a member; covers uniform, TRAPEZOIDAL/TRIANGULAR via end_magnitude, and PARTIAL via start_frac/end_frac), "member_point_force" / "member_point_moment" (at a fractional position along a member, in global or local axes), "surface" (pressure over a convex planar polygon, distributed onto the coplanar members inside it), "plate_pressure" (pressure on a meshed plate surface). SIGN: direction_x/y/z is a GLOBAL vector — gravity is direction_y = -1. The direction is normalised for you and the whole load stays in magnitude (the raw engine multiplies component-wise, so an unnormalised [0,-2,0] would silently double the load). Distributed intensity is per unit of MEMBER length, not of horizontal projection. A Cable member takes no load along its span (no distributed load, no point load or moment inside it): load its end nodes. Units are the model's own (default N, m) EXCEPT plate_pressure, which must always be in SI pascals. 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": {
      "kind": "<kind>"
    },
    "name": "add_load"
  }
}

Input Schema

NameRequiredDescriptionDefault
axesNomember_point_* only: "global" (default) or "local" (member frame, local x along the member).
kindYesnodal_force | nodal_moment | distributed | member_point_force | member_point_moment | surface | plate_pressure
nodeNoTarget node id — required for nodal_force / nodal_moment.
modelNoStringified FERS model JSON
memberNoTarget member id — required for distributed / member_point_force / member_point_moment.
polygonNosurface only. >= 3 vertices, planar and CONVEX, e.g. [[0,0,0],[6,0,0],[6,0,4],[0,0,4]]. Only members lying exactly in that plane receive load.
end_fracNodistributed only. Where it ends, 0..1 (default 1).
positionNoFraction along the member, 0 = start node, 1 = end node. Required for member_point_*. Clamped to [0,1] (the engine does not range-check it).
magnitudeNoLoad size, always positive — put the sense in direction_x/y/z. Force / force*length / force per length / force per area depending on kind.
model_refNoHandle from stash_model, used INSTEAD of `model`. Avoids sending the whole document on every step; the tool returns the same handle back.
projectedNoplate_pressure only. false (default) = pressure on the true area; true = on the projected area (snow-style).
start_fracNodistributed only. Where the line load starts, 0..1 (default 0). Use 0.25/0.75 for a partial UDL over the middle half.
surface_idNoplate_pressure only: id of a model.plate_surfaces[] entry. Prefer this.
direction_xNoX component of the direction (or moment axis). Default 0.
direction_yNoY component. Gravity is -1 in these Y-up models. Default 0.
direction_zNoZ component. Default 0. At least one component must be non-zero.
load_case_idNoid of the load case to append to (from add_load_case)
end_magnitudeNodistributed only. Intensity at end_frac. Omit for uniform; set it different from magnitude for a TRAPEZOID; magnitude 0 + end_magnitude w gives a TRIANGLE. There is no separate shape field — the shape IS these numbers.
distribution_dxNosurface only, optional: X of the span direction the load is carried in.
distribution_dyNosurface only, optional: Y of the span direction.
distribution_dzNosurface only, optional: Z of the span direction.
plate_element_idNoplate_pressure only: one generated element. Element ids change whenever the mesh changes — prefer surface_id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

The description carries far more than the annotations do: gravity sign convention, the fact that direction vectors are auto-normalised and that unnormalised input would silently double the load, that distributed intensity is per member length rather than horizontal projection, that plate_pressure is always SI pascals while everything else uses model units, and that position is clamped. These are exactly the silent-failure modes an agent needs warned about. The readOnlyHint=true annotation sits in some tension with a tool named 'add_load', but the JSON-in/JSON-out design with `model`/`model_ref` returning the same handle is consistent with a non-mutating computation, so I do not treat it as a contradiction.

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 `kind` enumeration is front-loaded and the critical sign/units caveats follow in a dense but scannable block with caps used for emphasis. The trailing word 'Free.' is vestigial and unexplained, and the single unbroken paragraph is heavier than necessary for this much content.

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 22-parameter, multi-mode tool with no output schema, the description covers every kind, the units divergence, the sign convention, the normalization trap, and the cable limitation. Nothing an agent needs in order to invoke it correctly is missing.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, and the description goes beyond it by explaining the direction/magnitude interaction, the sign convention, and the per-member-length basis of distributed intensity. It also clarifies that there is no shape field for trapezoids/triangles, though that point is largely restated from the `end_magnitude` schema text.

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, resource, and cardinality constraint ('Add ONE load of any kind to an existing load case'), then enumerates every supported `kind` with a one-clause gloss. An agent can distinguish this from add_load_case or add_load_combination without opening any schema.

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 gives explicit selection guidance for each `kind` value (e.g. use surface for a polygon carried onto coplanar members, plate_pressure for a meshed plate surface) plus a hard exclusion: cables take no load along their span, so load the end nodes instead. What it lacks is routing to sibling tools — it never states that add_load_case must exist first, nor contrasts itself with add_load_combination.

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.