Skip to main content
Glama

generate_ashtray

Create a custom 3D ashtray model with configurable shape, size, material, cigarette rests, and optional text/photo/QR branding, then open an interactive 3D preview to orbit and inspect.

Instructions

Generate an ashtray with optional branding; adding a QR code needs Kiln Pro. Opens Kiln's interactive inline 3D stage on the result (orbit/zoom panel in MCP Apps hosts; hosted sessions add a browser stage link). 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.

INLINE 3D STAGE: on success this tool opens Kiln's interactive 3D stage — an inline viewer panel the user can orbit, zoom, and turn over — in hosts that render MCP Apps panels (Kiln's hosted connection attaches a browser stage link for hosts that don't). Oversized meshes are decimated automatically for the stage; the PNG preview is the floor, not the whole experience.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "generate_ashtray"
  }
}

Input Schema

NameRequiredDescriptionDefault
topNoInterior base content — ``"text:..."`` for debossed text, the path of a photo or logo to carve into the floor, or empty for plain. A file that is not there is refused. Default: "".
sizeNoSize preset — ``"small"``, ``"medium"``, ``"large"``, ``"xl"``. Any other name is refused. Default: "".
shapeNoAshtray shape — ``"round"`` (default) or ``"square"``. Default: "round".
bottomNoBottom config — ``"plain"``, ``"pocket"``, ``"text:..."`` or ``"qr:URL"``. A pocket, QR code or lettering here under a photo or lettering on ``top`` raises the floor inside the ashtray until both fit; the outside is unchanged and the reply gives the new floor thickness. Default: "plain".
goal_idNoOptional saved-goal id from ``design_session``. When supplied, the produced mesh gets a ``design_brief:<id>`` intent sidecar so the audit's "matches what you asked for" gate, the brief failure_history wiring, and the ``compare_design_versions`` intent diff all light up against the saved goal. Omit to skip — REST callers without a goal still get an auto-inferred brief at dispatch time. Default: "".
materialNoMaterial (default PLA — warns if not heat-safe). Default: "PLA".
height_mmNoHeight in mm (default 35, min 25). Default: 35.0.
body_colorNoBody color (default white for QR contrast). Default: "white".
photo_maskNoPhoto crop shape for a photograph (a logo on a clean field is carved unmasked whatever is passed; a name outside this list is refused) — ``"circle"``, ``"rectangle"`` or ``"rounded_rectangle"``. Empty follows the ashtray's shape: a disc for ``"round"``, rounded corners for ``"square"``. Default: "".
diameter_mmNoDiameter in mm (default 100). Default: 100.0.
include_stepNoAlso emit a CAD-exact STEP file — REAL analytic B-rep from the same typed parameters, never a tessellated conversion. On success the response gains a ``step`` block with ``step_path``. Photo interiors and QR bottoms refuse honestly — the mesh outputs are always unaffected. Default: false.
cigarette_restsNoRest grooves on the rim (default: 3 on round, 4 on square — one per corner; range 0-6 round, 0-4 square).
color_overridesNoJSON dict mapping role → color name/hex (e.g. ``'{"body": "baby blue"}``). Default: "".

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.6.0
    • removedInput schema / properties / brief_id
      Removed value: -{
      -  "description": "Optional saved-goal id from ``design_session``. When supplied, the produced mesh gets a ``design_brief:<id>`` intent sidecar so the audit's \"matches what you asked for\" gate, the brief failure_history wiring, and the ``compare_design_versions`` intent diff all light up against the saved goal.  Omit to skip — REST callers without a goal still get an auto-inferred brief at dispatch time. Default: \"\".",
      -  "title": "Brief Id",
      -  "type": "string"
      -}
    • addedInput schema / properties / goal_id
      Added value: +{
      +  "description": "Optional saved-goal id from ``design_session``. When supplied, the produced mesh gets a ``design_brief:<id>`` intent sidecar so the audit's \"matches what you asked for\" gate, the brief failure_history wiring, and the ``compare_design_versions`` intent diff all light up against the saved goal.  Omit to skip — REST callers without a goal still get an auto-inferred brief at dispatch time. Default: \"\".",
      +  "title": "Goal Id",
      +  "type": "string"
      +}
  2. Changed13 schema fields changedv1.5.1
    • changedInput schema / properties / body_color / description
      Previous value: -"Default: \"white\"."New value: +"Body color (default white for QR contrast). Default: \"white\"."
    • changedInput schema / properties / bottom / description
      Previous value: -"Default: \"plain\"."New value: +"Bottom config — ``\"plain\"``, ``\"pocket\"``, ``\"text:...\"`` or ``\"qr:URL\"``.  A pocket, QR code or lettering here under a photo or lettering on ``top`` raises the floor inside the ashtray until both fit; the outside is unchanged and the reply gives the new floor thickness. Default: \"plain\"."
    • changedInput schema / properties / brief_id / description
      Previous value: -"Default: \"\"."New value: +"Optional saved-goal id from ``design_session``. When supplied, the produced mesh gets a ``design_brief:<id>`` intent sidecar so the audit's \"matches what you asked for\" gate, the brief failure_history wiring, and the ``compare_design_versions`` intent diff all light up against the saved goal.  Omit to skip — REST callers without a goal still get an auto-inferred brief at dispatch time. Default: \"\"."
    • addedInput schema / properties / cigarette_rests / description
      Added value: +"Rest grooves on the rim (default: 3 on round, 4 on square — one per corner; range 0-6 round, 0-4 square)."
    • changedInput schema / properties / color_overrides / description
      Previous value: -"Default: \"\"."New value: +"JSON dict mapping role → color name/hex (e.g. ``'{\"body\": \"baby blue\"}``). Default: \"\"."
    • changedInput schema / properties / diameter_mm / description
      Previous value: -"Default: 100.0."New value: +"Diameter in mm (default 100). Default: 100.0."
    • changedInput schema / properties / height_mm / description
      Previous value: -"Default: 35.0."New value: +"Height in mm (default 35, min 25). Default: 35.0."
    • changedInput schema / properties / include_step / description
      Previous value: -"Default: false."New value: +"Also emit a CAD-exact STEP file — REAL analytic B-rep from the same typed parameters, never a tessellated conversion.  On success the response gains a ``step`` block with ``step_path``.  Photo interiors and QR bottoms refuse honestly — the mesh outputs are always unaffected. Default: false."
    • changedInput schema / properties / material / description
      Previous value: -"Default: \"PLA\"."New value: +"Material (default PLA — warns if not heat-safe). Default: \"PLA\"."
    • changedInput schema / properties / photo_mask / description
      Previous value: -"Default: \"\"."New value: +"Photo crop shape for a photograph (a logo on a clean field is carved unmasked whatever is passed; a name outside this list is refused) — ``\"circle\"``, ``\"rectangle\"`` or ``\"rounded_rectangle\"``. Empty follows the ashtray's shape: a disc for ``\"round\"``, rounded corners for ``\"square\"``. Default: \"\"."
    • changedInput schema / properties / shape / description
      Previous value: -"Default: \"round\"."New value: +"Ashtray shape — ``\"round\"`` (default) or ``\"square\"``. Default: \"round\"."
    • changedInput schema / properties / size / description
      Previous value: -"Default: \"\"."New value: +"Size preset — ``\"small\"``, ``\"medium\"``, ``\"large\"``, ``\"xl\"``. Any other name is refused. Default: \"\"."
    • changedInput schema / properties / top / description
      Previous value: -"Default: \"\"."New value: +"Interior base content — ``\"text:...\"`` for debossed text, the path of a photo or logo to carve into the floor, or empty for plain.  A file that is not there is refused. Default: \"\"."
  3. Addedv1.5.0

TDQS

A4.2/5.0
Behavior5/5

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

Annotations already declare a non-read-only, non-destructive, closed-world mutation, and the description adds substantial behavior on top: it opens an inline 3D stage on success, hosted sessions attach a browser stage link, oversized meshes are auto-decimated, and the PNG preview is only a floor. It also discloses side effects the annotations can't express — a pocket/QR/text bottom raises the interior floor under a top photo or lettering and reports the new floor thickness, material warns if not heat-safe, and include_step refuses for photo interiors and QR bottoms.

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 purpose is front-loaded, but the inline 3D stage behavior is described twice — once at the end of the opening sentence and again in a dedicated ALL-CAPS section — and the decimation/preview caveats repeat the same idea. The all-caps headers and 'MAKE DOORS' framing add visual weight without adding information.

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 13-parameter generator with no output schema, the description covers the important non-obvious outcomes: the `step` block returned when include_step succeeds, the floor thickness reported when the interior is raised, automatic mesh decimation, and where the preview renders. It does not describe what the main response payload looks like (paths, preview fields), which is the remaining gap given there is no output schema.

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 explains every parameter in detail, including defaults, refusal rules, and enum-like value lists, so the description adds little parameter meaning beyond it. The one genuinely additive note is the Kiln Pro requirement for the `qr:` value of `bottom` and the cross-parameter interaction between `bottom` and `top`, which is also stated in the schema.

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?

Opens with a specific verb+resource ('Generate an ashtray with optional branding') and immediately scopes the product (no QR without Kiln Pro). An agent can distinguish it from generate_coaster, generate_rolling_tray, and other object generators without opening the schema.

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?

The 'MAKE DOORS' paragraph explicitly states that design_session is not installed here and that compile_scad is the make → preview → iterate loop, which is genuine routing guidance an agent would otherwise have to guess. It stops short of stating when NOT to use this tool (e.g., when another vessel generator fits better) and the Kiln Pro gating for QR is stated but not framed as a fallback path.

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