Skip to main content
Glama

analyze_mesh_geometry

Read-only

Computes volume, surface area, center of mass, overhangs, connected components, and degenerate triangles to reveal mesh geometry and printability issues before slicing.

Instructions

Deep geometric and printability analysis of a 3D mesh.

        Goes beyond basic validation to compute volume, surface area,
        center of mass, overhang detection, connected components (floating
        parts), and degenerate triangles.  For whether the part prints,
        call ``analyze_printability``: its verdict is the answer.

        Use this after generating a model to understand its geometry and
        identify printability issues before sending to the slicer.

        For a STEP/STP CAD file this converts it first and every metric
        below is measured on Kiln's mesh copy — except an added ``exact``
        block, which carries the volume, surface area and envelope read
        from the CAD file's own surfaces.  Those two disagree slightly
        and the exact ones are the part's: quote ``exact`` when telling
        a user how big their CAD part is.  ``mesh_quality_scorecard``
        gives the same file a fuller intake report.

        A mesh of more than one body also gets ``body_pairs``: for each
        pair of bodies, nearest first, the smallest gap between them in
        mm and, where two overlap, the volume they share (they print
        fused).  It is what a print-in-place part (gears in a ring, a
        pin in its knuckles) is designed against.  Bodies are numbered
        as the fusion findings number them, and each one's centre, box
        and volume say which part it is.

        :param file_path: Path to a mesh (.stl, .obj, .glb, .3mf) or a CAD
            file (.step, .stp), which is converted automatically.
        :returns: Dict with full mesh analysis metrics, plus ``exact``
            for CAD input and ``body_pairs`` for a mesh of several bodies.
        

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": {
      "file_path": "<file_path>"
    },
    "name": "analyze_mesh_geometry"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_pathYesPath to a mesh (.stl, .obj, .glb, .3mf) or a CAD file (.step, .stp), which is converted automatically.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.5.1
    • addedInput schema / properties / file_path / description
      Added value: +"Path to a mesh (.stl, .obj, .glb, .3mf) or a CAD file (.step, .stp), which is converted automatically."
  2. First observedv0.1.0

TDQS

A4.6/5.0
Behavior4/5

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

The annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so safety is covered; the description then adds substantial behavior beyond that: STEP/STP input is auto-converted and metrics are measured on the mesh copy, with an added 'exact' block read from CAD surfaces that can disagree and should be quoted to users. It also explains that multi-body meshes gain a 'body_pairs' block with gap/overlap semantics and body numbering keyed to fusion findings. The only shortfall is that it never explains cost or limits of the analysis on large meshes.

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 opening sentence front-loads the purpose and the metric list follows immediately, so the reader gets the gist in one line. The body is dense but each paragraph covers a distinct concern (metric set, routing to siblings, CAD exact-vs-mesh discrepancy, body_pairs); some phrasing, such as 'its verdict is the answer,' is slightly redundant and could be trimmed.

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?

There is no output schema, and the description compensates by enumerating the computed metrics and calling out the two conditional return blocks, 'exact' for CAD input and 'body_pairs' for multi-body meshes. For a single-parameter, read-only analysis tool this leaves nothing an agent needs in order to call it or interpret its result.

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?

Only one parameter and schema coverage is 100%, so the schema already carries the type and format list. The description still adds behavior the schema cannot express: CAD files are converted automatically rather than rejected, and all metrics are measured on Kiln's mesh copy with a separate exact block for CAD surfaces.

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 ('deep geometric and printability analysis of a 3D mesh') and enumerates the concrete metrics computed: volume, surface area, center of mass, overhangs, connected components, degenerate triangles. It also distinguishes itself from the siblings analyze_printability and mesh_quality_scorecard by naming each and stating the division of labor.

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?

Gives explicit timing ('use this after generating a model ... before sending to the slicer') and explicit exclusions for two named alternatives: analyze_printability owns the print verdict, mesh_quality_scorecard owns the fuller intake report. The agent knows both when to pick this tool and when to route away.

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