Skip to main content
Glama
TommeCAD FreeCAD MCP

TommeCAD FreeCAD MCP

assembly_create_joint

Creates a native persistent assembly joint between two components, resolves connector geometry, and solves the assembly; supports fixed, revolute, slider, cylindrical, and ball joints.

Instructions

Create a native persistent joint, resolve both connectors, and solve.

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": {
      "doc_name": "<doc_name>",
      "assembly_name": "<assembly_name>",
      "joint_type": "<joint_type>",
      "component1": "<component1>",
      "component2": "<component2>"
    },
    "name": "assembly_create_joint"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoRequested joint Name.Joint
vertex1NoOptional first connector vertex; defaults to subelement1.
vertex2NoOptional second connector vertex; defaults to subelement2.
doc_nameYesAssembly owner document Name.
angle_maxNoOptional Revolute/Cylindrical maximum angle in degrees.
angle_minNoOptional Revolute/Cylindrical minimum angle in degrees.
component1YesFirst component link Name.
component2YesSecond component link Name.
joint_typeYesNative joint type.
length_maxNoOptional Slider/Cylindrical maximum travel in mm.
length_minNoOptional Slider/Cylindrical minimum travel in mm.
subelement1NoFirst FaceN, EdgeN, VertexN, or empty whole-component connector.
subelement2NoSecond FaceN, EdgeN, VertexN, or empty whole-component connector.
assembly_nameYesNative Assembly object Name.
offset1_positionNoExactly three finite values.
offset1_rotationNoFirst connector offset XYZ Euler rotation in degrees.
offset2_positionNoExactly three finite values.
offset2_rotationNoSecond connector offset XYZ Euler rotation in degrees.

Output Schema

NameRequiredDescriptionDefault
dataNo
errorNo
statusYes
warningsNo
referencesNo
contract_versionNo1.0

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 at all, the description carries the full burden, and it does supply real behavioral facts: the joint is persistent, connectors are resolved, the assembly is solved, field units override defaults, and mutations should not be blindly retried after a timeout. It still omits permission/auth requirements and what happens to pre-existing joints or the calling document's state.

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 core action is front-loaded in the first sentence and the remaining contract clauses are terse and information-dense for an 18-parameter tool. The 'Legacy return shape preserved' line is the weakest item, since it is opaque without knowing the prior shape.

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 18-parameter mutation with no annotations, the description covers units, the error taxonomy, timeout semantics, and the retry hazard, and an output schema exists to explain return values. What is missing is the sibling relationship (create vs set) and connector-resolution behavior, which matter for correct invocation ordering.

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; the description earns an extra point by declaring the unit contract (length mm, area mm^2, volume mm^3, with field units overriding defaults), which resolves ambiguity about the min/max travel and angle values. It says nothing extra about how component/subelement pairs are matched into connectors, though.

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?

States a specific verb and resource ('Create a native persistent joint') plus the follow-on actions ('resolve both connectors, and solve'), which tells an agent exactly what the call produces. It does not, however, differentiate itself from nearby siblings such as assembly_set_joint or assembly_check_joint_sweep, so the agent must infer the create-vs-set distinction.

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?

The only usage-shaped advice is 'explicit internal names recommended', which is a naming convention rather than when-to-use guidance. There is no statement of when to prefer this over assembly_set_joint, no prerequisite ordering relative to assembly_add_component or assembly_set_grounded, and no exclusions.

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