Skip to main content
Glama

save_decoration

Destructive

Store a proven decoration's content, depth, mode, material, and processing pipeline in the library so the same decoration can be applied to new models.

Instructions

Save a proven decoration to the library for reuse on future models.

        Captures the content file (heightmap, SVG, image), settings
        (depth, mode, material), and processing pipeline from the
        ``.kiln_recipe.json`` sidecar so the exact same decoration can
        be applied to new models with ``apply_decoration``.

        :param name: Human-readable name (e.g. "Ash Portrait").
        :param model_path: Path to the model that was just decorated.
        :param content_type: Content type — ``photo``, ``svg``, ``qr``,
            ``text``, or ``auto`` (detect from file extension).
        :param source_path: Path to the original input file (photo, SVG).
        :param content_data: For QR: the data string. For text: the text.
        :param depth_mm: Decoration depth in mm (0 = auto from recipe).
        :param mode: ``emboss`` or ``deboss``.  Omitted, the recipe
            sidecar's mode is used when it has one, else ``emboss``.
        :param image_style: Image processing style (coin, portrait, etc.).
            Omitted, the recipe sidecar's style is used when it has one,
            else ``auto``.
        :param material: Material used (e.g. PLA, PETG).  Omitted, the
            recipe sidecar's material is used when it has one, else PLA.
        :param tags: Comma-separated tags for filtering.
        :param font: For text: the font the word was carved in, as
            ``decorate_surface`` reported it (``"sans"``, ``"mono"``, ...).
            Empty records the default font.  ``apply_decoration`` carves
            the word in this font again.  An unknown font is refused
            naming the accepted list, and nothing is saved.
        :returns: Dict with saved decoration details and library path.
        

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

Input Schema

NameRequiredDescriptionDefault
fontNoFor text: the font the word was carved in, as ``decorate_surface`` reported it (``"sans"``, ``"mono"``, ...). Empty records the default font. ``apply_decoration`` carves the word in this font again. An unknown font is refused naming the accepted list, and nothing is saved. Default: "".
modeNo``emboss`` or ``deboss``. Omitted, the recipe sidecar's mode is used when it has one, else ``emboss``.
nameYesHuman-readable name (e.g. "Ash Portrait").
tagsNoComma-separated tags for filtering. Default: "".
depth_mmNoDecoration depth in mm (0 = auto from recipe). Default: 0.0.
materialNoMaterial used (e.g. PLA, PETG). Omitted, the recipe sidecar's material is used when it has one, else PLA.
model_pathYesPath to the model that was just decorated.
image_styleNoImage processing style (coin, portrait, etc.). Omitted, the recipe sidecar's style is used when it has one, else ``auto``.
source_pathNoPath to the original input file (photo, SVG). Default: "".
content_dataNoFor QR: the data string. For text: the text. Default: "".
content_typeNoContent type — ``photo``, ``svg``, ``qr``, ``text``, or ``auto`` (detect from file extension). Default: "auto".

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.6.0
    • addedInput schema / properties / font
      Added value: +{
      +  "description": "For text: the font the word was carved in, as ``decorate_surface`` reported it (``\"sans\"``, ``\"mono\"``, ...). Empty records the default font.  ``apply_decoration`` carves the word in this font again.  An unknown font is refused naming the accepted list, and nothing is saved. Default: \"\".",
      +  "title": "Font",
      +  "type": "string"
      +}
  2. Changed16 schema fields changedv1.5.1
    • changedInput schema / properties / content_data / description
      Previous value: -"Default: \"\"."New value: +"For QR: the data string. For text: the text. Default: \"\"."
    • changedInput schema / properties / content_type / description
      Previous value: -"Default: \"auto\"."New value: +"Content type — ``photo``, ``svg``, ``qr``, ``text``, or ``auto`` (detect from file extension). Default: \"auto\"."
    • changedInput schema / properties / depth_mm / description
      Previous value: -"Default: 0.0."New value: +"Decoration depth in mm (0 = auto from recipe). Default: 0.0."
    • addedInput schema / properties / image_style / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / image_style / description
      Previous value: -"Default: \"auto\"."New value: +"Image processing style (coin, portrait, etc.). Omitted, the recipe sidecar's style is used when it has one, else ``auto``."
    • removedInput schema / properties / image_style / type
      Removed value: -"string"
    • addedInput schema / properties / material / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / material / description
      Previous value: -"Default: \"PLA\"."New value: +"Material used (e.g. PLA, PETG).  Omitted, the recipe sidecar's material is used when it has one, else PLA."
    • removedInput schema / properties / material / type
      Removed value: -"string"
    • addedInput schema / properties / mode / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / mode / description
      Previous value: -"Default: \"emboss\"."New value: +"``emboss`` or ``deboss``.  Omitted, the recipe sidecar's mode is used when it has one, else ``emboss``."
    • removedInput schema / properties / mode / type
      Removed value: -"string"
    • addedInput schema / properties / model_path / description
      Added value: +"Path to the model that was just decorated."
    • addedInput schema / properties / name / description
      Added value: +"Human-readable name (e.g. \"Ash Portrait\")."
    • changedInput schema / properties / source_path / description
      Previous value: -"Default: \"\"."New value: +"Path to the original input file (photo, SVG). Default: \"\"."
    • changedInput schema / properties / tags / description
      Previous value: -"Default: \"\"."New value: +"Comma-separated tags for filtering. Default: \"\"."
  3. Changed16 schema fields changedv1.5.0
    • removedInput schema / properties / content_data / default
      Removed value: -""
    • addedInput schema / properties / content_data / description
      Added value: +"Default: \"\"."
    • removedInput schema / properties / content_type / default
      Removed value: -"auto"
    • addedInput schema / properties / content_type / description
      Added value: +"Default: \"auto\"."
    • removedInput schema / properties / depth_mm / default
      Removed value: -0
    • addedInput schema / properties / depth_mm / description
      Added value: +"Default: 0.0."
    • removedInput schema / properties / image_style / default
      Removed value: -"auto"
    • addedInput schema / properties / image_style / description
      Added value: +"Default: \"auto\"."
    • removedInput schema / properties / material / default
      Removed value: -"PLA"
    • addedInput schema / properties / material / description
      Added value: +"Default: \"PLA\"."
    • removedInput schema / properties / mode / default
      Removed value: -"emboss"
    • addedInput schema / properties / mode / description
      Added value: +"Default: \"emboss\"."
    • removedInput schema / properties / source_path / default
      Removed value: -""
    • addedInput schema / properties / source_path / description
      Added value: +"Default: \"\"."
    • removedInput schema / properties / tags / default
      Removed value: -""
    • addedInput schema / properties / tags / description
      Added value: +"Default: \"\"."
  4. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true, and openWorldHint=false, so the write/destructive nature is covered. The description still adds real context beyond them: what exactly is captured and from where, the fallback chain for mode/image_style/material (sidecar value, then a named default), the refusal behavior for unknown fonts ("nothing is saved"), and the return payload. The notable gap is that a destructiveHint=true save never explains what it may overwrite — e.g. whether an existing library entry with the same name is replaced.

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?

It is front-loaded with the purpose and capture mechanism, then returns, which is a sound order. However, roughly two-thirds of the body is a per-parameter restatement of schema text already at 100% coverage, which is length that does not earn its place for an agent that can read the 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 an 11-parameter write tool with no output schema, the definition covers what gets persisted, where the values come from, default precedence, one hard failure mode, and the :returns: shape. Remaining omissions — collision/overwrite behavior on an existing library name and the exact sidecar-missing failure — are the only things an agent could still be surprised by.

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 input schema already documents all 11 parameters in detail. The description's :param: block restates that same text almost verbatim, adding no new semantics such as format examples for source_path or tie-breaking rules beyond what the schema states. Baseline 3 applies when the schema does the heavy lifting.

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?

The description gives a specific verb and resource ("Save a proven decoration to the library") plus the capture scope: content file, settings, and processing pipeline from the .kiln_recipe.json sidecar. It also names the sibling that consumes the saved artifact (apply_decoration), so an agent can tell saving apart from applying without opening another 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?

It states the context in which to use the tool — after a decoration has been proven and should be reusable on future models — and points to apply_decoration for the reuse step, implying this is the capture half of a two-step workflow. It never states an explicit when-not-to-use case or a prerequisite (e.g. that the .kiln_recipe.json sidecar must exist on model_path); that prerequisite is only implied by the wording.

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