Skip to main content
Glama

upgrade_kiln

Destructive

Updates Kiln after user confirmation, safely waiting for active prints to finish, or installs the camera add-on when needed. Offers the change first and never runs without consent.

Instructions

Update the Kiln package to the latest version — for the user.

        The upgrade path a person never has to think about. When a newer Kiln is available (or a
        hosted call returns an upgrade-required signal), OFFER to handle it:
        ask "want me to update Kiln for you now?" and call this with
        confirm=True once they agree. Don't make the user run a pip command.

        AGENT CONTRACT (important):
          * NEVER update Kiln while a print is active — wait until it finishes.
            Swapping Kiln mid-print is unsafe.
          * Confirm with the user first; this changes their installed
            software. Pass confirm=True only after they say yes.
          * On success the new version is on disk but the running Kiln still
            has the old code loaded — relay the restart instruction from the
            result so the user applies it at a safe moment (not mid-print).

        CAMERA ADD-ON: ``addon="camera"`` adds Kiln's free camera add-on
        instead of updating Kiln, when a camera door says it is needed (a
        ``camera_addon`` block, or a monitor report's ``Camera:`` line).
        The same yes comes first (confirm=True only after the person
        agrees); it is fine while a print runs, needs no restart, and
        ``force`` does not apply.  Say the reply's ``message``; its
        ``agent_note`` says what to do next.

        Args:
            confirm: Set True to actually perform the update. Called without
                it, this returns the offer to show the user and changes
                nothing.
            force: Override the mid-print safety defer of a Kiln update —
                only when the user explicitly insists.
            addon: Leave out to update Kiln.  ``"camera"`` adds the camera
                add-on instead; any other value is refused.
        

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

Input Schema

NameRequiredDescriptionDefault
addonNoLeave out to update Kiln. ``"camera"`` adds the camera add-on instead; any other value is refused.
forceNoOverride the mid-print safety defer of a Kiln update — only when the user explicitly insists. Default: false.
confirmNoSet True to actually perform the update. Called without it, this returns the offer to show the user and changes nothing. Default: false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.6.0
    • addedInput schema / properties / addon
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Leave out to update Kiln.  ``\"camera\"`` adds the camera add-on instead; any other value is refused.",
      +  "title": "Addon"
      +}
    • changedInput schema / properties / force / description
      Previous value: -"Override the mid-print safety defer — only when the user explicitly insists. Default: false."New value: +"Override the mid-print safety defer of a Kiln update — only when the user explicitly insists. Default: false."
  2. Changed2 schema fields changedv1.5.1
    • changedInput schema / properties / confirm / description
      Previous value: -"Default: false."New value: +"Set True to actually perform the update. Called without it, this returns the offer to show the user and changes nothing. Default: false."
    • changedInput schema / properties / force / description
      Previous value: -"Default: false."New value: +"Override the mid-print safety defer — only when the user explicitly insists. Default: false."
  3. Changed4 schema fields changedv1.5.0
    • removedInput schema / properties / confirm / default
      Removed value: -false
    • addedInput schema / properties / confirm / description
      Added value: +"Default: false."
    • removedInput schema / properties / force / default
      Removed value: -false
    • addedInput schema / properties / force / description
      Added value: +"Default: false."
  4. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only say destructiveHint=true and readOnlyHint=false; the description goes far beyond that by explaining that swapping Kiln mid-print is unsafe, that success still leaves old code loaded so a restart is required, and that without confirm the call changes nothing and merely returns an offer. It also distinguishes the add-on's behavior (no restart, force not applicable), which annotations cannot express.

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 purpose is front-loaded and the AGENT CONTRACT headers make the safety rules scannable, which is good structure. However, the Args section duplicates parameter text already present at 100% schema coverage, and the safety constraints are stated twice (once in the contract, once in the add-on paragraph), which inflates length without adding information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Despite having no output schema, the description tells the agent what the call returns in each mode (an offer when confirm is absent, a restart instruction on success, and a 'message' plus 'agent_note' for the add-on). For a destructive, multi-mode tool this covers everything needed to call it safely and relay the result.

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, and the Args block largely restates those schema descriptions verbatim. The added value is marginal — 'force: only when the user explicitly insists' echoes the schema's own wording rather than adding new semantics. Baseline 3 is appropriate 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 opening sentence gives a specific verb and resource (update the Kiln package) plus an explicit scope qualifier ('for the user'). It also names the second mode ('addon="camera" adds Kiln's free camera add-on instead of updating Kiln'), so an agent can distinguish upgrade-vs-addon 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 Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit trigger conditions are given (a newer Kiln is available, or a hosted call returns an upgrade-required signal), along with the exact user-facing offer to make. Exclusions are stated too: never mid-print, and the camera add-on is explicitly allowed while a print runs. That is when-to-use, when-not-to-use, and mode selection all in one place.

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