Skip to main content
Glama

apply_decoration

Destructive

Apply a saved 3D decoration to a new model using its proven settings, automatically resolving depth, mode, and image style for repeatable results.

Instructions

Apply a saved decoration to a new model — proven settings, one call.

        Loads a previously saved decoration and applies it to the target
        model using the exact settings that worked before.  Automatically
        resolves depth, mode, and image style from the proven recipe.

        This is the magic tool — decorations that took many iterations
        to perfect can be replayed on any model in one call.

        :param name: Decoration name or slug.
        :param model_path: Path to the target model (STL or OBJ).
        :param material: Override material (empty = use proven or detect
            from printer).
        :param face: Which face to decorate: ``auto`` (largest flat
            face), ``top``, ``bottom``, ``front``, ``back``, ``left``,
            ``right``, or ``wall`` (wrapped round an upright round wall).
        :param printer_id: Registered printer name (as ``printer_status``
            lists it) whose loaded spool decides the material when
            ``material`` is empty.  Omit to use the decoration's proven
            material.
        :returns: Dict with decorated model path and settings used.  A
            saved word is carved in the font it was saved with (the
            default font when it recorded none), and ``font`` says which.

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

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>",
      "model_path": "<model_path>"
    },
    "name": "apply_decoration"
  }
}

Input Schema

NameRequiredDescriptionDefault
faceNoWhich face to decorate: ``auto`` (largest flat face), ``top``, ``bottom``, ``front``, ``back``, ``left``, ``right``, or ``wall`` (wrapped round an upright round wall). Default: "auto".
nameYesDecoration name or slug.
materialNoOverride material (empty = use proven or detect from printer). Default: "".
model_pathYesPath to the target model (STL or OBJ).
printer_idNoRegistered printer name (as ``printer_status`` lists it) whose loaded spool decides the material when ``material`` is empty. Omit to use the decoration's proven material. Default: "".

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv1.5.1
    • changedInput schema / properties / face / description
      Previous value: -"Default: \"auto\"."New value: +"Which face to decorate: ``auto`` (largest flat face), ``top``, ``bottom``, ``front``, ``back``, ``left``, ``right``, or ``wall`` (wrapped round an upright round wall). Default: \"auto\"."
    • changedInput schema / properties / material / description
      Previous value: -"Default: \"\"."New value: +"Override material (empty = use proven or detect from printer). Default: \"\"."
    • addedInput schema / properties / model_path / description
      Added value: +"Path to the target model (STL or OBJ)."
    • addedInput schema / properties / name / description
      Added value: +"Decoration name or slug."
    • changedInput schema / properties / printer_id / description
      Previous value: -"Default: \"\"."New value: +"Registered printer name (as ``printer_status`` lists it) whose loaded spool decides the material when ``material`` is empty.  Omit to use the decoration's proven material. Default: \"\"."
  2. Changed6 schema fields changedv1.5.0
    • removedInput schema / properties / face / default
      Removed value: -"auto"
    • addedInput schema / properties / face / description
      Added value: +"Default: \"auto\"."
    • removedInput schema / properties / material / default
      Removed value: -""
    • addedInput schema / properties / material / description
      Added value: +"Default: \"\"."
    • removedInput schema / properties / printer_id / default
      Removed value: -""
    • addedInput schema / properties / printer_id / description
      Added value: +"Default: \"\"."
  3. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations declare destructiveHint=true and readOnlyHint=false, but the description adds genuinely non-obvious behavior: automatic depth/mode/style resolution, material resolution precedence (explicit override > printer spool > proven value), font preservation for saved words, and that an inline 3D stage opens with automatic mesh decimation. The remaining gap is that it never explains what the destructive flag actually affects (overwritten vs. new file).

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?

Purpose is front-loaded, but the body repeats the entire parameter documentation already present in the schema and includes promotional filler ('This is the magic tool'). The staging paragraph is useful but verbose; trimming the duplicated :param: block would make it much tighter.

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 supplies the needed return shape (decorated model path, settings used, font), and the stage/decimation note covers a significant side effect an agent would otherwise not anticipate. Only the meaning of the destructive annotation is left unexplained.

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 the schema already documents all five parameters, including the face enum values and the printer_status cross-reference. The description's :param: block largely restates that text, adding only the implicit precedence rule that an empty material falls back to the proven value.

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 first sentence names a specific verb and resource ('Apply a saved decoration to a new model') and clarifies it replays a stored recipe rather than creating one. It does not name any sibling (e.g. iterate_decoration, apply_decoration_preset, create_decoration_preset) to disambiguate, so differentiation is only implicit.

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?

It gives a clear selection context: use this to replay settings that 'took many iterations to perfect' onto a different model in one call, implying the decoration must already exist. It stops short of naming alternatives or stating when-not to use it, so the agent must infer the boundary with iterate_decoration.

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