Skip to main content
Glama
Topsail

Topsail

by AidanZealley

set_temperature

Destructive

Sets a heater's target temperature in °C for preheating or cooling; use 0 to turn it off, then check printer status to confirm progress.

Instructions

Set a heater's target temperature in °C, such as to preheat or cool down. 0 turns it off; turn_off_heaters turns them all off. Klipper refuses targets above the heater's max_temp. Doesn't wait to reach the target; check printer_status.

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": {
      "heater": "<heater>",
      "target": "<target>"
    },
    "name": "set_temperature"
  }
}

Input Schema

NameRequiredDescriptionDefault
heaterYesHeater name from printer_status, such as extruder or heater_bed.
targetYes
printerNoPrinter name from list_printers. Optional when only one is configured.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations declare destructiveHint=true and readOnlyHint=false, so the mutation profile is already known; the description adds genuinely new behavior — asynchronous/non-blocking execution and the Klipper-side max_temp rejection. It stops short of saying what happens with an unknown heater name or whether an error is surfaced versus silent, which is the remaining gap.

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

Conciseness5/5

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

Four short clauses, front-loaded with the action and unit, then the edge case, the hard limit, and the async caveat. No sentence restates the name or title, and nothing is padding.

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 three-parameter mutation with no output schema, the description covers units, the off sentinel, validation limits, non-blocking behavior, and the verification path via printer_status. Only the failure mode (bad heater name, rejected temperature) and the shape of any response are left implicit.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 67%: heater and printer are documented in the schema, but the description supplies the missing meaning for target — unit (°C), that 0 is the off sentinel, and that values above max_temp are refused. That goes beyond the schema's bare numeric range and materially changes how an agent picks a value.

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?

States a specific verb and resource ("Set a heater's target temperature"), gives the unit (°C) and intent (preheat or cool down), and explicitly distinguishes itself from turn_off_heaters. An agent can identify the right tool 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?

Gives an explicit alternative and the condition that selects it ("turn_off_heaters turns them all off" vs. target 0 for one heater), plus the follow-up workflow: because it doesn't block, call printer_status to verify. Both the when-to-use and the not-wait caveat are stated rather than inferred.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.