Skip to main content
Glama

ProtoJoint

Sweep

sweep

Sweeps closed profiles of a sketch along a path: the chain of connected curves through path_entity of the sketch path_sketch_id (lines, arcs and splines joined end to end). Draw the profile on a plane across the path's start. Optionally twisted (degrees over the whole path).

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": {
      "sketch_id": "<sketch_id>",
      "path_sketch_id": "<path_sketch_id>",
      "path_entity": "<path_entity>"
    },
    "name": "sweep"
  }
}

Input Schema

NameRequiredDescriptionDefault
twistNoDegrees (default 0).
bodiesNoOnly these bodies take part in join, cut or intersect; every other body is left as it is. Leave out to act on every body the new solid meets. Use it whenever bodies of a design touch or nest - holes in a board that sits on standoffs, a slot in a lid but not in the base under it.
profilesNoProfile indices from add_geometry / get_sketch (closed regions of the sketch): [0, 2], one index, or "all".
operationNonew: a new body; join: add to the body it touches; cut: remove material; intersect: keep the overlap.
sketch_idYes
path_entityYesAn entity id of the path, from add_geometry.
path_sketch_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare a non-read-only, non-destructive, non-idempotent modeling operation; the description adds geometric preconditions (closed profiles, connected curve chain, profile plane orientation) that go beyond them. It says nothing about what happens to bodies the sweep does not hit, or that the cut operation removes material despite destructiveHint=false, so the gap between annotation and operation semantics remains undisclosed.

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?

Three tight sentences, front-loaded with the operation and the path concept, then prerequisites, then the optional twist. Every clause carries information; only the parenthetical curve-type list is close to 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 a 7-parameter CAD construction tool with no output schema, the definition covers the essential geometry contract and the meaning of the two sketch references. Remaining gaps - failure modes, what the returned feature looks like, and interaction with the operation/bodies parameters - are moderate but not blocking for a modeler familiar with sweep semantics.

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?

With 71% schema coverage, the description meaningfully disambiguates the two sketch ids by establishing that the profile comes from sketch_id while the chain of curves comes from path_sketch_id, and it explains path_entity as an entity of that path. It also adds meaning to twist by scoping degrees over the whole path rather than per segment, though sketch_id itself is still undocumented anywhere.

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 specific verb (sweep) and resource (closed profiles of a sketch along a path) and pins down what the path is: connected curves joined end to end through path_entity of path_sketch_id. It never names a sibling like loft or extrude, so differentiation from those tools is left to inference.

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 a concrete geometric prerequisite - draw the profile on a plane across the path's start - which guides correct invocation. It does not say when to choose sweep over loft/extrude/coil, nor what to do when the path is not a single connected chain.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources