Skip to main content
Glama
hjbaard

SolidWorks-MCP

by hjbaard

add_lofted_solid

Blend multiple closed polygon profiles stacked along the Z-axis to create a lofted solid with smooth transitions between cross-sections.

Instructions

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

profiles_mm = [[[x,y],…], …] (mm), one polygon per profile in Front-plane coords. 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. Give profiles in a consistent vertex order to avoid twist. For non-rotational transitions (round shapes: use add_revolved_profile/add_cone). Returns mass properties. Use new_part first.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNoLoft
heights_mmYes
profiles_mmYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A4.5/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 of behavioral disclosure. It explains coordinate system, units, profile ordering, twist avoidance, ruled vs smooth blending, return value, and prerequisite. It does not detail failure modes or explicitly state that the operation is additive, but the name and 'add' imply that.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is compact and front-loaded; the first sentence states the core operation, and subsequent lines add only necessary constraints, alternatives, and return behavior. There is no filler or redundant restating of the schema.

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 complex loft operation with no schema descriptions, annotations, or output schema, the description covers input format, constraints, behavior, alternatives, return type, and prerequisite. The only missing piece is the exact structure of the returned mass properties, which is a minor gap.

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%, but the description fully documents both required parameters: profiles_mm as nested coordinate arrays in Front-plane coordinates, and heights_mm as +Z offsets with length, ordering, and start constraints. The optional name parameter is not described, but it has a default and is low-risk.

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?

The description opens with a specific verb and resource: 'Loft (blend) 2+ closed polygon profiles on parallel planes stacked along +Z.' It clearly states what the tool does and distinguishes it from siblings by naming alternatives for round shapes. This is far more informative than a tautology.

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?

The description explicitly says to use add_revolved_profile/add_cone for round shapes and instructs 'Use new_part first,' providing both an exclusion and a prerequisite. However, the phrase 'non-rotational transitions' is slightly confusing because round shapes are typically rotational, so the guidance is not perfectly unambiguous.

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