Skip to main content
Glama
Mfrostbutter

fusion-cad-mcp

by Mfrostbutter

rebuild_feature

Rebuild a stale extrude feature by capturing its inputs, deleting it, and re-creating from the current sketch. Returns a structured error for unsupported feature types with recommendations.

Instructions

Rebuild a feature whose downstream references are stale (G10) by capturing its inputs, deleting it, and re-creating from the current sketch.

Supported feature classes: ExtrudeFeature (DistanceExtent, ProfilePlaneStart or OffsetStart, 1 or N profiles in the same sketch). This is the most common G10 case — a feature that got healthState=1 (warning, using cached geometry) after a sketch geometry rewrite.

Returns structured not_supported_for_rebuild error for other feature classes (fillet, chamfer, hole, revolve, etc.) with a recommendation:

  • FilletFeature/ChamferFeature broken by upstream edits: SUPPRESS instead (gotcha G11; edge re-binding is design-specific geometric matching).

  • Others: delete + re-create via the appropriate add_* tool.

Profile matching: when the original sketch has more than one profile, picks the new profile whose area is closest to the captured original area. Falls back to profile[0] if no area was captured.

Failure mode warning: if delete succeeds but recreate fails (e.g., sketch name changed, multiple profiles spread across sketches), the response sets ok=false and includes a WARNING field instructing the agent to undo via Fusion's undo and try again manually.

Args: feature_name: Name of the feature to rebuild. Walks root + every sub-component. component_name: Optional hint for disambiguation.

Chain pattern: edit_sketch_dimension -> audit_feature_health -> for each broken extrude in features list, rebuild_feature -> audit_feature_health.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
feature_nameYes
component_nameNo
Behavior5/5

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

With no annotations, the description carries full responsibility for behavioral disclosure. It clearly reveals that the tool captures inputs, deletes the feature, recreates it from the current sketch, selects profiles by area proximity, and returns ok=false with a WARNING if deletion succeeds but recreation fails. It also indicates traversal semantics across root and sub-components.

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?

Although long, the description is well-structured with labeled sections: supported classes, error/recommendation behavior, profile matching, failure mode, args, and chain pattern. The opening sentence leads with the core purpose, and every section provides decision-relevant detail without fluff.

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?

For a destructive two-step tool with no output schema and no annotations, the description covers supported inputs, alternative strategies, failure handling, profile-matching heuristics, and troubleshooting/undo guidance. This gives an agent sufficient context to invoke and recover from failures correctly.

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

Parameters5/5

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

The input schema has 0% description coverage, so the description must compensate. It does: feature_name is documented as walking root and every sub-component, and component_name is described as an optional disambiguation hint. This adds meaningful usage context beyond the schema types.

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 opens with a specific verb and resource: 'Rebuild a feature whose downstream references are stale (G10) by capturing its inputs, deleting it, and re-creating from the current sketch.' It also enumerates supported feature classes and distinguishes this operation from other modeling tools.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explicitly tells when to use the tool (broken extrudes with stale cached geometry), when not to use it (fillet/chamfer/hole/revolve), and what to do instead: suppress fillet/chamfer features, or delete and re-create others via appropriate add_* tools. The chain pattern further clarifies its role in a broader repair workflow.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Mfrostbutter/fusion-cad-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server