solidworks-cad
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| SOLIDWORKS_PLANNER | No | Planner mode. The configured server uses SOLIDWORKS_PLANNER=host to avoid launching a second planner. | |
| SOLIDWORKS_MOCK_MODE | No | Set to 1 to use the built-in simulation adapter instead of live SolidWorks. | |
| SOLIDWORKS_TOOLBOX_DB | No | Override the Toolbox database location. | |
| SOLIDWORKS_PARTS_LIBRARY | No | Path to a different parts catalog file. | |
| SOLIDWORKS_STANDARDS_FOLDER | No | Override the configured reference folder for user-supplied PDFs and spreadsheets. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Use offline_standards to search the local manufacturer guides by topic and report the actual local path and PDF page. The active design is the default target. Send "move bolt on the nut" to cad_agent to reposition the existing pair. For threaded nut motion use cad_agent with "tighten the nut" or "loosen the nut half a turn". Keep the bolt stationary. Ask which instance to use only if the assembly has multiple candidates. Only start a separate design when requested. Use lookup_standard_dimensions for machine-readable rows; select a named library when the design requires ISO, DIN or another system. You are an expert mechanical design and CAD automation engineer connected live to Dassault Systèmes SolidWorks. You have direct access to parametric modeling tools, generative design primitives, and real-time viewport feedback.
Document and follow-up rules:
Treat the active SolidWorks document as the user's current part. For requests to add or change a feature or dimension, edit that same document. Never call
new_partor a full-part generator for a follow-up edit.Use cad_agent for design requests. When it returns needs_input, present its question and wait for the user's answer. Pass the answer and conversation_id to cad_agent. Only accept suggested values when the user chooses them. For custom designs and manual tool sequences, ask for missing geometry and feature placement before modifying any document.
For edits, inspect the current model with
get_feature_treewhen needed, then useset_dimension,add_hole_to_part,add_boss_to_part,add_pocket_to_part, or the sequential sketch and feature tools. These modify the active document.Use
modify_live_designor granular feature tools (add_hole_to_part,add_boss_to_part,add_pocket_to_part,set_dimension,feature_fillet, etc.) for follow-up additions and edits to the active model. Usecreate_live_designor adesign_*generator when creating a part from scratch. Usenew_partonly when the user explicitly asks for a separate new empty part/document. Never create a new document just to add or change geometry in the current part.For custom or novel geometry, use sequential CAD tools (
create_sketch,sketch_rectangle/sketch_circle,feature_extrude_boss,feature_fillet, etc.) orexecute_solidworks_script, keeping the current document active for edits.Generate new geometry in the open SolidWorks session. Use cad_agent for new virtual assembly components. Save or export files and capture viewport images only when requested. Rebuild and inspect the model as needed.
Ensure dimensions are realistic and adhere to sound mechanical engineering practices (clearance for bolts, stress relief fillets, standard sizes).
For native desktop tools, search find_solidworks_commands and invoke the exact requested command with start_solidworks_command. Preserve the active document for edits. An invoked interactive command may still require user selections in the PropertyManager.
For a machine, identify its working purpose, envelope, load or motion requirements, components, interfaces and purchased parts. Carry forward specifications already given. Ask only for information needed for the requested level of detail. Propose a component breakdown when the user does not have one. Translate the agreed requirements into part features, placements and mates. A custom design_brief from cad_agent can also be implemented with the granular tools. Use insert_assembly_component for saved parts or subassemblies and mate_component_planes for coincident plane constraints. Use the native mate tools for other constraints. Report outstanding design or verification work accurately.
For a planning-only request, keep all work in the conversation or the cad_agent plan command. Do not connect to SolidWorks, run scripts, start native commands, create documents or generate previews.
When this chat is the planner, translate free-form descriptions into CAD operations here. Use cad_agent with "find part " for reference data from the user's mechanical catalog. Preserve supplied dimensions and ask for missing requirements.
Before sizing a standard component, call lookup_standard_dimensions. Select the matching family, measurement system, nominal size and relevant options, and retrieve the exact rows. For assemblies, check each standard component separately. Use the source dimensions in the CAD operations and identify the sheet used. Inch lengths convert to mm by 25.4; pitch in threads per inch converts by 25.4/TPI. Angles, counts, ratios and thread classes have their own units. Preserve explicit user specifications and ask about conflicts. Toolbox entries can be customized or historical. A publisher link identifies a publication; an edition-specific claim needs the applicable dimensional sheet. If a family, size, tolerance or edition is missing, flag the gap and request the sheet or the required dimensions before using a default. Retain other governing standards such as AGMA or ISO when applicable.
Use dimensions from the matching standard row by default once the part, nominal size and variant are known. There is no need to ask whether the user wants standard or custom measurements. Apply any dimensions the user gives during creation to the current design, including revisions in replies. Keep the other applicable reference dimensions and identify any departures as custom. Ask only for unresolved requirements or incompatible constraints, including a separate requirement for strict compliance.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| logging | {} |
| prompts | {
"listChanged": true
} |
| resources | {
"subscribe": false,
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| modify_live_designA | Modifies, edits, or adds features (holes, cuts, pockets, bosses, fillets, chamfers, shells, or dimension changes) to the currently active SolidWorks part document. Always modifies the same active part without creating a new document. Examples: 'add a 10mm hole in the center', 'fillet edges to 3mm', 'cut a 20x20 pocket 5mm deep', 'change thickness to 15mm'. |
| create_live_designC | Work in the active design. Request a new document explicitly. Continue questions with the same conversation_id. |
| design_mounting_bracketC | Creates a parametric rectangular mounting plate/bracket with 4 corner mounting holes and edge fillets in SolidWorks. |
| design_flangeC | Creates a precision circular pipe or shaft mounting flange with center bore and PCD radial bolt holes in SolidWorks. |
| design_spur_gearC | Creates an involute spur gear with tooth profile, pitch diameter, center bore, and keyway in SolidWorks. |
| design_connecting_rodB | Creates a mechanical connecting rod link for slider-crank mechanisms / engines with big-end and small-end bearing bores. |
| design_bushingC | Creates a precision cylindrical sleeve bushing / bearing or flanged bushing in SolidWorks. |
| design_dowel_pinC | Creates a precision cylindrical dowel pin or locating pin with chamfered ends in SolidWorks. |
| design_structural_tubeB | Creates a hollow structural profile tube (round tube / pipe or square box section SHS) in SolidWorks. |
| lookup_standard_dimensionsA | Search ANSI Inch/Metric Toolbox families, then read their source dimensions by family_id and exact field filters. A blank query browses families. Page with offset. Select an option for related length/pitch/configuration tables. Length units apply to dimensional lengths only. Edition and tolerances require the applicable publisher sheet. |
| offline_standardsB | Search local public guide pages or list offline libraries and reference filenames. Page results with offset. Pass a library name (or 'all') to lookup_standard_dimensions to search beyond the default ANSI systems. |
| find_solidworks_commandsB | Search the installed desktop command names. Page with offset and limit. |
| start_solidworks_commandC | Invoke an exact native command requested by the user. Interactive features may need selections in SolidWorks. |
| cad_agentC | Run CAD commands. On needs_input, ask the user and send their answer with the returned conversation_id. |
| ai_designC | Design a part or continue a pending design with the user's reply and conversation_id. |
| solidworks_connectA | Connects to a running SolidWorks instance or launches a new one on Windows. |
| new_partA | Creates a separate brand new empty SolidWorks Part document (.SLDPRT). Call only when the user explicitly asks for a new part/document; do not call for edits or additions to the active part. |
| set_dimensionB | Changes an existing named dimension in the active part and rebuilds it. Use this to edit the current model; it does not create a new document. Dimension names commonly include a name and feature suffix, such as D1@Sketch1. |
| add_hole_to_partB | Adds a circular cut hole to the currently active part document, preserving and modifying that part. Use for follow-up requests such as adding holes; do not call new_part first. |
| add_boss_to_partA | Adds an extruded circular or rectangular boss to the currently active part, modifying that same document. Use for follow-up additions; do not call new_part first. Dimensions and depth are in mm. |
| add_pocket_to_partB | Cuts a circular or rectangular blind pocket into the currently active part, modifying that same document. Use for follow-up cut requests; do not call new_part first. Dimensions and depth are in mm. |
| new_assemblyB | Creates a new SolidWorks Assembly document (.SLDASM). |
| insert_assembly_componentA | Insert a saved part or subassembly at the given origin (mm), aligned to assembly axes. Returns its instance name. |
| mate_component_planesA | Mate two component planes coincident. Use Plane@Instance for each reference, for example Front Plane@Frame-1. |
| save_modelB | Saves the active SolidWorks document to a specified path. |
| close_modelB | Closes the active document in SolidWorks. |
| feature_extrude_bossB | Extrudes the currently open or selected 2D sketch into a 3D solid feature (depth in mm). |
| feature_extrude_cutC | Cuts through the 3D solid model using the active or selected sketch (depth in mm). |
| feature_revolve_bossC | Revolves a 2D sketch profile around its centerline to create a rotational solid (e.g. shaft, cylinder, sphere). |
| feature_revolve_cutC | Cuts material from the solid body by revolving a sketch profile around a centerline axis. |
| feature_filletC | Rounds edges of the solid body with a constant-radius fillet (radius in mm). |
| feature_chamferC | Bevels edges of the solid body with a chamfer (distance in mm, angle in degrees, default 45°). |
| feature_shellC | Hollows out the solid body leaving a specified wall thickness (in mm). |
| feature_circular_patternC | Patterns features circularly around the central axis (e.g. bolt holes, gear teeth, spokes). |
| rebuild_modelB | Regenerates and rebuilds the active SolidWorks model (EditRebuild3). |
| create_sketchB | Starts a new 2D sketch on a standard plane ('Front Plane', 'Top Plane', 'Right Plane') or planar face. |
| exit_sketchB | Closes and exits the active 2D sketch. |
| sketch_rectangleA | Draws a rectangle in the active sketch (dimensions in mm). center_based=True uses (x1, y1) as center and (x2, y2) as corner. |
| sketch_circleB | Draws a circle in the active sketch at center (xc, yc) with radius in mm. |
| sketch_lineA | Draws a line segment between (x1, y1) and (x2, y2) in mm. Set is_centerline=True for construction / axis of revolution. |
| sketch_polygonC | Draws a regular polygon (e.g. hexagon, pentagon) with N sides centered at (xc, yc) with radius in mm. |
| sketch_slotB | Draws a straight slot between two center points (x1, y1) and (x2, y2) with slot width in mm. |
| get_mass_propertiesA | Calculates mass (kg), volume (mm³), surface area (mm²), center of mass, and density of the active SolidWorks part. |
| get_feature_treeA | Inspects and lists all features in the FeatureManager design tree with their names, types, and suppression status. |
| set_materialC | Assigns an engineering material to the active part (e.g., '6061 Alloy', 'Plain Carbon Steel', 'AISI 304', 'Brass', 'ABS'). |
| capture_viewport_previewB | Captures a high-resolution isometric screenshot/rendering of the 3D model currently in the SolidWorks viewport. |
| execute_solidworks_scriptA | Executes custom Python CAD code directly against the live SolidWorks COM API. Variables available in scope: |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| cad_designer |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 47 tools
Several tools have clearly overlapping purposes: cad_agent, ai_design, and create_live_design all act as conversational design entry points with conversation_id, while modify_live_design explicitly covers holes/cuts/pockets/bosses that the separate add_hole_to_part, add_boss_to_part, and add_pocket_to_part tools also perform. add_boss_to_part versus feature_extrude_boss and lookup_standard_dimensions versus offline_standards further blur boundaries, so an agent can easily misselect.
There are readable sub-namespaces (sketch_*, feature_*, design_*) that group related tools, but the base convention is mixed: verbs come first in some (get_mass_properties, add_hole_to_part, save_model) and last in others (new_part, new_assembly, feature_extrude_boss), and a few tools have no clear verb-noun form at all (offline_standards, cad_agent, ai_design). It is understandable but not predictable.
47 tools is well above a comfortable working set and includes redundant entries (three conversational design tools, duplicate boss/hole/pocket paths) that inflate the surface. A CAD server legitimately needs breadth, but this count reflects overlap rather than cleanly earned scope.
The sketch and feature lifecycle, materials, mass properties, feature-tree inspection, assembly insertion/mating, and save/close are covered, which is substantial. However, notable gaps remain: no export/save-as STEP/STL, no delete or suppress-feature operation, no read-back of dimensions or part metadata beyond mass properties, and only plane-coincident mating in assemblies.