Skip to main content
Glama
TommeCAD FreeCAD MCP

TommeCAD FreeCAD MCP

machine_bom

Count actual assembly occurrences instead of Body history, aggregate commercial revisions and native fasteners, and optionally export the result to CSV for accurate machine BOMs.

Instructions

Count actual assembly occurrences, not Body history; aggregate commercial revisions and native fasteners.

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

Input Schema

NameRequiredDescriptionDefault
doc_nameYesInternal document Name, never Label/path. Omitted/null uses active document (legacy); pass explicitly.
root_nameYesInternal object Name in the selected document, never Label; must have the type required by this tool.
output_pathNoOptional new CSV path; existing files are not overwritten; unresolved occurrences block export.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.2

TDQS

B3.1/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden and does contribute real context: unit conventions (mm, mm^2, mm^3), unit-override precedence, an error taxonomy, and the warning that timeouts are not cancellation and mutations must not be blindly retried. Weaknesses: the retry-mutation warning reads as boilerplate for what appears to be a read/count operation, permissions are never mentioned, and "Legacy return shape preserved" gives no usable information about the response.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The key distinction (occurrences, not Body history) is front-loaded, which is good, but the text is dense with jargon and terse contract fragments. Items like "Legacy return shape preserved" consume space without conveying actionable meaning.

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?

Error handling, units, and path semantics are covered, but there is no output schema and the description never explains what a caller receives (row structure, grouping, totals) or whether the CSV write is the only result. For an export tool with three parameters and no annotations, that leaves a meaningful gap.

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%, with doc_name and root_name already documented as internal Names (never Labels/paths) and output_path's non-overwrite behavior spelled out. The description's naming recommendation and unit notes add only marginal meaning beyond that, so the baseline 3 is appropriate.

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 states a specific operation — counting actual assembly occurrences rather than Body history, and aggregating commercial revisions and native fasteners — which lets an agent infer this produces a bill of materials. It does not, however, explicitly contrast with the sibling harness_bom, so the agent must guess how the two BOM tools differ.

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?

There is no statement of when to use this tool versus harness_bom or the assembly inspection tools. The only guidance is a naming convention ("explicit internal names recommended") and a retry caution, neither of which helps select between alternatives.

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