Skip to main content
Glama

generate_template_variations

Create multiple variations of a parametric template by sampling parameter values across valid ranges to explore design options or offer user choices.

Instructions

Generate multiple variations of a parametric template.

        Creates N variations by sampling parameter values across their
        valid ranges.  Useful for exploring design space or offering
        choices to the user.

        :param template_id: Template ID (e.g. ``"phone_stand"``).
        :param variation_count: Number of variations (1-10, default 3).
        :param parameter_ranges: Optional overrides ``{param: [min, max]}``.
        :param printer_id: The printer the part is for.  Its nozzle sets
            the template's nozzle size; leave empty for the only printer
            Kiln knows of, else a stated default.
        :returns: Dict with list of generated variations and their files.

MAKE DOORS: design_session, Kiln's front door for making an object, is not installed here (signed in to Kiln it runs on Kiln's servers). On this install compile_scad IS the make → preview → iterate loop: make it, show the preview, iterate.

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

Input Schema

NameRequiredDescriptionDefault
printer_idNoThe printer the part is for. Its nozzle sets the template's nozzle size; leave empty for the only printer Kiln knows of, else a stated default. Default: "".
template_idYesTemplate ID (e.g. ``"phone_stand"``).
variation_countNoNumber of variations (1-10, default 3). Default: 3.
parameter_rangesNoOptional overrides ``{param: [min, max]}``.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.6.0
    • addedInput schema / properties / printer_id
      Added value: +{
      +  "description": "The printer the part is for.  Its nozzle sets the template's nozzle size; leave empty for the only printer Kiln knows of, else a stated default. Default: \"\".",
      +  "title": "Printer Id",
      +  "type": "string"
      +}
  2. Changed3 schema fields changedv1.5.1
    • addedInput schema / properties / parameter_ranges / description
      Added value: +"Optional overrides ``{param: [min, max]}``."
    • addedInput schema / properties / template_id / description
      Added value: +"Template ID (e.g. ``\"phone_stand\"``)."
    • changedInput schema / properties / variation_count / description
      Previous value: -"Default: 3."New value: +"Number of variations (1-10, default 3). Default: 3."
  3. Changed3 schema fields changedv1.5.0
    • removedInput schema / properties / parameter_ranges / default
      Removed value: -null
    • removedInput schema / properties / variation_count / default
      Removed value: -3
    • addedInput schema / properties / variation_count / description
      Added value: +"Default: 3."
  4. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, and openWorldHint=false, so the agent knows this is a non-destructive local operation. The description contributes that it samples parameters across valid ranges and returns a dict with variations and their files, but never says whether those files are persisted to disk or where, which matters for a non-read-only tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core two sentences are front-loaded and clear, but the leftover Sphinx ':param:' and ':returns:' markup duplicates the input schema line for line and adds no reader value. The trailing MAKE DOORS paragraph about design_session and compile_scad is off-topic for this specific tool and dilutes focus.

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 ':returns:' line usefully tells the agent to expect a dict of variations plus file references. Parameters are fully covered and the sampling behavior is described, leaving only minor gaps around persistence and default-range resolution.

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 :param: block restates the schema text nearly verbatim, so no new meaning is added. Edge cases an agent might want, such as what happens when parameter_ranges conflicts with the template's own bounds or what all-valid sampling means, are left unstated.

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?

The description states a specific verb and resource ('Generate multiple variations of a parametric template') and adds the mechanism ('Creates N variations by sampling parameter values across their valid ranges'). It does not distinguish itself from near neighbors like generate_from_template, smart_generate_from_template, or optimize_template_params, so an agent must infer the boundary.

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?

It offers a use case ('exploring design space or offering choices to the user'), which implies when to reach for it, but gives no explicit when-not conditions and names no alternative tool. The appended note about compile_scad being the make/preview/iterate loop is about a different door and does not tell the agent when to pick this tool instead.

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

Deploy Server

Other Tools