Skip to main content
Glama
freecad-mcp

freecad-mcp

freecad_extrude

Create a 3D solid by extruding a 2D wire or face along a specified direction in FreeCAD. Provide the object name and direction vector to control the result.

Instructions

Extrude a 2D wire/face along a direction to create a 3D solid (Part Extrude, not PartDesign Pad)

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_extrude"
  }
}

Input Schema

NameRequiredDescriptionDefault
dirXNoX component of extrusion direction (default 0)
dirYNoY component of extrusion direction (default 0)
dirZNoZ component of extrusion direction (default 10)
nameNoName for the extruded object
solidNoCreate a solid (default true)
objectNameYesName of the 2D shape/wire to extrude

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden; it does disclose that this is a mutation creating a new solid object and clarifies the Part vs PartDesign semantic. It omits whether the source shape is preserved, whether a recompute is triggered, and what happens on non-planar input — meaningful gaps for a mutation tool with zero annotation coverage.

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?

A single sentence with the core purpose front-loaded and a compact disambiguating parenthetical; no wasted wording.

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 six-parameter, well-documented CAD operation with no output schema, the description covers purpose and the key workbench distinction. It lacks prerequisite and return-value context (what object name/handle comes back), which is a minor but real gap rather than a blocker.

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% and each parameter (dirX/dirY/dirZ, name, solid, objectName) is documented in the schema, so baseline 3 applies. The description adds only the high-level notion of extruding "along a direction" and that objectName is a 2D wire/face, which is already effectively in the schema.

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?

States a specific verb and resource ("Extrude a 2D wire/face ... to create a 3D solid") and explicitly distinguishes itself from the PartDesign Pad sibling/alternative, so an agent can tell which operation it is without opening the schema.

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?

The parenthetical "Part Extrude, not PartDesign Pad" gives a partial exclusion that steers agents away from the PartDesign route. However, it never states when PartDesign Pad would be the better choice, nor the prerequisite that a 2D wire/face must already exist in the document, so usage is only implied.

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