Skip to main content
Glama
SolidWorks-MCP

SolidWorks-MCP

slice_mesh

Extract closed-loop cross-section profiles from STL/3MF meshes at specified heights along X, Y, or Z, returning polygon points in mm for modeling parts that fit existing mesh geometry.

Instructions

Cross-sections of an STL/3MF mesh at the given heights along axis 'x'/'y'/'z'.

For modelling a part that must fit something that only exists as a mesh. Returns each section's closed loops, largest first, as polygon points (mm) ready to use as profiles. frame (3MF): 'object' (the mesh's own frame) or 'build' (as placed on the slicer's plate). Needs no SolidWorks.

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": {
      "path": "<path>",
      "axis": "<axis>",
      "heights_mm": "<heights_mm>"
    },
    "name": "slice_mesh"
  }
}

Input Schema

NameRequiredDescriptionDefault
axisYes
pathYes
frameNoobject
heights_mmYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.5.0

TDQS

A4.1/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 delivers real behavioral detail: output is closed loops ordered largest first as polygon points in mm, usable directly as profiles, and no SolidWorks session is required. It omits edge-case behavior, such as what happens for heights outside the mesh's extent or for open/unclosed sections.

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?

Purpose is front-loaded in the first sentence, followed by use case, return format, and parameter notes in a compact block. The line-broken phrasing is slightly fragmented but no sentence is wasted.

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?

There is no output schema and no annotations, so the description must cover both; it does describe the return payload (closed loops, largest first, polygon points in mm) and the frame semantics. Remaining gaps are error/degenerate-section behavior and the exact contract of 'path'.

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 coverage is 0%, so the description must compensate. It explains axis values ('x'/'y'/'z'), the meaning of heights, and the frame enum ('object' vs 'build'), but never defines 'path' beyond the implicit mention that the input is an STL/3MF mesh, leaving format/relative-path expectations unstated.

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+resource: cross-sections of an STL/3MF mesh at given heights along a named axis. It is clearly distinguishable from SolidWorks-geometry siblings like cut_profile_through_plane or compare_with_mesh because it operates on a mesh file and 'Needs no SolidWorks.'

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 an explicit motivating scenario ('For modelling a part that must fit something that only exists as a mesh'), which tells the agent when this tool is the right choice over SolidWorks-based sectioning. It stops short of naming an alternative sibling or stating when not to use it.

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