Skip to main content
Glama

feature_extrude

Extrude a sketch on a datum plane or planar face into a solid, cut, or surface with configurable direction, depth, and thin-wall options.

Instructions

Extrude a sketch drawn on plane (a datum plane or planar face) into a solid, cut or surface.

frame="model" (recommended): entity points are 3D MODEL coordinates lying in the sketch plane (circle [x,y,z,r], line/rect [x1,y1,z1,x2,y2,z2], polygon/polyline/spline [[x,y,z],...], arc3 [9 numbers], slot [p1, p2, r], ellipse [x,y,z,rx,ry], point [x,y,z]). frame="sketch": 2D coordinates in Creo's sketch frame. On FRONT x->X, y->Y; on RIGHT (TOP up) x->-Z, y->Y; on TOP (RIGHT right) x->X, y->-Z. Direction: give direction="+Y" etc. (recommended, model axis the feature grows along; the bridge checks and flips if needed). Otherwise material goes to the NEGATIVE side of the plane's normal (FRONT -> -Z, RIGHT -> -X, TOP -> -Y); flip=true for the positive side; depth_type="symmetric" for both. entities (sketch frame): {"circle":[cx,cy,r]}, {"ellipse":[cx,cy,rx,ry]} -> solid, cut or surface {"line":[x1,y1,x2,y2]}, {"rect":[x1,y1,x2,y2]}, {"polygon":[[x,y],...]}, {"polyline":[[x,y],...]}, {"arc":[cx,cy,r,start_deg,end_deg]}, {"arc3":[x1,y1,xm,ym,x2,y2]}, {"spline":[[x,y],...]}, {"slot":[x1,y1,x2,y2,r]}, {"regular_polygon":[cx,cy,r,n,rot_deg]}, {"point":[x,y]} -> surface only. Any closed profile works for solid/cut (lines, arcs, splines, mixed) once the C sketch solver is enabled (sketch_solver_enable; otherwise only circles/ellipses close for solids). Several closed loops = a profile with holes. Open profiles: surfaces, or thin solids with thin=wall thickness (thin_side one/two/both). Sketch references are the datum planes perpendicular to the sketch plane (like Creo's sketcher); add more with refs=[...] (needed on an angled datum plane, e.g. the datum axis it was made through). orient_ref is a plane perpendicular to plane that faces orient in the sketch. References: a name (datum plane/axis/csys/point or feature name, e.g. "TOP"), a geometry id from geometry_list, or {"feature": name|id, "type": "surface|edge|axis|...", "index": n}.

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": {
      "plane": "<plane>",
      "entities": "<entities>"
    },
    "name": "feature_extrude"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileNo
flipNo
kindNosolid
nameNo
refsNo
thinNo
depthNo
frameNosketch
planeYes
cappedNo
orientNoRIGHT
entitiesYes
directionNo
thin_sideNoone
depth_typeNoblind
orient_refNoRIGHT
to_referenceNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.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 substantial work: it discloses the non-obvious default that material grows to the NEGATIVE side of the plane normal, that `flip=true` reverses it, that `depth_type="symmetric"` grows both ways, and that the bridge auto-checks and flips a supplied direction. Gaps remain on failure modes (open profile without `thin`, unsolved sketch) and body-merge behavior, which matter for a 17-parameter mutation.

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?

Front-loaded with the core action and the recommended frame, then organized into labeled blocks (Direction, entities, References). It is dense and long, but nearly every clause carries format or default information the empty schema does not, so little is filler; the entity-format enumeration being nested under the `frame` discussion makes it slightly harder to scan than it needs to be.

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 a 17-parameter CAD mutation with zero schema descriptions, the definition covers the hard conceptual parts (coordinate frames, entity encodings, growth direction) well, and the presence of an output schema means return values need no explanation. It is still incomplete on six parameters and on error behavior, so an agent could construct a call but would have to guess at `capped`, `to_reference`, and `depth`.

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 0% across 17 parameters, so the description must compensate, and it does for roughly two-thirds: frame, entities (with per-type coordinate shapes), direction, flip, depth_type, thin, thin_side, refs, orient_ref, and the reference-form syntax. However `file`, `name`, `capped`, `depth`, `orient`, and `to_reference` receive no explanation, and `to_reference` is not even tied to the `depth_type` enum value that consumes it.

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?

Opens with a precise verb+resource+outcome: 'Extrude a sketch drawn on `plane` ... into a solid, cut or surface.' The `plane` requirement and the three output kinds are named up front, and the extruded-vs-revolved distinction is implicit in the verb, so an agent can separate this from feature_revolve or feature_sweep 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?

Gives actionable selection guidance: `frame="model"` is marked '(recommended)' with the alternative and its coordinate mapping spelled out, `direction` is likewise '(recommended)' versus the default negative-normal behavior, and the sketch_solver_enable prerequisite for closed non-circle profiles is stated explicitly. It stops short of naming sibling alternatives (e.g. when to use feature_revolve instead), so it is clear context without explicit exclusions.

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