Skip to main content
Glama
TommeCAD FreeCAD MCP

TommeCAD FreeCAD MCP

set_placement

Set an object's position and X/Y/Z rotation in degrees, applied X then Y then Z, to control its placement within a FreeCAD document.

Instructions

Set position and X/Y/Z rotations in degrees, applied X then Y then Z.

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

Input Schema

NameRequiredDescriptionDefault
xNox: mm, parent_local (document_global for top-level objects).
yNoy: mm, parent_local (document_global for top-level objects).
zNoz: mm, parent_local (document_global for top-level objects).
rxNorx: deg, parent_local; XYZ applied X then Y then Z for set_placement.
ryNory: deg, parent_local; XYZ applied X then Y then Z for set_placement.
rzNorz: deg, parent_local; XYZ applied X then Y then Z for set_placement.
doc_nameNoInternal document Name, never Label/path. Omitted/null uses active document (legacy); pass explicitly.
obj_nameYesInternal object Name in the selected document, never Label; must have the type required by this tool.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.2

TDQS

A3.6/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 substantial work: it discloses rotation composition order, unit defaults plus per-field override rules, the enumerated error set, transport failure possibility, and the timeout-is-not-cancellation caution against retrying mutations. It omits one important mutation trait — whether unspecified fields reset to their defaults (0) or leave prior placement untouched — which matters for a destructive write.

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?

Front-loaded with the core action, then a clearly delimited 'Contract:' block covering units, errors, and timeout semantics. It is dense but every clause carries information; 'Legacy return shape preserved' is the one cryptic fragment that does not fully earn its place.

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

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 8-parameter mutation tool with an output schema, the description covers units, coordinate/rotation composition, error taxonomy, and retry semantics — everything an agent needs to call it safely. Return-value explanation is correctly left to the output schema.

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%, so the baseline is 3. The description adds genuine value beyond the schema on units ('Length mm, area mm^2, volume mm^3; field units override defaults') and the 'explicit internal names recommended' convention, but it adds nothing about which object types are acceptable or the meaning of omitted coordinates.

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 sentence gives a specific verb and resource ('Set position and X/Y/Z rotations') and pins down rotation order, which is a real disambiguator. It never names or contrasts a sibling such as assembly_set_component_pose, so the agent must infer which placement tool applies.

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 explicit when-to-use/when-not guidance and no routing to an alternative. The only conditional advice is operational ('never blindly retry mutations'), which does not help an agent choose between this tool and sibling set/pose tools.

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