Skip to main content
Glama
maximedns5

freecad-mcp

by maximedns5

pad

Extrude a fully-constrained sketch into a solid, verifying the result with volume and validity checks to confirm material was added.

Instructions

Extrude a fully-constrained sketch into a solid (PartDesign::Pad).

Fails if the sketch is not fully constrained, or if the resulting solid
is invalid — always reports volumeBefore/volume/isValid/boundingBox so
you can confirm real material was added, not just that the call
succeeded.

Args:
    doc_name: The name of the document.
    body_name: The name of the PartDesign::Body to add this feature to.
    sketch_name: The name of the fully-constrained profile sketch.
    name: The name to give the new Pad feature.
    length: Extrusion length in mm.
    midplane: Extrude symmetrically about the sketch plane.
    reversed_: Flip the extrusion direction.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes
lengthNo
doc_nameYes
midplaneNo
body_nameYes
reversed_No
sketch_nameYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations provided, the description carries the full burden. It discloses failure conditions (unconstrained sketch, invalid solid) and states that the tool always reports volumeBefore/volume/isValid/boundingBox to confirm actual material addition. This goes beyond the schema, which does not explain the meaning of these output fields.

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 well-structured: a clear purpose statement, followed by failure conditions and output validation, then a list of arguments. It is not overly verbose and front-loads the key information. The argument list is plain text but remains readable and efficient.

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 complex CAD operation with 7 parameters and no annotations, the description covers the essential aspects: purpose, preconditions, failure modes, and parameter meanings. It also mentions output validation. It does not elaborate on the output schema structure (already present in the schema) or prerequisites like document/body existence, which are implied by parameter names. Overall, it is complete enough for an agent to use correctly.

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

Parameters5/5

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

Schema description coverage is 0%, so the description must compensate, and it does thoroughly. It explains all 7 parameters: doc_name, body_name, sketch_name, name, length (in mm), midplane (symmetrical extrusion), and reversed_ (flip direction). Each parameter gets a meaningful explanation, making the tool usable without additional documentation.

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?

The description clearly states a specific action: 'Extrude a fully-constrained sketch into a solid (PartDesign::Pad).' This distinguishes it from sibling tools like pocket (which removes material) and other feature tools. The mention of 'PartDesign::Pad' anchors it to a specific CAD feature type.

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

Usage Guidelines4/5

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

Provides clear context: it is for adding material via extrusion, and it fails under specific conditions (sketch not fully constrained, invalid solid). It also indicates the tool is for cases where you need to verify material was added via the reported volume. However, it does not explicitly contrast with alternatives like pocket or state when not to use it.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/maximedns5/freecad-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server