Skip to main content
Glama
TommeCAD FreeCAD MCP

TommeCAD FreeCAD MCP

check_interference

Detect static collisions between two whole closed solids by measuring distance and intersection volume, then classify results as separated, contact, or interference.

Instructions

Static closed-solid collision check: distance, intersection volume and separated/contact/interference. Whole objects only; no motion/safety assurance.

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": {
      "first": "<first>",
      "second": "<second>"
    },
    "name": "check_interference"
  }
}

Input Schema

NameRequiredDescriptionDefault
firstYesWhole object {document,object} at current state, or complete issued subelement selection with revision. Both targets must be in one document; global mm.
secondYesWhole object {document,object} at current state, or complete issued subelement selection with revision. Both targets must be in one document; global mm.
volume_toleranceNoIntersection volume > this mm^3 threshold is interference; default 1e-6 mm^3.
contact_toleranceNoDistance <= this mm threshold is within contact tolerance; default 0.001 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

A4.3/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 real work: it declares the analysis is static/whole-object only, states the unit system and that field units override defaults, enumerates error classes, and warns that a timeout is not a cancellation. The 'never blindly retry mutations' line is generic boilerplate that reads oddly for what is nominally a read-only check, and no permission/authorization context is given.

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?

Front-loaded: the purpose sentence comes first and the contract details follow. Most sentences carry weight (units, errors, timeout semantics), but 'Legacy return shape preserved' is unexplained jargon and the trailing error enumeration is dense.

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?

An output schema exists, so return values need not be described, and the description still covers units, scope limits, error classes, and timeout behavior. Remaining gaps are minor: the consequence of each error class and the meaning of 'legacy return shape' are not clarified.

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, and the description earns above that by adding the unit contract (mm/mm^2/mm^3, field units override defaults) and the constraint that both targets must live in one document. It does not add anything about the tolerance parameters or subelement revision semantics beyond what the schema already states.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Static closed-solid collision check') plus the exact outputs returned (distance, intersection volume, separated/contact/interference classification). The clause 'Whole objects only; no motion/safety assurance' scopes it away from motion/sweep-style siblings without needing to name them.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

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

Gives clear applicability conditions and one explicit exclusion ('no motion/safety assurance'), plus a prerequisite ('explicit internal names recommended', both targets in one document). It stops short of naming an alternative tool for swept/motion cases, so the routing is implied rather than spelled out.

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