Skip to main content
Glama
TommeCAD FreeCAD MCP

TommeCAD FreeCAD MCP

create_document

Creates a new FreeCAD document with an optional internal name, providing a clean starting point for structured CAD modeling and assembly workflows.

Instructions

Create a new FreeCAD document.

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

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "create_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoRequested internal name for a new object/document; FreeCAD may uniquify it. Use the returned name.Unnamed

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.2

TDQS

B3.3/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 load and does so well: it enumerates the concrete error classes, warns that transport failures are possible, and explicitly cautions that 'timeout is not cancellation: never blindly retry mutations' — a genuinely valuable idempotency warning. It stops short of saying whether the new document becomes the active document or how it relates to the existing session, which is the main behavioral gap.

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 purpose is front-loaded and the sentences are compact, but the 'Length mm, area mm^2, volume mm^3' unit contract is boilerplate that has no bearing on a tool whose only parameter is a name, and 'Legacy return shape preserved' is cryptic shorthand that costs space without informing.

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?

An output schema exists, so return values need not be explained, and the error contract is thorough. But for a document-creation tool the description omits whether the document is added to the live session, becomes active, or persists after creation — context an agent needs to sequence follow-up calls like activate_document or save_document.

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% and the single parameter already documents that FreeCAD may uniquify the requested name and that the returned name should be used. The description only adds a soft recommendation for explicit internal names, which is marginal beyond the schema — 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 first sentence names a specific verb and resource: 'Create a new FreeCAD document.' That is unambiguous about what the tool does. It does not, however, distinguish itself from siblings like open_document or activate_document, which an agent could easily confuse with document creation.

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 versus open_document or activate_document, and no prerequisites or preconditions are given. The only guidance is a naming recommendation ('explicit internal names recommended'), which is parameter advice rather than usage routing.

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