Skip to main content
Glama

analyze_mesh

Analyze exported STL, OBJ, or 3MF mesh files to report triangle and vertex counts, bounding box, surface area, volume, and topology issues such as open or non-manifold edges.

Instructions

Analyze an exported STL (binary/ASCII), OBJ, or 3MF mesh file.

Returns triangle/vertex counts, bounding box, surface area, signed/absolute volume, and topology checks (open boundary edges, non-manifold edges, watertightness).

Args: mesh_path: Path to a .stl, .obj, or .3mf file.

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": {
      "mesh_path": "<mesh_path>"
    },
    "name": "analyze_mesh"
  }
}

Input Schema

NameRequiredDescriptionDefault
mesh_pathYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/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 well: 'analyze' plus the enumerated metrics signal a non-mutating read/compute operation, and the topology checks (open boundary edges, non-manifold edges, watertightness) reveal the kind of results to expect. It stops short of stating limits such as file size, path accessibility requirements, or failure behavior on malformed meshes.

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

Conciseness5/5

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

Front-loaded purpose sentence, a compact parenthetical of return metrics, and one argument line — no filler. The Args block is short enough that it doesn't read as boilerplate padding.

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

Completeness4/5

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

An output schema exists, so explaining return values is optional, yet the description still gives a useful preview of the metrics. For a single-parameter, low-complexity analysis tool this is nearly complete; only path-resolution and error/limit behavior are left unstated.

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 0% (mesh_path has only a title), so the description must compensate, and it does by defining the argument as a path and constraining accepted extensions to .stl, .obj, and .3mf. It does not say whether the path must be absolute, workspace-relative, or readable by the server, which is the remaining ambiguity.

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 opens with a specific verb+resource ('Analyze an exported ... mesh file') and enumerates the supported formats (STL binary/ASCII, OBJ, 3MF), then lists exactly what is computed. This makes it easy to separate from siblings like export_block_mesh, which produces the file this tool consumes.

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?

Usage is only implied by the phrase 'exported ... mesh file', which suggests it runs against files previously written out by export_block_mesh. There is no explicit when-to-use, when-not-to-use, or named alternative, so an agent must infer the workflow position.

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