Skip to main content
Glama
NejcDvorsek

SolidWorks MCP

by NejcDvorsek

add_swept_profile

Creates a solid by sweeping a closed 2D profile along a 2D path, supporting bend and profile corner radii for rails, gaskets, trim, and channels.

Instructions

Sweep an arbitrary closed PROFILE (cross-section) along a 2D PATH.

profile_mm = [[u,v],…] in mm: the closed cross-section on the Right plane (u → world -Z, v → world +Y), centred near the origin. path_mm = [[x,y],…] in mm on the Front plane — MUST start at the origin heading +X (the profile is perpendicular to the path there). Path corners are rounded with bend_radius_mm; corner_radii_mm rounds the profile's corners as for add_extruded_profile. Volume = profile_area · path_length. For non-round extrusions along a path (rails, gaskets, trim, channels). Returns mass properties. Use new_document first.

Input Schema

NameRequiredDescriptionDefault
nameNoSweep
path_mmYes
profile_mmYes
bend_radius_mmNo
corner_radii_mmNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.16.3

TDQS

A4.4/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 most of it: coordinate-frame mapping (u → world -Z, v → world +Y; path on Front plane), profile centering, corner-rounding behavior for both path and profile, and a volume formula. It stops short of saying whether the result is a new solid body, whether it merges with existing bodies, or what failure modes exist if the path precondition is violated.

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 and organized so each clause covers one parameter or rule, with no filler sentences. It is dense and arrow-notation-heavy, and the volume formula is arguably optional, but every sentence otherwise earns its place.

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?

It states the return ('Returns mass properties'), which is necessary since no output schema exists, and covers all the geometric call prerequisites. What remains missing is whether the sweep produces a standalone body and how it interacts with existing geometry — meaningful for a modeling tool with zero annotation coverage.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description must compensate and largely does: profile_mm and path_mm get format, units, construction plane and orientation rules, bend_radius_mm is tied to path corner rounding, and corner_radii_mm is tied to profile corner rounding with a cross-reference to add_extruded_profile. Only 'name' is left undocumented, which is a harmless cosmetic default.

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?

Opens with a precise verb+resource: sweep a closed profile along a 2D path. The parenthetical '(cross-section)' and the clause 'For non-round extrusions along a path' implicitly separate it from add_swept_pipe (round) and add_extruded_profile (straight), so an agent can pick it out of the sibling list without opening a schema.

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?

Gives a concrete use case (rails, gaskets, trim, channels) plus a hard prerequisite ('Use new_document first') and a mandatory path constraint ('MUST start at the origin heading +X'). It never explicitly names a sibling to avoid, so the routing is implied by 'non-round' rather than stated.

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