Skip to main content
Glama

draft_check

Validates planning-stage CAD specs before modeling: checks dimension expressions, feature containment, min wall, declared checks, fits, and optional STL mesh alignment; gate on PASS/FAIL.

Instructions

Assert a draft spec — the planning-stage gate, before any CAD exists.

Checks that every dimension expression resolves, that features sit inside their
outline and hold the declared min_wall, that the `checks:` expressions hold, and
that declared fits land in their clearance class. Pass `stl` to also assert an
exported mesh still matches the draft (bbox, and drafted holes present at the
right diameter and position). Final line is `PASS` or `FAIL:` — gate on it.

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": {
      "spec": "<spec>"
    },
    "name": "draft_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
stlNo
specYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/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 well: it enumerates the four assertion classes (dimension resolution, outline/min_wall, `checks:` expressions, fit clearance classes) and the extra mesh assertions when `stl` is passed. It also discloses the machine-readable outcome ('Final line is `PASS` or `FAIL:` — gate on it'), though it says nothing about side effects, failure granularity, or runtime cost.

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 purpose and stage, then assertions, then the optional-parameter branch, then the output contract. Dense but every clause conveys a distinct check; slightly long single paragraph with no structural breaks, but no filler.

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?

For a two-param validation gate with an output schema, this covers what is checked and how to interpret the result, which is the decision-relevant content. The remaining gap is the nature of the required `spec` argument, which no other field in the definition supplies.

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 0%, so the description must compensate. It fully explains `stl` — optional, enables mesh checks on bbox and drafted hole diameter/position — but `spec` (a required string) is never characterized as a path, inline text, or identifier, leaving the primary input ambiguous.

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 (assert) and resource (draft spec), plus the scope that separates it from post-CAD validation: 'the planning-stage gate, before any CAD exists.' An agent can tell this apart from check/project_run without opening a schema.

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?

Clearly situates usage at the planning stage and gives a conditional branch: 'Pass `stl` to also assert an exported mesh still matches the draft.' It does not name a sibling alternative for when a spec has graduated to CAD, so the when-not case is only implied by 'before any CAD exists.'

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