Skip to main content
Glama
SolidworksMCP-python

SolidworksMCP-python

Create Revolve

create_revolve

Revolve a closed sketch around a centerline or reference axis to add a solid turned shape, such as a shaft or knob, to the active part.

Instructions

Revolve a closed sketch around an axis, adding a solid to the active part.

Use it for turned shapes (shafts, knobs). It revolves the sketch sketch_name names, or the one exit_sketch closed last, about axis_entity: the id add_centerline returned or a reference axis from create_axis. Left out, the centreline drawn in the sketch is the axis. A sketch or axis that isn't in the model fails before anything is built. Needs: an open part and a closed profile with a centreline or a reference axis. Changes: adds a Revolve feature. Returns: revolve (name, sketch and axis_entity when named, angle) and measured_change (volume, bounding box and solid-body count before and after; left out when the model can't be read).

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": {
      "input_data": "<input_data>"
    },
    "name": "create_revolve"
  }
}

Input Schema

NameRequiredDescriptionDefault
input_dataYesThe revolve. `angle` (degrees, 360 for a full turn) is required; `sketch_name`, `axis_entity`, `both_directions`, `reverse_direction`, `thin_feature` and `merge_result` have defaults.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.2.0
    • changedInput schema / properties / input_data / properties / axis_entity / description
      Previous value: -"A reference axis to revolve about, by its name in the feature tree (e.g. \"Axis1\" from `create_axis`); omit to use the centreline drawn in the sketch"New value: +"The axis to revolve about: the id `add_centerline` (or `add_line`) returned, e.g. \"Centerline_1\", or a reference axis by its name in the feature tree, e.g. \"Axis1\" from `create_axis`; omit to use the centreline drawn in the sketch"
  2. Changed11 schema fields changedv2.0.0
    • changedInput schema / properties / input_data / description
      Previous value: -"The input data value."New value: +"The revolve. `angle` (degrees, 360 for a full turn) is\nrequired; `sketch_name`, `axis_entity`, `both_directions`,\n`reverse_direction`, `thin_feature` and `merge_result` have defaults."
    • addedInput schema / properties / input_data / properties / axis_entity / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / input_data / properties / axis_entity / default
      Added value: +null
    • changedInput schema / properties / input_data / properties / axis_entity / description
      Previous value: -"Axis entity for the revolve"New value: +"A reference axis to revolve about, by its name in the feature tree (e.g. \"Axis1\" from `create_axis`); omit to use the centreline drawn in the sketch"
    • removedInput schema / properties / input_data / properties / axis_entity / type
      Removed value: -"string"
    • removedInput schema / properties / input_data / properties / direction
      Removed value: -{
      -  "default": "one_direction",
      -  "description": "Revolve direction",
      -  "type": "string"
      -}
    • addedInput schema / properties / input_data / properties / sketch_name / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / input_data / properties / sketch_name / default
      Added value: +null
    • changedInput schema / properties / input_data / properties / sketch_name / description
      Previous value: -"Sketch name to revolve"New value: +"Sketch to use, by its name in the feature tree (e.g. \"Sketch2\"); omit to use the sketch `exit_sketch` closed last"
    • removedInput schema / properties / input_data / properties / sketch_name / type
      Removed value: -"string"
    • changedInput schema / properties / input_data / required
      Previous value: -[
      -  "sketch_name",
      -  "axis_entity",
      -  "angle"
      -]New value: +[
      +  "angle"
      +]
  3. First observedv1.0.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=false, idempotentHint=false and destructiveHint=false; the description goes beyond them by disclosing the failure mode ('a sketch or axis that isn't in the model fails before anything is built'), the prerequisites, and that the operation adds a feature rather than replacing geometry. It does not discuss merge semantics or what happens to existing bodies when merge_result is true, leaving one 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.

Conciseness4/5

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

The opening sentence is front-loaded and the Needs/Changes/Returns triptych is easy to scan. It runs long and partly repeats the schema's defaulting rules, but no sentence is pure filler.

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 single-required-parameter tool with a nested input object and an output schema, the description supplies prerequisites, failure behavior, defaults and a return summary, which is ample. The redundant return explanation is the only slack.

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 explains angle units, axis_entity precedence and sketch_name defaults. The description restates the same defaulting rules (sketch from exit_sketch, centreline in sketch as axis) without adding format or interaction detail, so a baseline 3 is right.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The first sentence states a specific verb and resource ('Revolve a closed sketch around an axis') plus the effect ('adding a solid to the active part'). It is unmistakably distinct from siblings like create_extrusion or create_sweep, and it names the related tools (add_centerline, create_axis, exit_sketch) whose outputs feed it.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

'Use it for turned shapes (shafts, knobs)' gives concrete usage context, and the 'Needs:' clause spells out preconditions (open part, closed profile, centreline or reference axis). It does not explicitly exclude alternatives such as generate_vba_revolve, which is the main gap.

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