Skip to main content
Glama
TommeCAD FreeCAD MCP

TommeCAD FreeCAD MCP

library_register_step

Archives a verified STEP file and component metadata into a revisioned commercial parts library so reusable parts remain traceable and immutable.

Instructions

Archive STEP, native FCStd and metadata after BOP and save/reopen gates; no technical specifications inferred.

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": {
      "library_root": "<library_root>",
      "source_path": "<source_path>",
      "component_id": "<component_id>",
      "revision": "<revision>",
      "manufacturer": "<manufacturer>",
      "part_number": "<part_number>",
      "category": "<category>",
      "technical_data": "<technical_data>"
    },
    "name": "library_register_step"
  }
}

Input Schema

NameRequiredDescriptionDefault
categoryYesComponent family used for library searches.
revisionYesImmutable revision identifier; existing revision cannot be overwritten.
source_urlNoProvenance URL of the acquired CAD, when available.
part_numberYesExact orderable part number/configuration identity.
source_pathYesExisting STEP/STP file; original is copied and SHA-256 verified without mutation.
component_idYesPortable internal component identifier, unique with revision.
library_rootYesExplicit directory of the persistent commercial component library.
manufacturerYesVerified manufacturer identity supplied by caller, never inferred from geometry.
configurationNoExact commercial variant/configuration.
technical_dataYesNamed records with value, unit, origin (manufacturer/geometry/user/hypothesis), and source required for manufacturer data.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.2

TDQS

A3.5/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 error taxonomy, warns that timeouts are not cancellation and mutations must not be blindly retried, states that no technical specifications are inferred, and records a legacy compatibility constraint. The phrases 'BOP' and 'gates' remain undefined, and 'Legacy return shape preserved' communicates nothing concrete.

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?

Content is front-loaded and compact, with no filler sentences; the error-code run is long but informative. Density tips toward jargon-heavy prose rather than verbosity, and the unexplained acronyms slightly hurt readability.

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

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 10-parameter mutation tool with a nested technical_data object, no annotations, and no output schema, the description covers failure modes, units, and retry safety well but leaves the return contract as an unhelpful 'legacy return shape preserved'. It also says nothing about whether registration is idempotent when the revision already exists, leaving that solely to the schema.

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 baseline is 3, but the description adds meaning the schema lacks: canonical units (mm, mm^2, mm^3) with field-level unit override, and the rule that technical values must not be inferred. 'Explicit internal names recommended' also nudges the naming of component_id/library_root, though only implicitly.

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

Purpose3/5

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

The verb 'archive' and the resources (STEP, native FCStd, metadata) are stated, but the sentence is dense with unexplained jargon ('BOP', 'save/reopen gates') and never says the outcome is registration into the persistent component library, which is the distinguishing purpose versus export_step or import_step. An agent can guess the function but not cleanly separate it from siblings.

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?

'After BOP and save/reopen gates' establishes a precondition for calling, which is real usage context. However, there is no explicit when-to-use vs alternative (e.g., versus library_insert_component, library_inspect, or plain export_step) and no statement of when not to call it.

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