Skip to main content
Glama
TommeCAD FreeCAD MCP

TommeCAD FreeCAD MCP

exchange_import

Imports static STEP, STL, OBJ, DXF, or SVG geometry into a FreeCAD document with metadata, loss diagnostics, and rollback when files are malformed or unsupported.

Instructions

Import static geometry transactionally with metadata and loss diagnostics; malformed or unsupported geometry rolls back.

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>",
      "path": "<path>",
      "format": "<format>"
    },
    "name": "exchange_import"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesAbsolute matching nonempty input file, at most 64 MiB.
unitsNoExplicit mm convention; STL/OBJ have no reliable intrinsic units.mm
formatYesExplicit native input format; extension must match.
doc_nameYesExplicit internal document or drawing object Name.

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 it well: transactional rollback on malformed geometry, a named error taxonomy, transport-failure caveat, and the timeout-is-not-cancellation rule. It stops short of explaining what 'loss diagnostics' actually report or what metadata is captured, leaving some behavioral surface 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?

Dense but front-loaded: the core action and rollback guarantee lead, followed by units contract, error taxonomy, and retry warning. The 'Contract:' and 'Legacy return shape preserved' fragments are slightly cryptic, but no sentence is pure filler.

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 error list plus timeout semantics cover the risky edges of a mutation. The remaining gap is the mismatch between 'with metadata' in the description and the absence of any metadata parameter in the schema, which could mislead an agent about what inputs are accepted.

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 coverage is 100%, so the baseline is 3. The description adds some meaning — 'field units override defaults' clarifies precedence for the units parameter and 'explicit internal names recommended' colors doc_name — but does not explain the 'metadata' concept that appears in the description yet has no corresponding parameter.

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: 'Import static geometry transactionally with metadata and loss diagnostics.' The 'static geometry' framing implicitly separates it from assembly-level tools, but it never names the format-specific siblings (import_step, import_stl) or exchange_export, so the differentiation is inferred 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?

Offers real operational guidance — 'explicit internal names recommended' and 'never blindly retry mutations' — but gives no when-to-use/when-not-to-use routing against the format-specific import siblings. The agent must guess whether to call this or import_step for a STEP file.

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