Skip to main content
Glama
mario-2015

FreeCAD MCP Connector

by mario-2015

run_fem_analysis

Run the CalculiX solver on an existing FEM analysis in FreeCAD and obtain summary results including max von Mises stress and displacements.

Instructions

Run the CalculiX solver on an existing Fem::FemAnalysis container and return summary results.

Prerequisites in the document:

  • A Part-derived solid (e.g. Part::Box, PartDesign::Body) acting as the geometry.

  • A Fem::AnalysisPython container created via create_object.

  • A Fem::MaterialCommon assigned to the geometry, added to the analysis.

  • A Fem::FemMeshGmsh referencing the geometry, added to the analysis (the mesh is generated automatically when created via create_object).

  • At least one Fem::ConstraintFixed and one Fem::ConstraintForce (or ConstraintPressure) bound to faces of the geometry, added to the analysis.

A SolverCcxTools is auto-created if the analysis has none.

The solver runs synchronously on the FreeCAD GUI thread and blocks all other RPC calls for its duration; do not fan out parallel requests.

Returns max von Mises stress (MPa), max/min displacement (mm), node count, and the working directory CalculiX wrote to. On failure, returns the prerequisite-check or solver error along with the working directory for triage.

Args: doc_name: Name of the FreeCAD document. analysis_name: Name of the Fem::AnalysisPython object. timeout: Seconds to wait for the solver (default 600). include_screenshot: Whether to return a screenshot of the model (default True). Set to False to save tokens when only the numeric results are needed. view_name: The view orientation of the returned screenshot (default "Isometric").

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
timeoutNo
doc_nameYes
view_nameNoIsometric
analysis_nameYes
include_screenshotNo
Behavior5/5

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

With no annotations, the description carries full burden and does well: it reveals auto-creation of SolverCcxTools, synchronous blocking on the GUI thread, failure return behavior, and runtime side effects like writing to a working directory. This is exemplary transparency.

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 well-structured and information-dense, with a clear main action, organized prerequisites, behavioral notes, and parameter descriptions. No unnecessary words—each sentence contributes meaning.

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?

Given the complexity of a FEM solver tool with no output schema, the description is highly complete: it specifies prerequisites, return values (max von Mises stress, displacements, node count, working directory), failure modes, and blocking behavior. It provides enough context for an agent to invoke it correctly.

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 description coverage is 0%, so the description fully compensates by explaining each parameter in the Args section. It provides semantic details for timeout, include_screenshot, and view_name, and contextualizes doc_name/analysis_name through the prerequisites list.

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 clearly states the tool's function: 'Run the CalculiX solver on an existing Fem::FemAnalysis container and return summary results.' This specifies a verb (run), resource (CalculiX solver on Fem::FemAnalysis container), and distinguishes it from sibling tools like create_object or execute_code.

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 provides detailed prerequisites and usage context, including document requirements and synchronous blocking behavior with guidance to not fan out parallel requests. It lacks explicit alternatives or exclusions, but clear context is given for when to use the tool.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mario-2015/freecad-mcp-connector-for-claude-desktop'

If you have feedback or need assistance with the MCP directory API, please join our Discord server