Skip to main content
Glama

Analyze a design

analyze_design
Read-onlyIdempotent

Analyze a parametric OpenSCAD design by rendering its final geometry and reporting dimensions, bounding box, facet count, solidity, z=0 placement, and printer build-volume fit without writing files.

Instructions

OpenSCAD: renders the final geometry of a design and reports its size and bounding box in mm, facet count, whether the mesh is a closed solid, whether the part sits on z = 0, and whether it fits the build volume of each configured printer (also turned 90° around Z). Writes no file. params analyzes a variant without changing the design.

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": "analyze_design"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesDesign name, e.g. "broom-holder-28mm". Stored as lower-case letters, digits and dashes.
paramsNoParameter overrides as name → value, e.g. {"pole_diameter": 32, "label": "A"}. Values are numbers, booleans, strings or lists of those.
printerNoPrinter to check against: a configured or built-in profile id (e.g. "a1mini") or a build volume "WIDTHxDEPTHxHEIGHT" in mm. Default: every configured profile.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, and the description usefully corroborates this with "Writes no file" and the non-persistent `params` variant analysis. Rendering is typically the expensive step here, yet the description says nothing about cost, duration, or failure modes for invalid geometry, so it adds only modest context beyond the annotations.

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?

Front-loaded with the tool's identity and outcome, then a compact list of results, then two short scoping facts. No filler, no restatement of the title, and every clause carries information an agent needs.

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 no output schema, the description carries the return-value burden, and it does so by enumerating exactly which measurements come back. What remains open are pagination or output formatting questions, which are irrelevant here, but it matters that the cost of a render and behavior on failed renders go unstated.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, and the description earns an extra point by explaining the semantics of `params`: overrides are applied for analysis only and do not mutate the stored design, which is not evident from the schema alone. The `printer` and `name` parameters are left entirely to 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?

Uses a specific verb pair ("renders ... and reports") plus an enumerated list of reported results: size, bounding box in mm, facet count, watertightness, z=0 seating, and per-printer build-volume fit. That distinguishes it clearly from export/create siblings, but it never names validate_design or explains how geometric analysis differs from validation.

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?

Supplies concrete routing cues: "Writes no file" contrasts with export tools, and "`params` analyzes a variant without changing the design" tells the agent when to pass overrides rather than calling update_design/set_parameters. It stops short of explicitly naming alternatives or stating when-not to use it.

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