Skip to main content
Glama
hellstein-dev

fusion-mcp

feature_sweep

Sweeps sketch profiles or planar faces along a path to create pipes, handles, springs, rails, or swept cuts, with options for twist, taper, and guide rails.

Instructions

Sweep sketch profiles or planar faces along a path - pipes, handles, springs (with twist), rails, swept cuts (operation="cut").

Units: angles in degrees (a string is a Fusion expression, e.g. "pitch_angle"); path_extent is a plain share of the path length; units only applies to {"sketch", "point"} profile specs. Refs: profiles from sketch_draw / sketch_profiles; path and guide rail from sketch_draw (sketch curve refs, the path sketch usually lies on a plane perpendicular to the profile sketch) or BRep edges from inspect_query. Do not mix sketch curves and edges in one path. With path_chain=true one curve is enough to take the whole connected chain. is_solid=false sweeps a surface (new_body / new_component only); the profile may then be open sketch curves or edges.

Rules: twist_angle / taper_angle with guide_rail -> INVALID_PARAMS; path_extent outside (0, 1] -> rejected; a path with gaps -> FUSION_API_ERROR. A feature Fusion computes with an error -> FUSION_API_ERROR and the timeline is rolled back; a warning keeps the feature and is reported in health.

Returns {"feature": {ref, type, name}, "health": {"state": ok|warning|error|unknown, "message"}, "created_bodies": [{ref, type, name}], "modified_bodies": [{ref, type, name}], "removed_bodies": [<refs of bodies consumed by join/cut>], "component"?: {ref, type, name} (new_component only)}.

Examples:

  • feature_sweep(profiles=["profile:@0,0"], path=[, ])

  • feature_sweep(profiles=[...], path=[], twist_angle=360)

  • feature_sweep(profiles=[...], path=[], guide_rail=[], rail_scaling="stretch")

Input Schema

NameRequiredDescriptionDefault
flipNoSweep the other way along the path
pathYesSweep path: sketch curve refs (sketch_draw) or BRep edge refs (inspect_query) - one kind only
unitsNoUnit of plain-number lengths and pointsmm
is_solidNotrue (default) = solid; false = surface body (new_body / new_component only; close surfaces with surface_stitch, check is_solid)
profilesYesProfiles to use: 'profile:<sketch>@x,y' refs from sketch_profiles / sketch_draw, {"sketch", "point"} / {"sketch", "curves"} / {"sketch", "all": true}, or planar face refs (inspect_query)
operationNonew_body (default), join, cut, intersect or new_componentnew_body
guide_railNoOptional guide rail (sketch curves or edges) that steers and scales the profile; excludes twist_angle and taper_angle
path_chainNotrue (default): extend each path/rail curve to every curve connected to it end to end (tangent chain for a single edge)
orientationNoperpendicular (default, the profile follows the path) or parallel (keeps its orientation)perpendicular
path_extentNoShare of the path to sweep along, (0, 1]
taper_angleNoTaper of the profile, degrees (no guide_rail)
twist_angleNoTwist over the whole path, degrees (no guide_rail)
rail_scalingNoWith guide_rail: scale (default), stretch or nonescale
participant_bodiesNoBody refs join/cut/intersect act on (default: every body it touches); not allowed with new_body / new_component

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations, the description bears the full disclosure burden and does so thoroughly: it names specific error outcomes (twist/taper + guide_rail -> INVALID_PARAMS, gaps -> FUSION_API_ERROR), states that an errored feature rolls back the timeline while a warning is kept and reported in `health`, and spells out side effects on bodies. This is exactly the kind of behavioral context annotations would otherwise provide.

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?

The purpose is front-loaded, then organized into Units/Refs, Rules, Returns and Examples blocks, which suits a 14-parameter feature. Every sentence is substantive, though the Returns block is dense and borders on verbose given no output schema exists to defer to.

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?

Given 14 parameters, no annotations and no output schema, the description closes every gap: it documents the return shape (feature, health, created/modified/removed bodies, component), enumerates failure modes, and gives three worked examples. An agent has everything needed to call it correctly.

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 100%, so the baseline is 3, but the description adds real meaning beyond it: units apply only to {sketch, point} profile specs, angles accept a Fusion expression string, path_extent is a plain share of path length, and guide_rail excludes twist/taper. A few parameters (flip, orientation, participant_bodies) are only clarified by the schema, holding it at 4 rather than 5.

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 opening line states a specific verb+resource: 'Sweep sketch profiles or planar faces along a path', immediately followed by concrete uses ('pipes, handles, springs (with twist), rails, swept cuts'). An agent can distinguish this from extrude, revolve and loft siblings without opening the schema.

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 tells the agent exactly where refs come from ('profiles from sketch_draw / sketch_profiles; path and guide rail from sketch_draw ... or BRep edges from inspect_query'), prohibits mixing sketch curves and edges in one path, and explains path_chain and is_solid=false constraints. It lacks an explicit 'use feature_loft/feature_extrude instead when...' comparison to siblings, which keeps it just below a 5.

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