Skip to main content
Glama

validate_generated_mesh

Read-only

Checks that a generated STL, OBJ, GLB, or 3MF mesh reads correctly, has reasonable dimensions and polygon count, and is watertight, flagging invalid or open geometry before slicing.

Instructions

Validate a 3D mesh file's geometry.

        Checks that the file is a valid STL, OBJ, GLB, or 3MF, has reasonable
        dimensions, an acceptable polygon count, and is manifold
        (watertight).  It does not judge whether the part PRINTS (a sound
        mesh can still rest on a point): ``analyze_printability`` gives
        that verdict, and ``validate_and_prepare`` runs the whole
        pre-print check.

        ``message`` calls the mesh valid only when it reads and is
        closed.  ``validation.valid`` says the file reads as a mesh;
        ``validation.closed_solid`` says whether it is a closed solid
        (it reads, and every piece is closed), and a mesh that is not is
        told so in ``message`` and in ``validation.warnings``.

        Args:
            file_path: Path to an STL, OBJ, GLB, 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": {
      "file_path": "<file_path>"
    },
    "name": "validate_generated_mesh"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_pathYesPath to an STL, OBJ, GLB, or 3MF file.

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 an STL, OBJ, GLB, or 3MF file."
  2. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, but the description adds real value beyond them by decoding the response semantics: 'message' flags validity only when the mesh reads and is closed, 'validation.valid' means it reads as a mesh, and 'validation.closed_solid' means every piece is closed, with failures surfaced in warnings. The only shortfall is that it does not say what a non-watertight mesh costs downstream or whether large files are rate- or time-limited.

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?

Front-loaded with the core purpose, then the boundary conditions, then the response-field mapping — a sensible order. It is somewhat long and the duplicated Args line restates the schema, but nearly every sentence carries decision-relevant information about result fields.

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 single-parameter read-only validation tool with no output schema, the description compensates by explaining exactly which response fields mean what and how they differ. Nothing essential for correct invocation or result interpretation appears to be missing.

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?

With one parameter at 100% schema coverage, the schema already documents 'file_path', and the description's Args block repeats the same sentence verbatim. It adds no extra meaning such as path conventions (absolute vs relative), size limits, or behavior for unsupported extensions, so the 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?

States a specific verb and resource ('Validate a 3D mesh file's geometry') and immediately enumerates the concrete checks performed: format validity, dimensions, polygon count, and manifoldness. It explicitly carves itself out from siblings by naming 'analyze_printability' for print verdicts and 'validate_and_prepare' for the full pre-print check.

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 an explicit negative boundary ('It does not judge whether the part PRINTS') plus the exact alternative for that need, and names a second alternative for the broader workflow. An agent can route between this, analyze_printability, and validate_and_prepare without inference.

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