Skip to main content
Glama

sw_extrude

Create a sketch and extrude or cut it in one step on the active SOLIDWORKS document, defining profile contours in mm and setting the extrusion range from z0 to z1.

Instructions

Croquis + extrusion en un solo paso sobre el documento activo. Todo en mm. El croquis va en el plano indicado y la extrusion crece en +Z desde z0 hasta z1 (z0 >= 0; si z1 < z0 se invierte). cut=true elimina material en vez de anadirlo.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
z0YesCota inicial en mm, >= 0.
z1YesCota final en mm.
cutNo
nameNoNombre para la operacion en el arbol.
mergeNo
planeNoIndice del plano de referencia: 0 = primero del arbol (XY).
profileYesContornos del croquis, en mm. Cada entidad es uno de: {"type":"circle","x":0,"y":0,"d":10} | {"type":"rect","x0":0,"y0":0,"x1":10,"y1":5} | {"type":"polyline","points":[[0,0],[10,0],[10,5]],"close":true} | {"type":"hexagon","cx":0,"cy":0,"af":5,"rot":0}. Varias entidades en la misma lista = un solo croquis: un contorno exterior con otros dentro produce agujeros.
throughNoPor todo: ignora z1 como profundidad y atraviesa todo el material. z1 sigue marcando el sentido. Mas robusto que la profundidad ciega para agujeros pasantes.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/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 it delivers real behavioral detail: units are mm, extrusion grows +Z from z0 to z1, the z1 < z0 case inverts direction, and cut=true switches from additive to subtractive. It does not mention document mutation side effects, undo, or rebuild requirements, but the core geometry behavior and the add/cut distinction are well disclosed.

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?

Four dense sentences, front-loaded with the operation and units, then geometry direction, then the cut modifier. No filler, and every clause carries information an agent needs.

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 mutation tool with no annotations and no output schema, the description covers units, direction, inversion, and cut semantics well. It leaves the role of merge, name, and plane to the schema, which is acceptable given 75% coverage, though it could have noted the tool rebuilds/modifies the active document.

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 75%, so the schema already documents profile, plane, z0/z1 and through. The description adds cross-parameter semantics the schema lacks: the +Z growth direction, the z0 >= 0 constraint, the inversion rule when z1 < z0, and what cut=true means. This meaningfully exceeds the per-field descriptions.

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?

States a precise verb+resource (combine sketch + extrusion in one step) and scopes it to the active document. No sibling covers extrusion, so it does not need to disambiguate against sw_new_part or the sw_api_* tools. An agent immediately knows a profile geometry becomes an extruded feature.

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?

It implies the case for use ('en un solo paso') and the cut=true alternative for material removal, but gives no explicit when-to-use vs. when-not or a pointer to any alternative approach (e.g., scripting via sw_execute_script). Usage is inferable rather than stated.

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