Skip to main content
Glama
TommeCAD FreeCAD MCP

TommeCAD FreeCAD MCP

engineering_create_drawing

Prepare a native mechanical drawing sheet, place projected views, add explicit dimensions after geometry queries, and export through TechDraw.

Instructions

Prepare a native mechanical sheet; query projected geometry before adding dimensions, then export via TechDraw tools.

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>",
      "source_name": "<source_name>",
      "template": "<template>",
      "dimensions": "<dimensions>"
    },
    "name": "engineering_create_drawing"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoRequested internal name for a new object/document; FreeCAD may uniquify it. Use the returned name.MechanicalPage
titleNoExplicit drawing title; placed in editable template field or annotation.
bom_rowsNoOptional explicit BOM text rows, preferably derived from machine_bom.
doc_nameYesInternal document Name, never Label/path. Omitted/null uses active document (legacy); pass explicitly.
templateYesNative TechDraw SVG template from techdraw_list_templates or an explicit trusted absolute SVG path.
dimensionsYesExplicit projected edge dimension records; an empty list prepares views for a second-stage geometry query and dimension placement.
source_nameYesInternal 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

B3.4/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 a decent job: it enumerates the concrete error contract, warns that transport failures are possible, and states that timeout is not cancellation and mutations should not be blindly retried — a real safety-relevant disclosure. What's missing is any statement about side effects on an existing document/page, permissions, or reversibility of the created sheet.

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 opening action sentence is front-loaded, which is good, but the remainder is a semicolon-chained "Contract" block mixing units, a generic error-code enumeration, retry advice, and an opaque legacy note with no headers. The error list reads as boilerplate shared across the family rather than information specific to this operation.

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 7-parameter CAD mutation with no output schema, the description covers errors, units, and a workflow order, but leaves important things implicit: what the tool returns ("Legacy return shape preserved" is opaque to an agent), what views/objects get created on the sheet, and how an empty dimensions list differs semantically from a populated one. Adequate but with clear gaps.

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 the baseline is 3, but the description adds meaning beyond it: unit conventions (length mm, area mm^2, volume mm^3, field units override defaults) directly govern the loosely typed dimensions records, and "explicit internal names recommended" reinforces how doc_name/source_name/name should be passed. The dimensions record structure itself (additionalProperties: true) is still left unspecified.

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?

"Prepare a native mechanical sheet" gestures at creating a TechDraw page, but the verb is vague and the description never plainly says it creates a drawing page with projected views from a source object. It also fails to distinguish itself from the sibling techdraw_create_page, which an agent would reasonably consider an alternative for the same goal.

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?

It gives a sequencing hint (query projected geometry before adding dimensions, then export via TechDraw tools), which is genuine workflow guidance for the dimensions=[] case. But there is no when-to-use/when-not guidance relative to the many sibling creation tools, and no statement of prerequisites such as needing an existing document with a typed source object beyond what the schema says.

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