Skip to main content
Glama
SolidWorks MCP

SolidWorks MCP

by zmf678

add_lofted_solid

Create a lofted solid by blending two or more closed profiles on parallel planes stacked along +Z, returning mass properties for validation.

Instructions

Loft (blend) 2+ closed profiles on parallel planes stacked along +Z.

profiles_mm: per profile a polygon [[x,y],鈥 (mm) in Front-plane coords, or a round section {"center_mm": [x, y], "diameter_mm": d} (thick at the knee, thin at the foot, centres free to wander). heights_mm = the +Z offset (mm) of each profile, same length, strictly increasing, starting at 0. A 2-profile loft is a ruled transition; 3+ blend smoothly. Each profile starts at its first vertex (a round one on +x): give polygons in a consistent vertex order to avoid twist. 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": {
      "profiles_mm": "<profiles_mm>",
      "heights_mm": "<heights_mm>"
    },
    "name": "add_lofted_solid"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoLoft
heights_mmYes
profiles_mmYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.20.0

TDQS

A4.1/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, that heights must be strictly increasing and start at 0, that the arrays must match in length, and that inconsistent vertex order causes twist. It omits failure behavior and whether profiles must be closed/non-self-intersecting beyond the opening phrase.

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?

Purpose is front-loaded in the first line and the parameter notes follow logically. Some parenthetical asides ('thick at the knee, thin at the foot, centres free to wander') and a garbled character are noise, but overall it is compact for the amount of geometric information conveyed.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a mutation tool with zero annotations, no output schema, and 0% schema coverage, the description supplies the domain semantics, ordering constraints, unit conventions, and a return-value hint ('Returns mass properties'). It also points to new_part as a setup step, leaving little an agent would need to guess.

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: profiles_mm is defined as either a polygon [[x,y],...] in Front-plane mm coordinates or a round section dict with center_mm and diameter_mm, and heights_mm is defined as the +Z offset per profile with matching length and strictly increasing values from 0. Only the optional 'name' parameter is undescribed, which is negligible given its default.

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?

States a concrete verb and resource ('Loft (blend) 2+ closed profiles') plus the geometric constraint of parallel planes stacked along +Z, which distinguishes it from extruded, revolved, and swept profile siblings without naming them. It is clear what the tool builds, though it never explicitly contrasts itself with add_swept_profile or 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?

Gives the prerequisite 'Use new_part first' and explains that a 2-profile loft is ruled while 3+ blend smoothly, which helps shape the call. It offers no guidance on when to choose loft over the swept/revolved alternatives or what happens if the ordering constraints are violated.

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