Skip to main content
Glama
TommeCAD FreeCAD MCP

TommeCAD FreeCAD MCP

assembly_set_joint

Edit joint suppression, connector offsets, and motion limits, then solve the assembly to apply the changes.

Instructions

Edit joint suppression, connector offsets, and supported limits, then 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_name": "<joint_name>"
    },
    "name": "assembly_set_joint"
  }
}

Input Schema

NameRequiredDescriptionDefault
doc_nameYesAssembly owner document Name.
angle_maxNoOptional Revolute/Cylindrical maximum angle in degrees; null leaves unchanged.
angle_minNoOptional Revolute/Cylindrical minimum angle in degrees; null leaves unchanged.
joint_nameYesJoint object Name.
length_maxNoOptional Slider/Cylindrical maximum travel in mm; null leaves unchanged.
length_minNoOptional Slider/Cylindrical minimum travel in mm; null leaves unchanged.
suppressedNoTrue suppresses, false activates, null leaves unchanged.
assembly_nameYesNative Assembly object Name.
offset1_positionNoOptional first connector offset position [x,y,z] in mm; null leaves it unchanged.
offset1_rotationNoOptional first connector XYZ Euler rotation in degrees; null leaves it unchanged.
offset2_positionNoOptional second connector offset position [x,y,z] in mm; null leaves it unchanged.
offset2_rotationNoOptional second connector XYZ Euler rotation in degrees; null leaves it unchanged.

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

A3.7/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 substantial work: it discloses that the call mutates then solves, that null preserves existing values, that timeouts do not mean cancellation and mutations must not be blindly retried, and it enumerates the error codes including transaction_conflict and execution_timeout. Gaps remain around side effects (what re-solving affects, whether dependent components move) and the vague 'Legacy return shape preserved'.

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 purpose is front-loaded in one sentence, followed by a compact 'Contract:' block of unit, error, and retry notes. It is dense and telegraphic but nearly every clause earns its place, with the exception of the trailing 'Legacy return shape preserved', which is unexplained and low value given an output schema exists.

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 12-parameter mutation tool with no annotations, the definition covers the essentials: units, null-preservation, error surface, and timeout/retry safety; return values are covered by the output schema. What is missing is the meaning of the 'then solve' step and its downstream effects, which an agent would want before invoking a mutating assembly operation.

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 documents null-preserves-unchanged semantics, units (mm, degrees), connector roles, and the three-value vector constraint. The description adds only the unit convention summary and the note that field units override defaults; it also mentions area/volume units that no parameter in this schema uses, which adds noise rather than meaning.

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 first sentence gives a specific verb plus resource ('Edit joint suppression, connector offsets, and supported limits, then solve'), which clearly separates it from creation (assembly_create_joint) and read-only inspection siblings. It does not name a sibling explicitly, so the differentiation is inferred from the verb and field list rather than stated.

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?

Usage guidance is implied: edit an existing joint identified by doc/assembly/joint names, with 'explicit internal names recommended' as a naming preference and 'never blindly retry mutations' as a retry rule. There is no explicit statement of when to prefer this over alternatives such as assembly_create_joint or assembly_check_joint_sweep, and no preconditions are spelled out beyond the error list.

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