Skip to main content
Glama
TommeCAD FreeCAD MCP

TommeCAD FreeCAD MCP

partdesign_subtractive_loft

Cuts a solid by lofting between two or more ordered sketch profiles, creating a subtractive PartDesign feature for shaped cavities and cutouts.

Instructions

Cut a solid using a loft between at least two sketch profiles.

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_names": "<sketch_names>"
    },
    "name": "partdesign_subtractive_loft"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoRequested internal name for a new object/document; FreeCAD may uniquify it. Use the returned name.SubtractiveLoft
ruledNoTrue uses straight generators between loft sections; false uses smooth interpolation.
solidNoPartDesign supports only true (solid); false is rejected. Shells belong to Part.
doc_nameNoInternal document Name, never Label/path. Omitted/null uses active document (legacy); pass explicitly.
sketch_namesYesOrdered internal profile sketch Names in the same document/Body; at least two for loft.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.2

TDQS

A4/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 burden and does real work: it enumerates the error taxonomy, warns that timeout is not cancellation and that mutations must not be blindly retried, and flags that the legacy return shape is preserved. It omits what happens to the consumed sketches/profiles and whether an active Body is required, keeping it short of a 5.

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?

Purpose is front-loaded in the first sentence, followed by a compact 'Contract:' block covering naming, units, errors, and retry policy. Only 'transport failures are possible' and 'Legacy return shape preserved' are near-filler, and both are short enough not to dilute the useful content.

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 mutation tool with no annotations and an output schema that handles return values, the definition covers preconditions, failure modes, and retry safety adequately. The residual gap is domain behavior around sketch consumption and Body/document context, which an agent would still have to discover.

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 all five parameters are already documented, including the internal-name semantics of doc_name and sketch_names and the solid=true-only constraint. The description adds unit conventions (mm, mm^2, mm^3) and the internal-name recommendation, but the unit note mostly concerns return values rather than this tool's length parameters, so it stays at the baseline 3.

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 ('Cut'), a specific resource ('a solid'), and the exact mechanism ('a loft between at least two sketch profiles'). The word 'subtractive' in the name plus 'Cut' in the description cleanly separates it from the additive loft siblings without needing to name them.

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 description supplies a precondition ('at least two sketch profiles') and a naming practice ('explicit internal names recommended'), which implies when the tool applies. However, it never states when NOT to use it or routes the agent to alternatives such as the additive loft or Part-level loft, so the agent must infer the boundary from the name alone.

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