Skip to main content
Glama
TommeCAD FreeCAD MCP

TommeCAD FreeCAD MCP

partdesign_revolution

Create a solid of revolution by revolving a sketch around a selected axis at a specified angle, supporting rotational part features.

Instructions

Revolve a sketch around an axis to create a solid of revolution.

Args:
    angle: Revolution angle in degrees (360 = full)
    axis: 'V' (vertical/Y-axis), 'H' (horizontal/X-axis), 'N' (normal/Z-axis)

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": {
      "sketch_name": "<sketch_name>"
    },
    "name": "partdesign_revolution"
  }
}

Input Schema

NameRequiredDescriptionDefault
axisNoV/H/N sketch-local axes for revolution/groove; X/Y/Z Body-origin axes for polar pattern.V
nameNoRequested internal name for a new object/document; FreeCAD may uniquify it. Use the returned name.Revolution
angleNoangle: deg, feature_axis.
doc_nameNoInternal document Name, never Label/path. Omitted/null uses active document (legacy); pass explicitly.
reversedNoReverse the feature direction relative to the profile/axis.
axis_nameNoInternal object Name in the selected document, never Label; must have the type required by this tool.
symmetricNoExtrude symmetrically about the profile plane; length is the total span.
sketch_nameYesInternal object Name in the selected document, never Label; must have the type required by this tool.
second_angleNosecond_angle: deg, feature_axis.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.2

TDQS

B3.1/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden. The Contract block genuinely adds value: it states units (mm, mm^2, mm^3), lists concrete error codes, and warns that timeout is not cancellation and mutations should never be blindly retried. What is missing is the mutation's side effects — whether the sketch is consumed, whether the operation is reversible, or what permissions/state 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.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose sentence and the Contract block are well-placed and front-loaded, but the Args section is redundant with the schema and covers only three of nine parameters, making it an incomplete restatement. 'Legacy return shape preserved' is vague filler that does not earn its place, especially since an output schema exists.

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 nine-parameter mutation with no annotations, the description covers purpose, units, and error/retry semantics well, and the output schema removes the need to explain return values. It still leaves gaps on the additive-vs-subtractive nature of the feature, sketch consumption, and doc_name/active-document behavior, which matter for correct invocation.

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%, so the schema already documents all nine parameters, including axis, name, doc_name, and reversed. The Args block restates only angle and axis, and its axis gloss ('V' vertical, 'H' horizontal, 'N' normal) largely duplicates the schema's axis description. It adds little beyond the structured fields, so the baseline 3 applies.

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 concrete verb and resource: 'Revolve a sketch around an axis to create a solid of revolution.' It implicitly distinguishes this from a subtractive sibling like partdesign_groove, but never explicitly says it is additive, so the contrast with groove is left to inference.

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 when-to-use or when-not-to-use guidance. It never mentions partdesign_groove as the subtractive alternative, nor does it say whether the source sketch is consumed, kept, or hidden after the revolution. The agent is told what the tool does but not when to pick it over a sibling.

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