Skip to main content
Glama

Set parameters

set_parameters

Updates a design's default OpenSCAD parameter values and saves a new version; omit params to list parameters with types, values, ranges, and descriptions.

Instructions

OpenSCAD: changes the default values of a design's parameters in the file (the plain assignments at the top that OpenSCAD's Customizer also offers) and saves the result as a new version. Only the values change; code and comments stay as they are. Called without params it lists the parameters with type, current value, range and description.

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

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.
previewNoAttach an image of the changed model. Default: true.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Adds substantive behavior beyond the annotations: the write path creates a new version rather than mutating in place (explaining why destructiveHint is false despite a write), and comments/code are preserved. It also discloses that the tool has a non-writing listing mode, which the readOnlyHint=false annotation alone would not reveal. It does not cover failure behavior for unknown parameter names or what identifier the new version returns.

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?

Three sentences, each carrying distinct information: what changes, what is preserved and versioned, and the alternate no-argument mode. The listing behavior is placed last as a secondary mode, which is appropriate front-loading; no redundant restatement of the title or 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?

For a three-parameter tool with a nested free-form object and no output schema, the description covers the risky parts: versioning side effect, preservation of code/comments, and dual-mode invocation. The remaining gap is the return value on the write path (e.g. a new version identifier), which an agent would need to chain into list_versions or restore_version.

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%, so all three parameters are already documented, giving a baseline of 3. The description adds one genuinely new fact beyond the schema: omitting `params` switches to listing mode rather than erroring. It says nothing about `preview` or about what happens for names not present in the file.

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: it changes a design's default parameter values in the file and saves a new version. It also discloses a second listing mode ('Called without `params` it lists the parameters with type, current value, range and description'), which an agent could not guess from the name. The parenthetical explaining that these are the plain top-of-file assignments the Customizer exposes distinguishes it from code editing.

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 both modes: pass `params` to change values and persist a new version, omit it to inspect current parameters. The statement 'Only the values change; code and comments stay as they are' implicitly routes structural edits elsewhere, but no sibling is named explicitly and no precondition (e.g. design must exist) is given.

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