Skip to main content
Glama
gpambrozio

onshape-mcp

by gpambrozio

Sweep a profile along a path

onshape_sweep

Sweep closed sketch regions along a path sketch to create, add, remove, or intersect bodies in Onshape CAD.

Instructions

Sweep the closed regions of one sketch along the edges of another.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
opNoNEW makes a new body; ADD/REMOVE/INTERSECT combine with existing bodies (default NEW).
wsYesWorkspace id — the <ws> segment of the document URL.
docYesDocument id — the <doc> in cad.onshape.com/documents/<doc>/w/<ws>/e/<elem>.
elemYesElement id (tab) — the <elem> segment of the document URL.
nameNoFeature name shown in the tree (default "Sweep").
pathYesFeature id of the path sketch.
profileYesFeature id of the profile sketch.
validateNoRe-read the feature list afterwards and fail if the feature regenerated with an error (default true).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

Annotations provide only a title, so the description must carry the behavioral burden. It adds a key prerequisite: the profile must have closed regions and the path is the edges of another sketch. It does not disclose mutation behavior, validation behavior, or failure modes, but it is not misleading and gives useful operational context.

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 a single, front-loaded sentence with no filler. It communicates the essential operation clearly and compactly.

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

Completeness3/5

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

For an 8-parameter CAD feature tool with no output schema, the description provides the core mechanics but lacks operational context such as how the sweep interacts with existing bodies beyond the op enum, what the result looks like, and when the operation is likely to fail. The schema covers all parameters, making it minimally viable.

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

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents all 8 parameters in sufficient detail. The description itself adds no parameter-level meaning, so the baseline score of 3 is appropriate.

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 states a specific verb ('Sweep'), a specific resource ('closed regions of one sketch'), and the mechanism ('along the edges of another'). This clearly distinguishes it from sibling modeling operations like extrusion or revolution.

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?

The description implies the intended use case: sweeping a sketch profile along a path defined by another sketch's edges. However, it does not explicitly name alternatives such as onshape_extrude or onshape_revolve, nor does it state when sweep should be preferred over them.

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

Deploy Server

Other Tools