Skip to main content
Glama
eng-toolkit

eng-toolkit

by Lin830326

Geometry View

geometry_view

Writes STEP/IGES/BREP CAD models as colored GLB files and generates PNG previews with multiple views and legends, including optional DFM or face-highlight coloring.

Instructions

Write a solid 3D CAD file (.step .stp .iges .igs .brep, mm) as a coloured GLB for 3D viewers and, by default, a PNG picture of the same colours (isometric plus front, top, right views, legend, size in mm), also an image in the reply: hand over the PNG first. GLB: one material per colour, each primitive's extras list its face ids (F, as in geometry_measure); B-rep edges as lines if show_edges. color_by: 'none' (grey), 'face_kind' (plane, cylinder, cone, sphere, torus, bspline, other), 'dfm' (worst geometry_check_dfm finding per face: error red, warn orange, info blue; process, tool_axis, limits as there) or 'highlight' (faces in highlight, 'F3,F7', or named groups with a colour each: 'bends: F5,F12; holes: F3-F4'). GLB is metres, +Y up. 'focus': close-up panel of faces; 'dfm' rings mark findings. Also writes view.json. Returns triangle_count, face_count, highlighted_face_count, finding_count. Shells, loose faces, .stl refused. Needs the optional cad engine (uv sync --extra cad).

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": {
      "model_path": "<model_path>"
    },
    "name": "geometry_view"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoStem of the GLB file and node name: 1 to 64 letters, digits, '_' or '-'. Empty = the input file's stemview
focusNoClose-up panel in the PNG on these faces: 'F3,F7' (F14-F19), a highlight group name, or a DFM finding 'D2'. Empty = none
limitsNocolor_by 'dfm' only: JSON limits as in geometry_check_dfm, e.g. {"min_wall": "1 mm"}. Empty = defaults
previewNo'png' (default): also write a PNG picture, isometric + front, top, right views and legend; 'iso': isometric only; 'none'png
processNocolor_by 'dfm' only: 'cnc_milling' or 'sheet_metal', as in geometry_check_dfmcnc_milling
color_byNo'none', 'face_kind', 'dfm' or 'highlight'; anything else is refusedface_kind
highlightNocolor_by 'highlight' only: face ids 'F3,F7' (range F14-F19), or colour groups 'bends: F5,F12; holes: F3-F4' (up to 8)
tool_axisNocolor_by 'dfm', cnc_milling: spindle axis, one of +x -x +y -y +z -z. Empty = +z, with a warning
model_pathYesPath to the solid model: .step .stp .iges .igs or .brep
show_edgesNoAdd the B-rep edges as a line primitive (GL_LINES) to the GLB, and draw them in the PNG
max_secondsNoWall-clock budget in seconds, 1 to 600; default 120. A running OpenCASCADE call cannot be interrupted
inline_imageNotrue (default): the PNG also comes back as an image block in the reply when it is <= 600 kB; false: path only.
mesh_deflectionNoChord error of the tessellation, 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.4/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 behavioural burden and does so thoroughly: it states the default PNG and GLB outputs, colour semantics, face-id extras, GLB units and axis orientation, the view.json side effect, refusal cases, and the optional CAD engine dependency. It also clarifies what the PNG contains and when the image is returned inline.

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 definition is dense and front-loads the main output, then elaborates on GLB structure and colour modes without obvious filler. Some sentences are long and semicolon-heavy, which slightly reduces readability, but the information earns its place for a complex 13-parameter tool.

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?

Given a complex rendering tool with an output schema and full schema description coverage, the description provides enough context to call it correctly, including defaults, side effects, refusal cases, and colour-mode semantics. No critical operational information appears to be missing from the definition itself.

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 description coverage is 100%, so the baseline is 3, but the description adds meaningful semantics beyond the schema for color_by modes, highlight group syntax, focus panels, and DFM colour mapping. It does not add much beyond the schema for parameters such as max_seconds or mesh_deflection, but those are already well documented.

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 gives a specific verb and resource: writing a solid CAD file as a coloured GLB and, by default, a PNG with named views and legend. It also distinguishes the output from related tools by tying face extras to geometry_measure and DFM colouring to 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 Guidelines3/5

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

The intended use, producing files for 3D viewers, is clear from the purpose statement, and the description notes refusals and the optional CAD engine requirement. However, it never explicitly says when to choose this over geometry_convert or fem_view, leaving alternative selection implicit.

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