Skip to main content
Glama
TommeCAD FreeCAD MCP

TommeCAD FreeCAD MCP

partdesign_datum

Create a datum plane, axis, or point in a PartDesign body with optional revision-checked support and attachment offset. Define reference geometry for sketches and features.

Instructions

Create a datum plane, axis, or point with an optional revision-checked support and attachment offset.

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": {
      "body_name": "<body_name>",
      "kind": "<kind>"
    },
    "name": "partdesign_datum"
  }
}

Input Schema

NameRequiredDescriptionDefault
xNox: mm, feature_local.
yNoy: mm, feature_local.
zNoz: mm, feature_local.
kindYesDatum kind: plane, axis, or point.
nameNoRequested internal name for a new object/document; FreeCAD may uniquify it. Use the returned name.
doc_nameNoInternal document Name, never Label/path. Omitted/null uses active document (legacy); pass explicitly.
body_nameYesInternal object Name in the selected document, never Label; must have the type required by this tool.
rotation_xNorotation_x: deg, feature_axis.
rotation_yNorotation_y: deg, feature_axis.
rotation_zNorotation_z: deg, feature_axis.
support_selectionNoRevision-checked same-document support; sketch attachment requires a planar face, datum kind determines face/edge/vertex compatibility.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.2

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose useful behavior: the enumerated error codes, the warning that timeout is not cancellation and mutations must not be blindly retried, revision-checked supports that cannot be manufactured, and a preserved legacy return shape. What it omits is equally important for a mutation tool - whether the body must be in edit mode, whether creation is undoable, and whether a transaction is opened implicitly.

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?

Two compact blocks: purpose first, then a terse contract line covering naming, units, errors, and retry semantics. Dense but front-loaded and free of filler, though the semicolon-chained contract sentence is harder to scan than separate lines would be.

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 an 11-parameter mutation tool with a full-coverage schema and an output schema, the description supplies the missing operational context: error taxonomy, timeout/retry caution, unit conventions, and revision semantics. Only the workflow prerequisites (active body/edit mode, transaction expectations) are left unstated.

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 real meaning beyond the schema: units (mm, mm^2, mm^3) with field-level units overriding defaults, and the framing of support_selection as revision-checked and kind-dependent in its face/edge/vertex compatibility. The 'attachment offset' phrase loosely covers the x/y/z and rotation parameters without adding detail the schema lacks.

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 sentence names a specific verb and resource set (create datum plane, axis, or point) plus the optional support and offset modifiers, which is enough to separate it from the feature-creation siblings like partdesign_pad or partdesign_pocket. It stops short of explicitly stating how it differs from other partdesign tools, but the resource noun 'datum' is unambiguous.

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 guidance: nothing says when an agent should create a datum versus a sketch or a feature, nor any prerequisite such as needing an active body or edit mode. The only directive-style content ('explicit internal names recommended', 'pass explicitly') concerns argument hygiene, not tool selection.

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