Skip to main content
Glama
TommeCAD FreeCAD MCP

TommeCAD FreeCAD MCP

fem_create_static_analysis

Create a complete static FEM analysis in FreeCAD: defines material properties, fixed and load constraints, mesh size, and a CalculiX study ready for meshing and solving.

Instructions

Create native material, constraints, mesh and CalculiX analysis; setup is separate from meshing/solving.

Contract: explicit internal names recommended. Length mm, area mm^2, volume mm^3; field units override defaults. Errors: invalid_arguments, document_not_found, object_not_found, transaction_conflict, operation_failed, execution_timeout; transport failures are possible. Timeout is not cancellation: never blindly retry mutations. Legacy return shape preserved.

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": {
      "doc_name": "<doc_name>",
      "source_name": "<source_name>",
      "fixed_references": "<fixed_references>",
      "load_references": "<load_references>",
      "force_direction": "<force_direction>",
      "force_n": "<force_n>",
      "youngs_modulus_pa": "<youngs_modulus_pa>",
      "poisson_ratio": "<poisson_ratio>",
      "density_kg_m3": "<density_kg_m3>",
      "mesh_size_mm": "<mesh_size_mm>"
    },
    "name": "fem_create_static_analysis"
  }
}

Input Schema

NameRequiredDescriptionDefault
mesherNoNative FEM mesher; installed API does not establish runtime qualification.gmsh
force_nYesApplied force magnitude in newtons.
doc_nameYesInternal document Name, never Label/path. Omitted/null uses active document (legacy); pass explicitly.
source_nameYesInternal object Name in the selected document, never Label; must have the type required by this tool.
mesh_size_mmYesPositive length in millimetres.
analysis_nameNoInternal object Name in the selected document, never Label; must have the type required by this tool.Analysis
density_kg_m3YesExplicit material density in kg per cubic metre.
poisson_ratioYesExplicit dimensionless isotropic Poisson ratio.
force_directionYesNonzero dimensionless XYZ force direction; magnitude provided separately in N.
load_referencesYesExact [source_object_name, FaceN/EdgeN/VertexN] loaded-region references.
fixed_referencesYesExact [source_object_name, FaceN/EdgeN/VertexN] support references.
youngs_modulus_paYesExplicit isotropic Young modulus in pascals, converted to native N/mm^2.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.2

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations, the description carries the whole burden and does substantial work: it enumerates the error taxonomy (invalid_arguments, transaction_conflict, operation_failed, execution_timeout), warns that timeout is not cancellation and mutations must not be blindly retried, and mentions a preserved legacy return shape. It does not say whether a mid-operation failure leaves partially created material/constraints behind, which matters for a multi-object mutation.

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?

Purpose is front-loaded in the first clause and the remaining 'Contract' block is dense but every line carries operational information (naming, units, errors, retry policy). The telegraphic style ('Contract: explicit internal names recommended') costs some readability but no sentence is pure 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 12-parameter, 10-required physics setup tool with no annotations and no output schema, the description covers units, naming conventions, failure modes, and retry safety. Gaps remain around document/solver preconditions, whether the call triggers a recompute, and what happens to already-created objects on failure.

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 coverage is 100%, so per-parameter meaning is already fully documented and the baseline is 3. The description adds only cross-cutting guidance — internal Name over Label, and the mm / mm^2 / mm^3 unit convention with 'field units override defaults' — which is genuinely new but does not deepen any specific parameter.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb and the concrete artifacts created: 'Create native material, constraints, mesh and CalculiX analysis'. The clause 'setup is separate from meshing/solving' meaningfully separates it from fem_generate_mesh and fem_solve_static, though those siblings are not named. Minor ambiguity remains over whether it actually meshes the body or only wires the setup.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

Usage is implied rather than stated: 'setup is separate from meshing/solving' tells the agent this is a pre-processing step and that other tools follow, but there is no explicit 'use when / do not use when' or named alternative. No preconditions (active document, existing source body, solver availability) are spelled out in guidance form.

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