Skip to main content
Glama
SolidWorks MCP

SolidWorks MCP

by zmf678

add_swept_profile

Sweeps a closed profile along a 2D path to model rails, gaskets, trim, or channels, and returns measured mass properties.

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_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": {
      "profile_mm": "<profile_mm>",
      "path_mm": "<path_mm>"
    },
    "name": "add_swept_profile"
  }
}

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.20.0

TDQS

A4.3/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 well: it discloses that the result returns mass properties, states the hard constraint that the path MUST start at the origin heading +X, and gives the volume relation. It does not say whether an existing body is modified versus a new body created, or what happens on invalid input, which keeps it from a 5.

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-loads the core action, then attaches semantics to each parameter in order; nearly every clause carries technical payload (units, planes, axis mapping, constraints). It is dense rather than padded, though the reference-style definition of corner_radii_mm and the trailing 'Use new_part first' would read better reordered.

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 five-parameter geometry-creation tool with no annotations and no output schema, the definition covers inputs, coordinate frames, constraints, prerequisite sequencing, and the return value ('mass properties'). The remaining gap is lifecycle behavior—whether it adds a feature to the active part—which an agent would still have to infer.

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

Parameters4/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 largely does: profile_mm's coordinate mapping (u → -Z, v → +Y on the Right plane), path_mm's plane and start-orientation requirement, and bend_radius_mm's corner-rounding role are all explained. corner_radii_mm is only defined by reference to add_extruded_profile, and the name parameter is untouched.

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?

States a specific verb and resource ('Sweep an arbitrary closed PROFILE along a 2D PATH') and immediately scopes it to non-round cross-sections (rails, gaskets, trim, channels), which implicitly separates it from the round-tube sibling add_swept_pipe. An agent can identify the operation without opening the 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 list ('non-round extrusions along a path') plus a sequencing prerequisite ('Use new_part first'), which routes the agent correctly. It stops short of explicitly naming add_swept_pipe or stating exclusions, so the when-not-to-use side is only implied.

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