Skip to main content
Glama
TommeCAD FreeCAD MCP

TommeCAD FreeCAD MCP

partdesign_hole

Create positioned holes in FreeCAD PartDesign from sketch center points, with configurable diameter, depth, threading, counterbore, or countersink options.

Instructions

Create a hole feature (positioned by sketch points).

Args:
    sketch_name: Sketch with center point(s) for hole positions
    diameter: Hole diameter in mm
    depth: Hole depth in mm
    threaded: Create threaded hole
    thread_size: Thread size (e.g., 'M6', 'M8', 'M10')

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": {
      "sketch_name": "<sketch_name>",
      "diameter": "<diameter>",
      "depth": "<depth>"
    },
    "name": "partdesign_hole"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoRequested internal name for a new object/document; FreeCAD may uniquify it. Use the returned name.Hole
depthYesdepth: mm, feature_local.
cut_typeNoHole entry style: simple, counterbore, or countersink.simple
diameterYesdiameter: mm, feature_local.
doc_nameNoInternal document Name, never Label/path. Omitted/null uses active document (legacy); pass explicitly.
threadedNoEnable simplified threaded-hole metadata; not a manufacturing or strength guarantee.
cut_depthNocut_depth: mm, feature_local.
sketch_nameYesInternal object Name in the selected document, never Label; must have the type required by this tool.
thread_sizeNoNative thread size (e.g. M6x1.0); legacy M6 selects first matching diameter in runtime enum.M6
thread_typeNoISO or UTS alias, or native FreeCAD ThreadType enumeration; unsupported values fail.ISO
through_allNoTrue cuts through all and ignores length; false uses the specified pocket length.
cut_diameterNocut_diameter: mm, feature_local.
thread_pitchNothread_pitch: mm, feature_local.
countersink_angleNocountersink_angle: deg, feature_axis.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.2

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations supplied, the description carries the full burden, and it only partly does: it discloses error categories, that timeout is not cancellation, and that mutations must not be blindly retried, which is genuinely useful. But it never states that this is a mutating, history-affecting operation on the active document, whether the source sketch is consumed/hidden, or what happens if no active body exists — the behavioral gaps dominate for a 14-parameter creation tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose line is well front-loaded, but the Args block largely duplicates schema descriptions verbatim, and the 'Contract' paragraph is generic boilerplate about units, error codes, and return shape rather than tool-specific information. It is readable and organized, but a meaningful share of the text does not earn its place.

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?

For a 14-parameter mutation with no annotations, the description covers units, error taxonomy, and naming conventions, and an output schema exists so return values need not be explained. It is still missing the surrounding context an agent needs — which body/document the feature lands in, sketch prerequisites, and how the counterbore/countersink options interact with cut_depth and cut_diameter.

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 coverage is 100%, so the schema already documents all 14 parameters with units and defaults, making 3 the baseline. The Args block only restates 5 of them (and the thread_size examples 'M6'/'M8'/'M10' are less precise than the schema's native 'M6x1.0' note), so it adds little beyond duplication; cut_type, through_all, countersink_angle, and doc_name get no treatment in prose.

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 opening line gives a specific verb and resource ('Create a hole feature') plus the key positioning mechanism ('positioned by sketch points'), which is more informative than the bare name. However, it never distinguishes this from near-neighbors such as partdesign_pocket or fasteners_mount_threaded_hole, so an agent must infer which is appropriate for a given hole.

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 when-to-use, when-not-to-use, or alternatives guidance at all — nothing says to reach for this instead of a pocket or the fastener hole helper. The only quasi-guidance is 'explicit internal names recommended', which concerns naming, not tool selection. Preconditions (an active body, a sketch containing points) are left unstated.

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