Skip to main content
Glama
SolidWorks MCP

SolidWorks MCP

by zmf678

add_swept_pipe

Creates a pipe, tube, or rod by sweeping a circular profile of specified diameter along a 2D centerline path on the Front plane, using bend radii or smooth splines for turns.

Instructions

Sweep a circular profile (pipe/tube/rod) along a 2D path on the Front plane.

path_mm = [[x, y], 鈥 in mm is the centreline. Interior corners are rounded with bend_radius_mm (required when the path turns; a 2-point straight path needs none); smooth=True runs a spline through the points instead, a flowing curve. diameter_mm = outer Ø; the round profile is auto-generated perpendicular to the path. Returns mass properties (pi r^2 x path_length_mm). 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": {
      "path_mm": "<path_mm>",
      "diameter_mm": "<diameter_mm>"
    },
    "name": "add_swept_pipe"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoPipe
smoothNo
path_mmYes
diameter_mmYes
bend_radius_mmNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.20.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations at all, the description carries the full burden and does much of it: it discloses the working plane, that the profile is auto-generated perpendicular to the path, how interior corners are treated, what smooth=True does geometrically, and that mass properties are returned. It stops short of saying whether the result is a new body or merged into existing geometry, and what happens if the path self-intersects or bend_radius is too large.

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 verb and resource, then parameter semantics in a single dense paragraph with no filler sentences. The parenthetical chaining and one mojibake character slightly hurt readability, but virtually every clause adds information.

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 5-parameter, no-annotation, no-output-schema geometry tool, the definition supplies path format, conditionality of bend radius, spline behaviour, and even the mass-property formula in lieu of a return schema. What is missing is body/merge semantics and failure behaviour, which are relevant for a modelling operation.

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 description coverage is 0%, so the description must compensate, and it does: it defines path_mm's nested [[x, y]] mm centreline format, diameter_mm as the outer diameter, bend_radius_mm as conditional ('required when the path turns; a 2-point straight path needs none'), and smooth as spline interpolation. Only the trivial 'name' parameter (schema title 'Name', default 'Pipe') is left implicit.

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 specific verb and resource — 'Sweep a circular profile (pipe/tube/rod)' — plus the plane and path constraint (2D path on the Front plane). The 'circular profile' qualifier makes it distinguishable from a generic profile-sweep sibling without naming it, so the agent can identify the operation from the first line.

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?

Explicitly states the prerequisite 'Use new_part first', which prevents a common ordering error, and the parenthetical 'pipe/tube/rod' signals the intended modelling use case. It does not, however, give a when-not-to-use condition or route to an alternative sweeping/cylinder tool.

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