Skip to main content
Glama

Validate a design

validate_design
Read-onlyIdempotent

Evaluates an OpenSCAD design without computing geometry to return syntax errors, unknown variables, failed asserts, warnings and echo output with file and line references.

Instructions

OpenSCAD: evaluates the current file of a design without computing geometry and returns errors, warnings and echo output with file, line and the affected source lines. Covers syntax errors, unknown variables and modules and failed asserts; it also sees changes typed in OpenSCAD's editor.

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

Input Schema

NameRequiredDescriptionDefault
nameYesDesign name, e.g. "broom-holder-28mm". Stored as lower-case letters, digits and dashes.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so safety and side-effect behavior are covered elsewhere. The description still adds genuine value beyond them: it discloses that geometry is not computed, the exact return payload (errors, warnings, echo with file, line and source lines), the error categories covered, and that unsaved editor changes are visible. That is real disclosure, but it stops short of cost, execution time, or what an empty result implies.

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?

Two sentences, front-loaded with the operation and its key differentiator, then the return payload and error coverage. The trailing note about OpenSCAD's editor is non-obvious and earns its place. No repetition of the title or the schema.

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?

With one required parameter, no nested objects and no output schema, the description carries the return-value burden and does so well by enumerating the result contents. It is nearly complete for this complexity; only the cost/performance profile and the meaning of a clean result are unstated.

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?

The schema documents the single `name` parameter at 100% coverage, including format conventions, so the description need not restate it. The description's reference to 'a design' loosely ties the parameter to the resource but adds no naming or casing guidance beyond the schema. Baseline 3 applies where the schema carries the parameter semantics.

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 ('evaluates the current file of a design') plus a precise scope constraint ('without computing geometry'), which implicitly separates it from a geometry-computing sibling such as analyze_design. An agent can classify the operation without opening any schema.

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?

The phrase 'without computing geometry' hints at when this is preferable to a heavier analysis pass, but no sibling is named and there is no explicit when-to-use or when-not-to-use statement. The note about seeing editor changes implies a use case (checking unsaved work) without routing the agent there explicitly.

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