Skip to main content
Glama
TommeCAD FreeCAD MCP

TommeCAD FreeCAD MCP

create_container

Creates a document group or PartDesign Body in FreeCAD and returns its actual internal Name for reliable downstream references.

Instructions

Create a document group or PartDesign Body and return its actual internal Name.

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

Input Schema

NameRequiredDescriptionDefault
kindNogroup: App::DocumentObjectGroup; body: PartDesign::Body.group
nameYesExplicit internal Name; no Label or active-document fallback.
doc_nameYesExplicit internal Name; no Label or active-document fallback.

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

B3.4/5.0
Behavior4/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 disclose meaningful behavior: an explicit error taxonomy (invalid_arguments, document_not_found, transaction_conflict, operation_failed, execution_timeout), the warning that timeout is not cancellation and mutations should not be blindly retried, and the note that a legacy return shape is preserved. These are genuine operational traits an agent could not get from structured fields. It still omits permissions, undo/transaction scope effects on the document, and idempotency, so it is not a 5.

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 sentence is correctly front-loaded and the contract block is compact enough. However, the units sentence is irrelevant to a tool with only string parameters, and the long error-code list plus 'legacy return shape preserved' dilutes the signal-to-noise ratio for a simple container creation.

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

Completeness4/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-value explanation is not required, and the contract covers failure modes and the timeout/retry hazard. What remains missing is whether the container is created in an existing open document only or can target an unopened file, and whether the operation is transactional/undoable — modest gaps for a three-parameter creation tool.

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%, with kind's enum documented inline and both name and doc_name clarified as explicit internal names with no Label or active-document fallback, so the schema does the heavy lifting. The description only reinforces the naming contract ('explicit internal names recommended') and adds no new semantics. The unit clause ('Length mm, area mm^2, volume mm^3; field units override defaults') does not apply to any of this tool's three string parameters and reads as boilerplate.

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 verb and resource: create a document group (App::DocumentObjectGroup) or a PartDesign Body, and it notes the returned internal Name. That is well beyond a restatement of the tool name. It does not explicitly distinguish itself from close siblings such as create_document or set_container_members, so it stops short of a 5.

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 create_document, assembly_create, or set_container_members, and no when-not guidance. The only guidance-like sentence ('explicit internal names recommended') is a naming convention for the parameters rather than a usage condition, so the agent must infer the tool's place in the workflow.

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