Skip to main content
Glama
TommeCAD FreeCAD MCP

TommeCAD FreeCAD MCP

assembly_add_component

Insert a local or cross-document Part, Body, feature, or Assembly as a native Assembly component link, with position and rotation placement in the owning assembly.

Instructions

Insert a local or cross-document source as a native Assembly component link.

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>",
      "source_document": "<source_document>",
      "source_object": "<source_object>"
    },
    "name": "assembly_add_component"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoRequested component link Name.Component
doc_nameYesAssembly owner document Name.
positionNoExactly three finite values.
rotationNoParent-local XYZ Euler rotation in degrees.
assembly_nameYesNative Assembly object Name.
source_objectYesSource Part, Body, feature, or Assembly Name.
source_documentYesOpen source document Name; external documents must be saved.

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

B3.2/5.0
Behavior2/5

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

With no annotations, the description carries the full burden. It does disclose valuable behavior — unit conventions with per-field overrides, an enumerated error taxonomy, and an explicit warning that timeouts are not cancellations so mutations must not be blindly retried — which is strong for a write operation. However, it omits whether the target assembly must be open/active, what happens on a name collision, and what 'legacy return shape preserved' actually means, leaving real gaps for a mutation tool.

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?

Three tightly packed sentences with the core action front-loaded, followed by contract, errors, and retry caution in descending priority. Phrasing is telegraphic but each line carries information; 'Legacy return shape preserved' is the one clause that costs space without clear payoff.

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 7-parameter mutation with an output schema and no annotations, the description covers the highest-risk gaps: units, error names, and non-idempotent retry behavior. What remains missing is preconditions on the owning assembly document and duplicate-name behavior, but the output schema relieves it of explaining return values.

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 description coverage is 100%, so the baseline is 3. The description earns extra credit by supplying unit semantics for length (mm, mm^2, mm^3) and the rule that field-level units override defaults — information the schema does not state for position/rotation and which matters for correct invocation.

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 concrete verb and resource — inserting a local or cross-document source as a native Assembly component link — and the 'component link' framing separates it from sibling tools like assembly_set_component_pose (pose edits) and library_insert_component (library insertion). It stops short of explicitly naming any sibling, so the distinction 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 Guidelines2/5

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

No when-to-use or when-not-to-use guidance appears; the only advisory ('explicit internal names recommended') is a naming convention, not a routing rule. An agent gets no help choosing between this, library_insert_component, or creating the component by other means.

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