Skip to main content
Glama
TommeCAD FreeCAD MCP

TommeCAD FreeCAD MCP

library_insert_component

Insert a live external App::Link component from a revision-pinned library into an already-saved FreeCAD document, with optional position and rotation.

Instructions

Insert a live external App::Link from the library; target document must already be saved.

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>",
      "library_root": "<library_root>",
      "component_id": "<component_id>",
      "revision": "<revision>"
    },
    "name": "library_insert_component"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoRequested internal name for a new object/document; FreeCAD may uniquify it. Use the returned name.CommercialInstance
doc_nameYesInternal document Name, never Label/path. Omitted/null uses active document (legacy); pass explicitly.
revisionYesPinned revision; hashes checked before insertion.
position_mmNoXYZ position in owner/container coordinates, millimetres.
component_idYesExact commercial component identifier.
library_rootYesPersistent library root directory.
rotation_degNoXYZ rotation in degrees, same convention as Assembly tools.
assembly_nameNoInternal object Name in the selected document, never Label; must have the type required by this tool.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.2

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations at all, the description carries the burden and does so well: it enumerates the error taxonomy, warns that transport failures are possible, and states that timeout is not cancellation and mutations must not be blindly retried. It does not say what happens on name collisions or whether the insertion is transactional, which keeps it from a 5.

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?

Purpose is front-loaded in the first clause, followed by contract, units, and error semantics in a logical order. The 'area mm^2, volume mm^3' fragment is boilerplate noise for a tool with no area or volume parameters, and the telegraphic 'Contract:' phrasing is slightly terse.

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 an eight-parameter mutation tool with no annotations and no output schema, the description covers the critical gaps: saved-document prerequisite, name handling, error conditions, and retry safety. 'Legacy return shape preserved' gestures at a return contract without describing it, which is the main remaining hole.

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 documents all eight parameters, including internal-Name-vs-Label distinctions and the mm/degree conventions. The description repeats the unit convention and adds a soft naming recommendation, but adds no syntax or format detail beyond the structured fields — baseline 3.

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: 'Insert a live external App::Link from the library', which distinguishes it from read-only siblings like library_search or library_inspect. It stops short of naming an alternative (e.g., assembly_add_component or create_link), so differentiation must be inferred from the 'external App::Link' qualifier.

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?

It gives a hard precondition — 'target document must already be saved' — and a naming recommendation ('explicit internal names recommended'), both of which an agent needs before calling. What is missing is an explicit when-not or sibling comparison (e.g., when to use this instead of assembly_add_component).

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