Skip to main content
Glama
hellstein-dev

fusion-mcp

surface_patch

Fills a closed sketch profile or B-Rep edge boundary with a new surface body, applying connected, tangent, or curvature continuity to patch openings.

Instructions

Patch surface: fill a closed boundary with a new surface body (Patch feature).

The boundary is a sketch profile, sketch curves or B-Rep edges (e.g. the free edges of an opening in a surface body). continuity/weight/flip apply to edges of bodies (ignored for sketch curves). Refs: profiles from sketch_profiles / sketch_draw, curves from sketch_* results, edges from inspect_query (refs of surface bodies change after trim/extend/stitch - take them from the latest results).

Next steps: close surfaces into a solid with surface_stitch and check is_solid; give a surface thickness with body_thicken.

Errors: join/cut operation, weight outside 0..1, a body ref -> INVALID_PARAMS (nothing changed); a boundary Fusion cannot fill -> FUSION_API_ERROR, rolled back.

Returns {"feature", "health", "created_bodies": [{ref, type, name, is_solid}], "modified_bodies", "removed_bodies"}.

Example: surface_patch(boundary=["profile:@0,0"])

Input Schema

NameRequiredDescriptionDefault
weightNoContinuity weight 0..1 (default 0.5)
boundaryYesClosed boundary: a profile ('profile:<sketch>@x,y' or a profile spec), sketch curve refs or edge refs (inspect_query); one open curve/edge is chained by Fusion
operationNonew_body (default) or new_componentnew_body
continuityNoconnected (default), tangent or curvature to the edges' facesconnected
flip_continuity_directionNoFlip the side the continuity is taken from

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.7/5.0
Behavior5/5

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

With no annotations, the description carries the full behavioral burden and does so well: it documents error behavior including INVALID_PARAMS with no changes and FUSION_API_ERROR with rollback, notes that surface body refs change after trim/extend/stitch, and describes the return structure.

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?

The description is front-loaded with the purpose and then organized into refs, next steps, errors, returns, and an example. Every paragraph contributes actionable information for a complex modeling operation, with no wasted prose.

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 five-parameter modeling tool with no output schema and no annotations, the description covers boundary forms, continuity semantics, reference freshness, error behavior, return shape, and follow-up operations. An agent has enough information to call the tool correctly and interpret common outcomes.

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 schema already documents parameters, but the description adds meaningful semantics for the boundary forms and clarifies that continuity, weight, and flip apply to body edges and are ignored for sketch curves. The operation parameter is left mostly to the schema enum, so this is strong but not fully exhaustive.

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 states a specific verb and resource: 'Patch surface: fill a closed boundary with a new surface body (Patch feature).' It clearly distinguishes the operation from related surface and body tools by naming next steps such as surface_stitch and body_thicken.

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 gives clear usage context: boundary can be a sketch profile, sketch curves, or B-Rep edges, and continuity/weight/flip apply only to body edges. It also names follow-up tools for closing and thickening surfaces, though it does not explicitly exclude alternatives like body_boundary_fill or surface_ruled.

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