Skip to main content
Glama
TommeCAD FreeCAD MCP

TommeCAD FreeCAD MCP

assembly_check_collisions

Checks every component pair in a FreeCAD assembly for static contact and positive intersection volume, reporting collisions using configurable volume and contact tolerances.

Instructions

Check every component pair for static contact and positive intersection volume.

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>"
    },
    "name": "assembly_check_collisions"
  }
}

Input Schema

NameRequiredDescriptionDefault
doc_nameYesAssembly owner document Name.
assembly_nameYesNative Assembly object Name.
volume_toleranceNoIntersection threshold in mm^3.
contact_toleranceNoStatic contact distance tolerance in mm.

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 a fair amount: it declares unit conventions with field-level override, enumerates the failure modes (invalid_arguments, document_not_found, object_not_found, transaction_conflict, operation_failed, execution_timeout), and explains that a timeout is not a cancellation and mutations should not be blindly retried. It does not say whether the check is read-only, whether it requires the document to be active, or how long it may run, leaving some behavioral risk undisclosed.

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 a single crisp sentence, which is the right structure. The following 'Contract' sentence is denser than it needs to be — the error-code enumeration and legacy-return note read as boilerplate — but it is compact and each clause carries usable information for an agent deciding how to handle failures.

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?

With an output schema present, the description need not explain return values, though it does flag that a legacy return shape is preserved, which is useful for agents parsing results. Given four parameters, full schema coverage, and no annotations, the definition covers units, tolerances, and failure handling adequately; the remaining gap is the absence of any stated precondition or relationship to sibling geometry-check tools.

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 doc_name, assembly_name, volume_tolerance and contact_tolerance with their defaults and minimums, which sets the baseline at 3. The description adds unit semantics (mm for length, mm^3 for volume, field units overriding defaults), but that largely restates what the schema's titles and descriptions already imply.

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 opening sentence gives a specific verb and resource — checking every component pair for static contact and positive intersection volume — which tells an agent exactly what the operation computes and distinguishes it from joint-sweep or general interference checks by naming both contact and intersection volume. It does not explicitly contrast itself with the collision-adjacent siblings (e.g. check_interference), so it stops short of 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 Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied: an agent can infer this is the tool for verifying an assembly's parts do not overlap or touch unintentionally, and the 'explicit internal names recommended' note hints at a prerequisite for unambiguous references. There is no statement of when to prefer this over check_interference or assembly_check_joint_sweep, and no guidance on preconditions such as the assembly being fully constrained or loaded.

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