Skip to main content
Glama
hjbaard

SolidWorks-MCP

swept_region

Trace the planar outline a moving component sweeps across joint values, then merge cut regions at given heights to avoid or cut away material. Returns counter-clockwise spline outlines for sketches.

Instructions

Outline what a component covers in a plane while a joint moves, to keep clear of it or cut it away.

Steps the joint's dimension through values (as check_motion, e.g. every 5 degrees over 30..150), cuts the component at axis = each of heights_mm (a few heights inside a layer, not on its faces) and joins all of it, made margin_mm wider, within about tolerance_mm. frame: the component to give the coordinates in, such as the part to cut from; else the assembly's. Each region's outline runs counter-clockwise in the plane's other two axes, (x, y) across z: give it to add_sketch as a spline. count says how many separate regions there are.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
axisNoz
frameNo
valuesYes
componentYes
dimensionYes
margin_mmNo
heights_mmYes
tolerance_mmNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.13.0

TDQS

A4/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 so well: it discloses the sampling/stepping behavior, that cutting happens off the layer faces, that the join is made margin_mm wider within tolerance_mm, and the counter-clockwise winding convention. It omits nothing critical for invocation, though it does not discuss cost, failure modes, or the exact return shape beyond 'count'.

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 opening sentence, and the dense follow-on sentences each carry real constraint information (stepping, margins, winding, downstream use). It is a little stream-of-consciousness and could be tightened, but there is no filler.

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 an 8-parameter, no-output-schema, no-annotation geometric tool, the description supplies enough -- process, key constraints, orientation, and the count/count-of-regions hint -- for an agent to call it correctly. Return detail is light but the essential contract is covered.

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 coverage is 0%, so the description must compensate, and it largely does: it explains values (the stepped joint dimension), heights_mm (a few heights inside a layer, not on faces), margin_mm, tolerance_mm, frame (component vs assembly default), and axis (the cut axis). Only dimension and component are left somewhat implicit.

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?

The first sentence gives a specific verb and resource -- outlining what a component sweeps in a plane as a joint moves -- which is a distinct operation. It does not explicitly contrast against near relatives like add_swept_profile or cut_profile_through_plane, so an agent must still infer the boundary, but the core purpose is unambiguous.

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?

It states the goal (to keep clear of the swept volume or cut it away) and ties the operation into a workflow, naming check_motion as the analogous stepping tool and add_sketch as the consumer of the result. No explicit when-not or alternative selection is given, so it stops short of a 5.

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