Skip to main content
Glama
TommeCAD FreeCAD MCP

TommeCAD FreeCAD MCP

mesh_from_shape

Triangulate a FreeCAD shape into a mesh using linear and angular deflection tolerances to control mesh detail, producing a static result with no link to the source shape.

Instructions

Triangulate valid Shape with absolute linear mm/angular rad tolerances; static result, no source dependency.

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>",
      "obj_name": "<obj_name>"
    },
    "name": "mesh_from_shape"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoExplicit internal document or drawing object Name.Mesh
doc_nameYesExplicit internal document or drawing object Name.
obj_nameYesExplicit internal document or drawing object Name.
linear_deflectionNoPositive length in mm.
angular_deflectionNoAbsolute angular triangulation deflection in radians.

Output Schema

NameRequiredDescriptionDefault
dataNo
errorNo
statusYes
warningsNo
referencesNo
contract_versionNo1.0

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.2

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden and does well: it discloses that the result is static with no source dependency, lists concrete error codes, warns that timeout is not cancellation, and cautions against blindly retrying mutations. It still does not state permission or authorization requirements or fully clarify mutation/reversibility semantics.

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 description is front-loaded with the core operation and then moves into contract details. It is dense but mostly earns its space through unit, error, and retry guidance; the final 'Legacy return shape preserved' phrase is somewhat cryptic and less actionable.

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 five parameters, an output schema, and no annotations, the description is fairly complete: it covers purpose, units, error taxonomy, and mutation retry caution. It lacks explicit prerequisite or alternative-tool guidance, but return values need not be explained because an output schema exists.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds useful meaning beyond the schema by stating that field units override defaults and by clarifying absolute mm/radian tolerances. It also reinforces that explicit internal names are recommended, which helps interpret the name-related parameters.

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: 'Triangulate valid Shape' with linear and angular tolerances. It is clear what the tool does, but it does not explicitly distinguish itself from sibling mesh tools such as mesh_to_shape, fem_generate_mesh, or mesh_create.

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?

The description implies the tool applies to a 'valid Shape' but gives no explicit guidance on when to use it versus alternatives. It does not name any sibling tool or state when this tool should be avoided in favor of another meshing or shape operation.

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