Skip to main content
Glama
nain-mcp-validator

nain-mcp-validator

validate_mesh_invariants

Validates 3D triangular mesh invariants (C1–C10)—watertightness, 2-manifoldness, sliver threshold, winding, genus, and body count—to catch geometry defects before downstream use.

Instructions

Deterministic validation of 3D triangular mesh invariants (checks C1-C10) including watertightness, 2-manifoldness, quantum sliver threshold, and normal winding.

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": {
      "vertices": "<vertices>",
      "faces": "<faces>"
    },
    "name": "validate_mesh_invariants"
  }
}

Input Schema

NameRequiredDescriptionDefault
facesYesList of [i0, i1, i2] vertex index triplets.
genusNoExpected genus/through-holes (default: 0).
bodiesNoExpected number of disjoint bodies (default: 1).
verticesYesList of [x, y, z] coordinate triplets.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full disclosure burden. 'Deterministic' is a useful claim (same input yields same verdict, no mutation of the mesh), but for a validation tool the critical behavior — whether failures are returned as a report, raised as errors, or collected per check C1-C10, and whether it is read-only — is entirely unstated.

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?

A single dense sentence that front-loads the operation and then the specific checks; no filler or repetition of the tool name. Slightly list-heavy, but every clause (C1-C10 range plus named invariants) conveys information an agent would otherwise have to guess.

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?

Parameters are fully covered by the schema and the purpose is unambiguous, so the definition is usable as-is. However, with no annotations and no output schema, the description leaves the agent without any notion of the return value (pass/fail summary vs. per-check diagnostics) or failure semantics for a moderately complex validator.

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 vertices, faces, genus, and bodies are already documented in the schema; the baseline of 3 applies. The description adds nothing about the two expectation parameters ('genus' and 'bodies'), which are the least self-explanatory of the four and would benefit from a note about how they alter the check outcome.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb ('validation') and resource ('3D triangular mesh invariants') and enumerates the concrete checks (watertightness, 2-manifoldness, sliver threshold, normal winding), which lets an agent immediately recognize the domain. It does not differentiate itself from the two siblings, though those names ('generate_conformance_report', 'verify_content_digest') suggest different domains, so the omission is minor.

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 implied by the tool name and by 'validation of mesh invariants' — an agent can infer it should call this when it has a vertex/face mesh and needs geometric correctness checks. There is no explicit statement of when not to use it, no prerequisite (e.g., mesh must be indexed/triangulated), and no pointer to 'generate_conformance_report' as the follow-up for reporting.

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