Skip to main content
Glama

mesh-check

STL mesh check: open edges, non-manifold edges, inverted normals — Checks a binary or ASCII STL mesh of up to 4000 triangles for a 3D-printing or CAD agent: open (boundary) edges, edges shared by more than two triangles, inconsistent winding, degenerate and duplicate triangles, normals that disagree with the vertex order, and an inside-out (negative signed volume) closed mesh, with triangle indices as witnesses. Input is base64 of the STL file (up to 200084 bytes

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": {
      "data": "<data>"
    },
    "name": "mesh-check"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataYesPadded base64 of the STL file, binary or ASCII.
weldToleranceNoVertices closer than this (grid-snapped, model units) are treated as the same vertex. Default 0: exact float32 equality.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/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 does substantial work: it discloses the hard limits (4000 triangles, ~200 KB input), enumerates the six-plus failure classes, and notes that findings come back with triangle indices as witnesses. What remains undisclosed is behavior on limit violation (error vs. truncation) and whether the check is purely read-only, so it falls short of a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The headline list ("open edges, non-manifold edges, inverted normals") is then re-enumerated at greater length in the body, which is redundant rather than additive. The text also terminates mid-clause ("up to 200084 bytes" with an unclosed parenthesis), leaving the sentence visibly truncated and the byte limit stated ambiguously.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, so the description must convey return shape, and it only gestures at it ("triangle indices as witnesses") without saying whether results are per-finding, pass/fail, or counts. For a diagnostic tool with six detection classes, the absence of any return-structure or error-behavior statement is a meaningful gap.

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 description coverage is 100%, so both parameters are already documented, including weldTolerance's grid-snap semantics. The description only restates that input is base64 of the STL file and adds nothing about weldTolerance's effect on findings, so baseline 3 applies.

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?

Names a specific verb and resource ("STL mesh check") and enumerates exactly what is validated: open edges, non-manifold edges, inconsistent winding, degenerate/duplicate triangles, normal-vs-winding disagreement, and negative signed volume. An agent can tell this apart from any sibling check tool without opening the schema.

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?

It states the intended audience ("for a 3D-printing or CAD agent") and the input type, which implies when the tool applies, but gives no explicit when-not conditions, no prerequisites, and no routing to alternatives. Given the sibling list is entirely other *-check tools, some differentiation statement would have been valuable.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources