Skip to main content
Glama
TommeCAD FreeCAD MCP

TommeCAD FreeCAD MCP

copy_object

Recursively duplicates a native FreeCAD object and its input dependencies within the same document, rejecting retained source references and returning the created internal names.

Instructions

Recursively copy a native object and its inputs in the same document; reject retained source references. Returns all created Names.

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

Input Schema

NameRequiredDescriptionDefault
doc_nameYesExplicit internal Name; no Label or active-document fallback.
obj_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

A3.7/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 disclosure burden and does substantial work: recursion over inputs, rejection of retained source references, the created-Names return, unit defaults with field-level overrides, an enumerated error set, and an explicit warning that timeouts are not cancellation and mutations should not be blindly retried. The remaining gap is that it never plainly states this is a document-mutating operation or what authorization it requires.

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?

Purpose is front-loaded in the first sentence, followed by a compact contract paragraph covering names, units, errors, and retry safety. Density is high and little is wasted, though phrases like "Legacy return shape preserved" are cryptic without further explanation.

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?

For a two-parameter mutation tool with an output schema already available, the description covers scope, naming expectations, unit defaults, error classes, and retry hazards. The only shortfall is that mutation semantics and the meaning of the legacy return shape are left implicit.

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 both parameters are documented as explicit internal Names with no Label or active-document fallback, so the schema already does the heavy lifting. The description's "explicit internal names recommended" and its unit conventions add only modest meaning beyond that baseline.

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 opening clause gives a specific verb and resource plus scope: "Recursively copy a native object and its inputs in the same document; reject retained source references." That distinguishes it from siblings that move, mirror, or delete objects, though it never names an alternative tool explicitly.

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?

Usage context is implied rather than stated: the copy is confined to the same document, retained source references are rejected, and explicit internal names are recommended. There is no explicit guidance on when to prefer this over move_object, mirror_object, or sketch_copy, so the agent must infer the boundary.

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