Skip to main content
Glama

set_nozzle_state

Destructive

Record a printer's current nozzle material, diameter, install date and filament throughput so Kiln can track wear and warn when the nozzle needs swapping.

Instructions

Record a user-entered nozzle state for a printer.

Free door, tiered answer — Free: Warnings — always free · Pro: How long it lasts on that filament, and when to swap · Business: + Every machine’s nozzle checked against its record · Enterprise: ✓.

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": {
      "printer_id": "<printer_id>"
    },
    "name": "set_nozzle_state"
  }
}

Input Schema

NameRequiredDescriptionDefault
materialNoOne of ``brass``, ``stainless_steel``, ``hardened_steel``, ``ruby_tip``, ``cht_brass``, ``cht_hardened``, ``tungsten_carbide``, ``custom``. Case-insensitive; ``unknown`` clears it.
positionNoWhich nozzle position ``material`` and ``diameter_mm`` describe, numbered from 1 as the printer numbers them. Omitted, they describe position 1, the printer's main nozzle. Given without either of them, or below 1, it is refused with ``VALIDATION_ERROR``.
printer_idYesStable printer identifier.
diameter_mmNoNozzle diameter in mm (typically 0.2, 0.25, 0.4, 0.6, 0.8, or 1.0).
install_dateNoISO 8601 date the nozzle was installed (e.g. ``"2026-05-26"``).
grams_throughNoCumulative grams already extruded through this nozzle. Usually omitted on a fresh swap.
printer_readingNoWhat the printer itself reports as its nozzle, filled in by the caller's own Kiln when it can reach the machine, so the answer can say whether the printer agrees with the new record. Used only where this process cannot read the printer; leave it unset by hand.
fitted_positionsNoThe positions that hold a nozzle, e.g. ``[1, 2]``; every other position is recorded as empty. It must include 1. Omitted, which positions are fitted stays as recorded.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.6.0
    • addedInput schema / properties / fitted_positions
      Added value: +{
      +  "description": "The positions that hold a nozzle, e.g. ``[1, 2]``; every other position is recorded as empty.  It must include 1.  Omitted, which positions are fitted stays as recorded.",
      +  "items": {},
      +  "title": "Fitted Positions",
      +  "type": "array"
      +}
    • addedInput schema / properties / position
      Added value: +{
      +  "description": "Which nozzle position ``material`` and ``diameter_mm`` describe, numbered from 1 as the printer numbers them.  Omitted, they describe position 1, the printer's main nozzle.  Given without either of them, or below 1, it is refused with ``VALIDATION_ERROR``.",
      +  "title": "Position",
      +  "type": "integer"
      +}
  2. Changed6 schema fields changedv1.5.1
    • addedInput schema / properties / diameter_mm / description
      Added value: +"Nozzle diameter in mm (typically 0.2, 0.25, 0.4, 0.6, 0.8, or 1.0)."
    • addedInput schema / properties / grams_through / description
      Added value: +"Cumulative grams already extruded through this nozzle.  Usually omitted on a fresh swap."
    • addedInput schema / properties / install_date / description
      Added value: +"ISO 8601 date the nozzle was installed (e.g. ``\"2026-05-26\"``)."
    • addedInput schema / properties / material / description
      Added value: +"One of ``brass``, ``stainless_steel``, ``hardened_steel``, ``ruby_tip``, ``cht_brass``, ``cht_hardened``, ``tungsten_carbide``, ``custom``. Case-insensitive; ``unknown`` clears it."
    • addedInput schema / properties / printer_id / description
      Added value: +"Stable printer identifier."
    • addedInput schema / properties / printer_reading / description
      Added value: +"What the printer itself reports as its nozzle, filled in by the caller's own Kiln when it can reach the machine, so the answer can say whether the printer agrees with the new record.  Used only where this process cannot read the printer; leave it unset by hand."
  3. Addedv1.5.0

TDQS

C2.9/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the write semantics are established structurally. The description does not explain what the destruction actually means — whether an existing nozzle record at that position is overwritten, whether history is preserved, or how fitted_positions interacts with existing records. The tier paragraph consumes space without disclosing behavior.

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

Conciseness2/5

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

The first sentence is tight and front-loaded, but the second paragraph is a four-tier monetization blurb that is irrelevant to invoking the tool and actively misleads by suggesting feature gating that the schema does not reflect. Roughly half the description is waste.

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

Completeness2/5

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

This is an 8-parameter destructive write with a nested object and no output schema, so the description must carry more weight. It says nothing about what happens to an existing record on overwrite, what a successful call returns, or how validation errors (e.g. position without material) surface.

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%, with detailed per-parameter text covering material values, position defaults, and fitted_positions constraints, so the baseline is 3. The description contributes nothing beyond the schema — it does not clarify printer_reading (the most ambiguous parameter) or the interaction between position, material, and fitted_positions.

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 opening sentence gives a specific verb and resource ("Record a user-entered nozzle state for a printer"), and "user-entered" usefully signals this is manual input rather than a read from the machine. It does not distinguish itself from close siblings such as record_nozzle_replacement or get_nozzle_state, and the second paragraph adds no purpose information.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

There is no guidance on when to use this versus record_nozzle_replacement, auto_detect_nozzle, or get_nozzle_state, nor any stated prerequisites. The tiered paywall sentence (Free/Pro/Business/Enterprise) is promotional copy, not usage guidance, and it never says which tier this call requires.

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