Skip to main content
Glama
TommeCAD FreeCAD MCP

TommeCAD FreeCAD MCP

partdesign_loft

Create a loft between two or more ordered sketch profiles to form a solid, with options for ruled surfaces or a closed profile loop.

Instructions

Create a loft (blend) between multiple sketch profiles.

Args:
    sketch_names: List of sketch names in order (at least 2)
    ruled: Use ruled surfaces (straight edges between profiles)
    closed: Connect last profile back to first

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

Input Schema

NameRequiredDescriptionDefault
nameNoRequested internal name for a new object/document; FreeCAD may uniquify it. Use the returned name.Loft
ruledNoTrue uses straight generators between loft sections; false uses smooth interpolation.
solidNoPartDesign supports only true (solid); false is rejected. Shells belong to Part.
closedNoTrue connects the last loft section to the first; false leaves section sequence open.
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

A3.8/5.0
Behavior4/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 does substantial work: it lists concrete error codes, states that transport failures are possible, and warns that a timeout is not cancellation so mutations must not be blindly retried. It also flags that the return shape is legacy-preserved. What it omits is what the operation does to the feature tree (new Body feature vs. modifying existing) and whether it is undoable.

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 header sentence is front-loaded and the Args list is scannable, while the Contract sentence efficiently bundles units, error taxonomy, and the retry warning. It is slightly redundant to enumerate Args at 100% schema coverage, and 'Legacy return shape preserved' is opaque without further explanation.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a six-parameter mutation tool with no annotations, the description supplies the safety-relevant contract: units, error names, timeout semantics, and name-handling expectations. An output schema exists, so the absence of return-value explanation is fine. An agent has enough to call it correctly and to handle failures.

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%, so the schema already explains name uniqueness, ruled vs. smooth interpolation, closed, doc_name defaults, and the sketch ordering requirement. The description's Args block largely restates those same points at lower fidelity, adding only 'at least 2' and the recommendation to pass explicit internal names rather than relying on the active document.

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 description opens with a specific verb and resource: 'Create a loft (blend) between multiple sketch profiles.' That is unambiguous about the operation and the input type. It does not, however, distinguish this additive PartDesign loft from siblings such as partdesign_subtractive_loft or part_loft, which an agent must reason about on its own.

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?

Useful constraints are given implicitly: 'at least 2' profiles, ordered sketch names in the same document/Body, and 'explicit internal names recommended.' The schema goes further than the description in warning that solid=false is rejected and that shells belong to Part. No explicit when-to-use-versus-alternatives guidance appears, so the agent is left to infer that other loft variants exist.

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