Skip to main content
Glama
TommeCAD FreeCAD MCP

TommeCAD FreeCAD MCP

assembly_check_joint_sweep

Sweep a native joint frame between start and end positions, sample collisions, and restore assembly state to check motion clearance and interference.

Instructions

Solve a native joint-frame sweep, measure collisions and restore state; finite sampling is not continuous certification.

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>",
      "start_position_mm": "<start_position_mm>",
      "end_position_mm": "<end_position_mm>"
    },
    "name": "assembly_check_joint_sweep"
  }
}

Input Schema

NameRequiredDescriptionDefault
samplesNoNumber of solver/collision samples including both endpoints.
doc_nameYesInternal document Name, never Label/path. Omitted/null uses active document (legacy); pass explicitly.
joint_nameYesInternal object Name in the selected document, never Label; must have the type required by this tool.
assembly_nameYesInternal object Name in the selected document, never Label; must have the type required by this tool.
end_position_mmYesFinal native joint Offset1 XYZ position, millimetres.
end_rotation_degNoFinal Offset1 XYZ Euler angles, degrees; null keeps initial orientation.
start_position_mmYesInitial native joint Offset1 XYZ position, millimetres.
start_rotation_degNoInitial Offset1 XYZ Euler angles, degrees; null uses current joint orientation.
contact_tolerance_mmNoContact distance tolerance in millimetres.
volume_tolerance_mm3NoInterference volume threshold in cubic millimetres.
expected_contact_pairsNoExplicit component pairs whose measured overlaps remain visible but are classified expected.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.2

TDQS

B3.4/5.0
Behavior4/5

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

No annotations exist, so the description carries the whole burden and does most of it: it discloses that geometry state is mutated and then restored, enumerates the error taxonomy, and warns that a timeout is not cancellation so mutations should not be blindly retried. Units are stated and the 'legacy return shape preserved' note flags a compatibility quirk. It leaves open whether a transaction is opened and what the sweep results actually contain.

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 sentence and the sampling caveat are front-loaded, and the remaining contract block is telegraphic with no filler sentences. The compressed phrasing ('Contract: ...', semicolon-chained clauses) costs some readability but every clause carries information.

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

Completeness3/5

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

For an 11-parameter mutation-and-restore tool with no annotations and no output schema, the error and timeout guidance is valuable, but the return value is entirely unexplained beyond 'legacy return shape preserved'. An agent knows how to call it but not what a completed sweep returns, such as contact pairs, counts, or whether results persist.

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 every parameter including tolerances and expected_contact_pairs is already documented in the schema. The description adds only the unit contract (mm, mm^2, mm^3, field units override defaults) and reinforces that internal Names rather than Labels are required, which is mostly redundant with the field descriptions. Baseline 3 is appropriate.

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: solve a native joint-frame sweep, measure collisions, restore state. That is clearly distinguishable from a one-shot collision check or a generic part sweep. It stops short of naming a sibling tool to route against, so it is a 4 rather than a 5.

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?

It never states when to call this instead of assembly_check_collisions or a part sweep, nor any precondition such as needing an existing joint of the right type. The only guidance given is a caveat ('finite sampling is not continuous certification') and a naming recommendation, both of which describe constraints rather than 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