Skip to main content
Glama

mesh_quality_scorecard

Read-only

Assess mesh and CAD files for printability, structural stability, efficiency, and quality, returning mesh area notes and a three-band CAD intake report.

Instructions

Assess a model — a review in words for a mesh, an intake report for a CAD file. Neither carries a score or a grade.

        **For a mesh** (.stl, .obj, .glb) it reviews four areas:
        - **Printability**: ``analyze_printability``'s own verdict for
          ``material`` / ``printer_id`` — pass the ones you gave
          ``analyze_printability`` and the two match
        - **Structural**: aspect ratio, base stability, component count
        - **Efficiency**: fill ratio, support waste
        - **Quality**: triangle density, degenerate count

        and returns the printability verdict and each area's notes.
        ``subject`` is ``"mesh"``.

        **For a CAD file** (.step, .stp) it returns an INTAKE REPORT.
        ``subject`` is ``"cad_file"``, in three bands:

        - ``exact`` — read from the user's file by the CAD kernel:
          volume, surface area, envelope, validity, solid/shell/face
          counts, in mm.  These match their CAD package to the decimal
          and are the numbers to quote back to them.
        - ``measured`` — what genuinely needs triangles (overhangs,
          stability, floating parts), with the conversion named and this
          part's own conversion difference stated.
        - ``about_our_copy`` — triangle and degenerate counts for Kiln's
          generated mesh, as counts, never scored.

        When quoting a CAD part's size to a user, quote ``exact`` —
        ``about_our_copy`` describes Kiln's mesh, not their design.

        :param file_path: Path to a mesh (.stl, .obj, .glb) or a CAD file
            (.step, .stp).
        :param material: Material the printability verdict is judged for
            (default ``"pla"``).
        :param printer_id: Optional printer the printability verdict is
            judged for.
        :returns: Dict with the printability verdict and each area's notes
            for a mesh; the three-band intake report for a CAD 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": "mesh_quality_scorecard"
  }
}

Input Schema

NameRequiredDescriptionDefault
materialNoMaterial the printability verdict is judged for (default ``"pla"``). Default: "pla".
file_pathYesPath to a mesh (.stl, .obj, .glb) or a CAD file (.step, .stp).
printer_idNoOptional printer the printability verdict is judged for. Default: "".

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.6.0
    • changedInput schema / properties / material / description
      Previous value: -"Material the printability factor is judged for (default ``\"pla\"``). Default: \"pla\"."New value: +"Material the printability verdict is judged for (default ``\"pla\"``). Default: \"pla\"."
    • changedInput schema / properties / printer_id / description
      Previous value: -"Optional printer the printability factor is judged for. Default: \"\"."New value: +"Optional printer the printability verdict is judged for. Default: \"\"."
  2. Changed3 schema fields changedv1.5.1
    • addedInput schema / properties / file_path / description
      Added value: +"Path to a mesh (.stl, .obj, .glb) or a CAD file (.step, .stp)."
    • changedInput schema / properties / material / description
      Previous value: -"Default: \"pla\"."New value: +"Material the printability factor is judged for (default ``\"pla\"``). Default: \"pla\"."
    • changedInput schema / properties / printer_id / description
      Previous value: -"Default: \"\"."New value: +"Optional printer the printability factor is judged for. Default: \"\"."
  3. Changed2 schema fields changedv1.5.0
    • addedInput schema / properties / material
      Added value: +{
      +  "description": "Default: \"pla\".",
      +  "title": "Material",
      +  "type": "string"
      +}
    • addedInput schema / properties / printer_id
      Added value: +{
      +  "description": "Default: \"\".",
      +  "title": "Printer Id",
      +  "type": "string"
      +}
  4. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, openWorldHint=false, so the safety bar is covered; the description then adds substantial non-obvious behavior. It discloses the output shape (four review areas for meshes, three bands for CAD), the crucial caveat that 'exact' values come from the CAD kernel while 'about_our_copy' describes Kiln's generated mesh and must not be quoted as the user's design, and that conversion differences are stated per part. It does not cover failure modes for unsupported or corrupt files.

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 behavior and organized into clearly headed mesh and CAD sections with a closing caution about which numbers to quote. It is long (~250 words) but nearly every line carries routing or interpretation value; the opening 'review in words' framing plus the scorecard-name caveat is slightly redundant.

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?

With only three parameters, no output schema, and annotations already covering safety, the description carries the return-value burden and does so: it enumerates the mesh review areas and the CAD three-band structure and labels the subject values. Nothing an agent needs in order to call this correctly for either supported file type 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?

Schema coverage is 100% and each parameter already has a description, so the baseline is 3. The description does add real meaning for material and printer_id by explaining they must match the values previously given to analyze_printability for the verdicts to agree, which the schema alone does not convey; file_path semantics are only restated from the schema.

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 resource (a mesh or CAD model) and a specific action (produce a qualitative review / intake report), and immediately clarifies that despite the 'scorecard' name there is no score or grade. The mesh-vs-CAD branching is spelled out by file extension, so an agent knows which mode it lands in. It stops short of distinguishing itself from nearby siblings such as diagnose_mesh or validate_print_quality by name.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives clear context for routing: meshes (.stl/.obj/.glb) get the four-area review, CAD files (.step/.stp) get the intake report, and material/printer_id should mirror what was passed to analyze_printability so the verdicts agree. There is no explicit 'use X instead when...' exclusion, so the agent must infer when a focused sibling like analyze_printability alone is the better call.

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