Skip to main content
Glama
SolidWorks MCP

SolidWorks MCP

by zmf678

add_cylinder

Creates a cylinder in a SolidWorks part from a diameter and height, revolving a profile 360° about an axis and returning measured mass properties for verification.

Instructions

Create a cylinder by revolving a profile 360掳 about an axis.

The first revolve-based primitive. Returns the resulting mass properties (volume = 蟺 路 r虏 路 h). Use new_part first.

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": {
      "diameter_mm": "<diameter_mm>",
      "height_mm": "<height_mm>"
    },
    "name": "add_cylinder"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoRevolve
height_mmYes
diameter_mmYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.20.0

TDQS

B3.3/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: it does imply a mutating create operation, gives a prerequisite ordering, and states that mass properties come back with the volume formula. It does not say whether a sketch/profile must pre-exist, what axis is used (no axis parameter exists), or whether units follow the diameter_mm/height_mm naming.

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?

It is short and front-loads the core action, but the second sentence about being "the first revolve-based primitive" adds no decision-relevant information. Character-encoding corruption ("360掳", "蟺 路 r虏 路 h") also degrades readability of the otherwise useful formula.

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 simple three-parameter primitive with no output schema, the description does cover the return value (mass properties) and the setup prerequisite. The gap is the revolve axis, which is central to the tool's stated behavior yet has no corresponding parameter and no explanation of a default.

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 0%, so the description must compensate, and it only partly does: the volume formula clarifies that diameter_mm is a diameter (radius = d/2) and height_mm is the extrusion height. The name parameter (default "Revolve") is never explained, and the "about an axis" wording implies an input that isn't in the schema at all.

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?

"Create a cylinder by revolving a profile 360° about an axis" gives a specific verb and resource, and it is distinguishable from siblings like add_cone or add_disc. The phrase "the first revolve-based primitive" hints at its place among the revolve family but doesn't sharpen the boundary with add_revolved_profile.

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?

"Use new_part first" is a concrete prerequisite, which is genuine when-to-use guidance. However, there is no guidance on when to pick this over add_disc, add_cone, or add_revolved_profile, and no statement about what state the document must already be in beyond the part being created.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.