Skip to main content
Glama

Read a design

get_design
Read-onlyIdempotent

Retrieve the current OpenSCAD design code with metadata and parameter details, or fetch the code for a specified earlier version by design name.

Instructions

OpenSCAD: returns the current code of a design with its metadata and its parameters (name, value, range, description), or the code of one earlier version.

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

Input Schema

NameRequiredDescriptionDefault
nameYesDesign name, e.g. "broom-holder-28mm". Stored as lower-case letters, digits and dashes.
versionNoAn earlier version; default is the current code.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/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 the safety profile is covered. The description's main addition is the return payload — code plus metadata and parameter records broken into name, value, range, description — which is useful given there is no output schema. It still says nothing about failure behavior for unknown names or what metadata fields are included.

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 front-loaded sentence that leads with the platform and the primary return value before the alternate version mode. Dense but every clause carries information; the nested parenthetical is the only slight readability cost.

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 takes on the job of describing returns and does so adequately: code, metadata, parameter records with sub-fields, plus the prior-version variant. For a two-parameter read tool this is nearly sufficient, though metadata contents and error cases remain unspecified.

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%, and the schema already documents 'name' formatting and that 'version' defaults to current, so the baseline is 3. The description's parenthetical clarifies the shape of the design's parameters, not the input arguments, so it adds little meaning beyond 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 verb and resource: returns the current code of a design plus metadata and parameters, or the code of one earlier version. The two modes (current vs. prior version) are clearly distinguished. It does not name how it differs from siblings like list_versions or list_designs, so it falls short of a 5.

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 only implied: read this when you need a design's source code or its parameter definitions. The mention of 'one earlier version' implicitly signals when the version argument applies, but there is no explicit when-not guidance and no named alternative for enumerating versions (list_versions) or inspecting a design without fetching code.

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