Skip to main content
Glama
freecad-mcp

freecad-mcp

freecad_fem_mesh

Generate a tetrahedral FEM mesh for a FreeCAD object using Gmsh or Netgen, with control over element order and size limits for finite element analysis.

Instructions

Generate a tetrahedral FEM mesh for an object using Gmsh or Netgen

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": {
      "analysisName": "<analysisName>",
      "objectName": "<objectName>"
    },
    "name": "freecad_fem_mesh"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoName for the mesh object
meshOrderNoElement order: 1 (linear) or 2 (quadratic, default)
objectNameYesName of the object to mesh
analysisNameYesName of the FEM analysis
maxElementSizeNoMaximum element size in mm (default 0 = auto)
minElementSizeNoMinimum element size in mm (default 0 = auto)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description must carry the full behavioral burden, but it does not state whether an existing mesh is replaced, whether the analysis must already exist, whether the object must be a solid, or what side effects occur. The only behavioral detail is the mesher choice, which is not exposed as a parameter in the schema.

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 single sentence is front-loaded and free of filler. It is appropriately sized for a short tool description, though it could be slightly more structured to separate purpose from usage context.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a mutation-style mesh generation tool with six parameters and no annotations or output schema, the description is too sparse. It omits prerequisites, side effects, and whether the result is a new mesh object attached to the named analysis, which an agent would need to invoke it correctly.

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 description coverage is 100%, so all six parameters are already documented in the input schema. The description adds no parameter-specific meaning beyond the schema and mentions Gmsh or Netgen even though no corresponding parameter exists, leaving the baseline score appropriate.

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 states a specific verb and resource: generating a tetrahedral FEM mesh. The mention of Gmsh or Netgen adds implementation context that helps distinguish it from generic meshing tools, though it does not explicitly differentiate from siblings such as freecad_mesh_from_shape.

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

Usage Guidelines2/5

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

There is no explicit guidance on when to use this tool versus generic mesh tools or when to prefer Netgen over Gmsh. The required analysisName implies an FEM workflow, but the description itself does not say when this tool is appropriate or what prerequisites must be met.

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