Skip to main content
Glama
eng-toolkit

eng-toolkit

by Lin830326

Geometry Measure

geometry_measure

Measure B-rep CAD files (.step/.stp/.iges/.igs/.brep) in mm: volume, surface area, bounding box, mass, face/hole inventory, and up to 20 distance, angle, diameter, radius, area, or thickness queries.

Instructions

B-rep measurements of a 3D CAD model file (.step .stp .iges .igs .brep; read in millimetres): convergence-checked volume and surface area, conservative bounding-box size, optional mass, an inventory of faces by kind and of round holes (diameter, depth, through or blind), and up to 20 queries. 'queries' is a ';'-separated list of 'distance A B', 'angle A B' (degrees), 'diameter A', 'radius A', 'area A' and 'thickness P(x, y, z) ' (wall thickness along a ray). A and B are F (face number from data.faces), H (hole from data.holes) or P(10 mm, 0 mm, 5 mm) (a point, units required); axis is one of +x -x +y -y +z -z. Results q1, q2, ... follow the order of the queries. Face and hole ids belong to one file: call once without queries to read the inventory, then ask. A file without a closed solid (a shell, loose faces, or a solid whose shell is open) has no volume: surface_area becomes the primary value. Loose faces beside closed solids are left out of volume and mass, listed in data.closure, and warned about. Needs the optional cad engine (uv sync --extra cad). Mesh files (.stl) are not supported yet.

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_measure"
  }
}

Input Schema

NameRequiredDescriptionDefault
densityNoOptional material density with unit, e.g. '2700 kg/m^3'; adds 'mass'. Empty = no mass
queriesNoOptional ';'-separated queries, at most 20, e.g. 'distance F3 H1; angle F3 F6; diameter H1; thickness P(10 mm, 10 mm, 30 mm) -z'. A and B are F<n>, H<n> or P(x, y, z) with units. Empty = only the model properties and inventory
model_pathYesPath to the model: .step .stp .iges .igs or .brep
output_unitNoLength unit of the results, e.g. 'mm', 'um', 'inch'mm
inventory_limitNoFaces and holes listed in data, 0 to 500. inventory.json always lists all of them

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?

No annotations are supplied, so the description carries the whole burden, and it does: volumes are convergence-checked, bounding boxes are conservative, loose faces are excluded from volume/mass, listed in data.closure, and warned about, and open shells degrade gracefully to surface_area. It also discloses the external dependency (uv sync --extra cad) and the unsupported .stl input — exactly the failure and prerequisite context an agent needs.

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 capability inventory is front-loaded in the first sentence before the query grammar, which is the right order. The middle sections are dense and semicolon-heavy, and the query syntax is effectively stated twice (description and schema), but no sentence is pure filler.

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, single-purpose measurement tool with an output schema already covering return values, this description covers everything an agent needs: inputs supported, units, query syntax, id lifecycle, degradation behavior, and engine dependency. Nothing material is left for the agent to guess.

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 baseline is 3, but the description adds genuine semantics beyond the schema: the per-query result naming convention (q1, q2, ... in query order), the face/hole id scoping to a single file, and the requirement that point coordinates carry units. Notably it duplicates much of the schema's query-grammar example rather than extending it, which keeps it from a 5.

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 — "B-rep measurements of a 3D CAD model file" — and enumerates concrete outputs: convergence-checked volume, surface area, bounding box, optional mass, face/hole inventory, and up to 20 queries. This is precise enough to separate it from geometry_check_dfm, geometry_convert, or geometry_view without inspecting schemas.

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 workflow ("call once without queries to read the inventory, then ask") and a format/scope constraint (";"-separated, at most 20). It also states the .stl exclusion and that the optional cad engine is required. It stops short of naming which sibling tool to use for mesh files or for viewing, so it falls one step below a full when/when-not/alternative treatment.

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