Skip to main content
Glama
hellstein-dev

fusion-mcp

surface_trim

Trim surfaces with a cutting tool by removing chosen cells: inspect cell centers first, then pass one point per cell to delete, keeping points within max distance.

Instructions

Trim surfaces with a tool and remove the cells nearest to the given points.

Call surface_trim_cells first to see the cells (center / bbox / area in mm), then pass a point per cell to remove (in units, default mm). Several points in one cell remove it once. Cells are never addressed by index.

Errors: a point farther than max_distance from every cell -> INVALID_PARAMS with details.cells (the available cells) and nothing changed; a tool that cuts nothing -> INVALID_PARAMS reason "no_cells".

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

Example: surface_trim(trim_tool="origin:XY", remove_points=[[0, 0, 20]])

Input Schema

NameRequiredDescriptionDefault
unitsNoUnit of plain-number lengths and pointsmm
trim_toolYesCutting tool: surface body, face, construction plane / origin:XY|XZ|YZ or sketch curve
max_distanceNoHow far (in `units`) a point may be from its cell
remove_pointsYesPoints [x, y, z] in `units`, each on or near a cell to remove (e.g. a cell center from surface_trim_cells)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/5

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

No annotations exist, so the description carries the full burden and does so well: it discloses unit handling, that multiple points in one cell collapse to a single removal, that cells are never addressed by index, that a failed trim changes nothing, and the exact INVALID_PARAMS reasons. Return payload keys are also enumerated.

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, then errors, returns, and a concrete example — a sensible ordering. A small amount of duplication with the schema (units default mm) and dense phrasing keep it from being a clean 5.

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?

Despite no output schema and no annotations, the description covers the prerequisite inspection step, the error contract, and the return shape, which is everything an agent needs to call this destructive geometry operation correctly.

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 all four parameters and the baseline is 3. The description adds genuine semantics beyond it — the point-per-cell addressing model, the dedup rule for multiple points, and the max_distance error consequence — though the units default restates the schema.

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 specific verb and resource ("Trim surfaces with a tool") plus the secondary effect ("remove the cells nearest to the given points"). This clearly separates it from the sibling surface_trim_cells (which only inspects cells) and surface_untrim (which reverses the operation).

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?

Explicitly prescribes the workflow: "Call surface_trim_cells first to see the cells... then pass a point per cell to remove," naming the sibling tool and the prerequisite data. It also documents the failure conditions that route the agent back to inspection (point beyond max_distance, tool that cuts nothing).

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