Skip to main content
Glama
eng-toolkit

eng-toolkit

by Lin830326

Geometry Convert

geometry_convert

Converts 3D model files between STEP, IGES, BREP, STL, and GLB while reporting conversion losses such as lost exact surfaces, units, axes, and assembly data.

Instructions

Convert a 3D model file to another format and report what the conversion lost. Input: STEP/IGES/BREP (.step .stp .iges .igs .brep, read in millimetres) or an STL mesh (.stl, binary or ASCII, read as millimetres). Output 'step', 'brep' (exact, from STEP/IGES/BREP only), 'stl' (binary, millimetres) or 'glb' (glTF binary: metres and +Y up, the conversion is applied). STL as input converts to 'stl' or 'glb' only: a mesh is not a solid and is never turned into STEP or BREP. The converted file is an artifact with its sha256; the input is never modified. Mesh outputs tessellate the exact surfaces to triangles within mesh_deflection. Returns volume_in, volume_out and volume_relative_change (read back from the written file; no volume for a shell, a solid whose shell is open, loose faces beside solids, or an open mesh: then surface_area_out is the primary value), triangle_count for mesh outputs, and data.losses: every loss in plain words (exact surfaces become triangles, units converted, GLB axes, names/colours/assembly dropped, float32 precision). Needs the optional cad engine for STEP/IGES/BREP input or output (uv sync --extra cad); STL to STL or GLB needs no engine.

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": {
      "input_path": "<input_path>",
      "output_format": "<output_format>"
    },
    "name": "geometry_convert"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoStem of the output file and product name: 1 to 64 letters, digits, '_' or '-'. Empty = the input file's stem
input_pathYesPath to the model: .step .stp .iges .igs .brep or .stl, at most 100 MB
output_formatYes'step', 'stl', 'glb' or 'brep'. An STL input can only go to 'stl' or 'glb'
mesh_deflectionNoChord error of the tessellation for stl/glb output of a STEP/IGES/BREP, 0.001 mm to 100 mm, e.g. '0.01 mm'0.01 mm

Output Schema

NameRequiredDescriptionDefault
okYes
dataNoNon-quantity payload (reports, listings)
errorNo
valueNoPrimary quantity result
valuesNoAll named quantity results (includes the primary)
warningsNo
artifactsNo
provenanceYesWhat produced the result and from which inputs.
review_statusNounreviewed

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.1

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does so: input is never modified, output is an artifact with a sha256, volumes are read back from the written file, volumes are omitted for shells/open solids/open meshes with surface_area_out as fallback, and data.losses enumerates every fidelity loss in plain words. The optional-engine prerequisite is also disclosed.

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?

The core action and the loss-reporting promise are front-loaded, then formats, restrictions, outputs and prerequisites follow in a logical order. It is a dense single block and a few parenthetical format details (e.g. 'binary or ASCII', '+Y up') could be tightened, but essentially every clause carries information an agent needs.

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 format-conversion tool with an output schema, the description covers input limits (100 MB via schema), engine prerequisites, format legality, precision/units behaviour, and the failure-mode fallback for volume reporting. Nothing an agent needs in order to call it correctly is missing.

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 a baseline of 3 applies, but the description adds real meaning beyond it: mesh_deflection is explained as the chord error governing tessellation of exact surfaces into triangles, and the format restrictions on output_format given an STL input are restated as a hard rule rather than a hint.

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 specific verb+resource+outcome: 'Convert a 3D model file to another format and report what the conversion lost.' It then enumerates accepted inputs and exact output formats, which distinguishes it cleanly from the sibling drawing_convert (2D drawings) and from geometry_measure/geometry_check_dfm.

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 concrete usage conditions: STL input can only go to 'stl' or 'glb' because 'a mesh is not a solid and is never turned into STEP or BREP', and the cad engine is needed only for STEP/IGES/BREP input or output. It does not explicitly name a sibling alternative for 2D drawing conversion, but the applicability rules are otherwise unambiguous.

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