Skip to main content
Glama
freecad-mcp

freecad-mcp

freecad_mesh_from_shape

Convert a FreeCAD Part shape into a triangulated mesh by setting linear and angular deflection, letting AI clients tessellate solids and surfaces for meshing, export, or analysis.

Instructions

Convert a Part shape to a mesh (tessellate a solid/surface into triangles)

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

Input Schema

NameRequiredDescriptionDefault
nameNoName for the mesh object
objectNameYesName of the Part object to tessellate
linearDeflectionNoMax linear deviation in mm (default 0.1, lower = finer mesh)
angularDeflectionNoMax angular deviation in degrees (default 30)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden, yet it says nothing about the result being an approximation, whether a new mesh object is created (the 'name' parameter hints at it but this is not stated), or that a mesh workbench/document context may be required. It also omits any return information for a write-style operation.

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?

A single front-loaded sentence with zero waste; the parenthetical definition of tessellation is the one useful clarifying clause. It is appropriately sized, though its brevity comes at the cost of the behavioral context noted elsewhere.

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

Completeness3/5

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

With four parameters, no output schema, and no annotations, the definition is only minimally adequate: it explains the conversion but not what is produced, whether inputs are modified, or how errors (e.g. non-Part object) surface. Complete enough to attempt a call, not complete enough to predict its effects.

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 four parameters are already documented in the schema, including the default/tolerance meaning of linearDeflection. The description's 'tessellate into triangles' adds mild conceptual framing but no parameter-level detail beyond the schema; baseline 3 applies.

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?

Names a specific verb (convert/tessellate) and resource (Part shape to mesh), and clarifies the operation as triangulating a solid or surface. The direction of conversion is unambiguous, so an agent can distinguish it from the inverse mesh-to-shape tool.

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 only implied by the operation itself; the description never states when to choose this over freecad_mesh_refine, freecad_mesh_decimate, or freecad_fem_mesh, nor any prerequisite that the Part shape must already exist. An agent can infer the general context but gets no explicit routing guidance.

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