Skip to main content
Glama
TommeCAD FreeCAD MCP

TommeCAD FreeCAD MCP

assembly_create

Creates a native Assembly with a persistent JointGroup in a specified FreeCAD document, providing the structure needed to build and manage assembly joints.

Instructions

Create a native Assembly with its persistent JointGroup.

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

Input Schema

NameRequiredDescriptionDefault
nameNoRequested native Assembly object Name.Assembly
doc_nameYesExplicit owner document 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.8/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 substantial work: it discloses the JointGroup side effect, the unit system and field-level override rule, an enumerated error set including transaction_conflict, and an explicit warning that timeouts are not cancellations and mutations should not be blindly retried. It stops short of stating permission requirements or whether a partial failure rolls back, which keeps it out of the top band.

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 with the action and its side effect, then contract details in compact clauses. The error enumeration is long but each token is informative; nothing is padding, though the telegraphic 'Contract:' phrasing is slightly dense.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/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 no explanation, and the description covers the remaining risk surface for a mutation: side effects, units, error taxonomy, transport failures, and retry semantics. For a 2-parameter create tool this is close to fully specified.

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% for both parameters, so the schema already documents name and doc_name. The description adds only the soft guidance that explicit internal names are recommended, plus unit conventions that apply to model values rather than to either parameter, so the baseline 3 is right.

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 first sentence states a specific verb and resource ('Create a native Assembly') and adds the non-obvious side effect that a persistent JointGroup is created alongside it. It does not explicitly contrast with siblings such as create_document or create_container, but the resource is distinct enough that an agent can place it.

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: you call this when you need an assembly inside a document (the required doc_name makes the ownership context clear). There is no statement of when to prefer this over create_document/create_container, nor of prerequisites such as the document needing to exist, aside from the document_not_found error hint.

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