Skip to main content
Glama

FEM Run

fem_run
Destructive

Run small CalculiX finite element analyses synchronously, blocking until completion (up to 600 s) and returning results—ideal for coarse-mesh linear static solves that finish in seconds.

Instructions

Run the CalculiX solver on an analysis. BLOCKS the MCP channel until the solve finishes (up to 600 s).

Which to reach for: fem_run for small solves — a coarse mesh, linear static, a few thousand nodes — that finish in seconds, where a poll round-trip only adds latency. fem_run_submit for anything that may take a minute or more (fine or 2nd-order meshes, modal/buckling with many modes, nonlinear material or geometry), so the channel stays free while ccx runs.

workdir defaults to <TMPDIR>/ankusdrive_fem. Raises if ccx exits non-zero (with its *ERROR lines), or if a fem_run_submit solve is still running on this analysis or workdir. Returns {workdir, status: 'ok', returncode, analysis_type, result_objects, analysis}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
workdirNo
analysisYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the annotations, the description discloses critical runtime behavior: it blocks the MCP channel up to 600 seconds, raises on non-zero ccx exit with *ERROR lines, raises if a fem_run_submit solve is still running, and specifies the returned fields. This is rich, actionable behavioral context that the annotations alone do not provide.

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?

The description is longer than average, but every sentence earns its place: blocking behavior, selection guidance, workdir default, error conditions, and return payload. The most important facts are front-loaded, and the structure flows logically from invocation to error handling to results.

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?

Given the complexity of a blocking solver call, the description covers a great deal: timeout, alternatives, defaults, error modes, and return fields. The main gap is that the required 'analysis' parameter is not explained at all, which prevents the definition from being fully self-sufficient despite strong coverage elsewhere.

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

Parameters2/5

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

Schema description coverage is 0%, so the description must compensate for the undocumented parameters. It explains the workdir default and semantics, but 'analysis' is left opaque — no indication of whether it is an ID, name, path, or how it should be obtained. This is a meaningful gap for a required parameter.

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 description opens with a precise verb and resource: 'Run the CalculiX solver on an analysis.' It also distinguishes itself from the sibling fem_run_submit by framing it as the synchronous, blocking variant, so an agent can tell them apart immediately 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 Guidelines5/5

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

The description explicitly gives selection criteria: use fem_run for small solves that finish in seconds, and fem_run_submit for anything taking a minute or more. It names the alternative directly and explains the trade-off (poll latency vs. channel availability), leaving no ambiguity about when to choose this tool.

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