Skip to main content
Glama

FERS — structural FEM

Configure the analysis

set_analysis
Read-onlyIdempotent

Configure HOW a model is solved, and switch on the analyses the engine supports beyond plain statics. Writes analysis.options (first- vs second-order, P-Delta, self-weight, gravity, shear deformation, tolerances) and the three optional blocks: analysis.modal (natural frequencies), analysis.buckling (linear eigenvalue alpha_cr) and analysis.seismic (EN 1998-1 response spectrum / lateral force). Pass only what you want to change — each sub-object is merged into the existing block, so load cases, combinations and unity checks are preserved. Returns the updated model for solve_model. KEY FACTS: models from create_beam, create_frame and build_model are LINEAR (the engine itself has no default and requires order; the Python SDK defaults to NONLINEAR), so set order:"NONLINEAR" for second-order/P-Delta. Those models include shear deformation (include_shear_deformation: true, the engine default); options {"include_shear_deformation": false} gives the bending-only answer a textbook formula assumes. Buckling needs exactly one reference form (reference / references / all_combinations) and reports alpha_cr as results.buckling.modes[].critical_load_factor. Seismic directions are GLOBAL AXES and these models are Y-up, so the two horizontal directions are usually X and Z. Unknown field names are REJECTED here on purpose: the solver would accept them, ignore them, and silently give you a default. Call get_schema("BucklingAnalysisSettings") etc. for the exact fields.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "set_analysis"
  }
}

Input Schema

NameRequiredDescriptionDefault
clearNoOptional JSON array of blocks to delete first, e.g. ["modal","buckling"].
modalNoModalAnalysisSettings, e.g. {"num_modes":6,"mass_formulation":"CONSISTENT"}. Pass "null" to remove the block.
modelNoStringified FERS model JSON to update
optionsNoAnalysisOptions fields to merge, as a JSON object. e.g. {"order":"NONLINEAR","nonlinear_method":"P_DELTA","enable_self_weight":true,"self_weight_load_case_id":1}. Self-weight reaches a combination only through its load case: point self_weight_load_case_id at the permanent-load case (G) your combinations factor. See get_schema("AnalysisOptions").
seismicNoSeismicAnalysisSettings, e.g. {"method":"MODAL_RESPONSE_SPECTRUM","num_modes":30,"directions":["X","Z"],"spectrum_x":{"EurocodeParametric":{"ag":2.45,"ground_type":"C","spectrum_type":"TYPE1","q":3.0,"beta":0.2}},"mass_sources":[{"load_case_id":1,"psi":1.0}]}. Pass "null" to remove.
bucklingNoBucklingAnalysisSettings, e.g. {"num_modes":3,"reference":{"LoadCombination":1},"member_effective_lengths":true}. Needs exactly one of reference / references / all_combinations. Pass "null" to remove.
model_refNoHandle from stash_model, used INSTEAD of `model`. Avoids sending the whole document on every step; the tool returns the same handle back.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / options / description
      Previous value: -"AnalysisOptions fields to merge, as a JSON object. e.g. {\"order\":\"NONLINEAR\",\"nonlinear_method\":\"P_DELTA\",\"enable_self_weight\":true}. See get_schema(\"AnalysisOptions\")."New value: +"AnalysisOptions fields to merge, as a JSON object. e.g. {\"order\":\"NONLINEAR\",\"nonlinear_method\":\"P_DELTA\",\"enable_self_weight\":true,\"self_weight_load_case_id\":1}. Self-weight reaches a combination only through its load case: point self_weight_load_case_id at the permanent-load case (G) your combinations factor. See get_schema(\"AnalysisOptions\")."
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Adds a great deal beyond the annotations: partial-update merge semantics ('each sub-object is merged into the existing block, so load cases, combinations and unity checks are preserved'), deliberate rejection of unknown fields where the solver would silently default, engine-vs-SDK default divergence, the exactly-one-reference-form constraint for buckling, the alpha_cr output path, and that seismic directions are global axes on a Y-up model. Its 'returns the updated model' / 'returns the same handle back' wording is consistent with readOnlyHint, since the mutation is expressed in the returned document rather than persisted state.

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?

Front-loaded with the core purpose and the merge/rejection contract, then grouped under a clear 'KEY FACTS' block; every sentence carries operational content and nothing is filler. It is dense and heavily capitalized, which costs a little readability, but the length is justified by the number of non-obvious gotchas covered.

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 7-parameter, no-output-schema mutation tool this is complete: it explains what is merged vs preserved, the enumeration constraint for buckling, the output location for alpha_cr, the axis convention for seismic, and the handoff to solve_model and get_schema. An agent has everything needed to call it correctly on the first attempt.

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% and the schema already documents most parameters, including the reference/references/all_combinations note for buckling, so the baseline is 3. The description still earns credit above baseline for semantics the schema does not carry: what model_ref is for (avoid resending the document), that options merges rather than replaces, the self-weight load-case routing to the permanent G case, and that seismic directions are global X/Z on Y-up models.

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?

Opens with a specific verb+resource plus scope beyond the obvious: 'Configure HOW a model is solved, and switch on the analyses the engine supports beyond plain statics', then enumerates exactly what it writes (analysis.options plus the modal, buckling and seismic blocks). It is clearly distinguished from solve_model (it returns the model *for* solve_model) and from get_schema (which is where exact field lists live).

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?

Gives explicit when/when-not guidance and alternatives: use order:"NONLINEAR" because these models are linear while the Python SDK defaults to nonlinear, use get_schema("BucklingAnalysisSettings") etc. for exact fields, and forward the result to solve_model. It even states a conditional for a subtler case (include_shear_deformation: false to get the textbook bending-only answer).

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.