Skip to main content
Glama
Topsail

Topsail

by AidanZealley

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Topsail controls Klipper 3D printers through Moonraker. Call list_printers to find available printers. If the fleet is empty, offer to help the user set one up with add_printer. Before start_print, tell the user which file and printer, with the file's facts. Use emergency_stop without hesitation if a print is visibly failing dangerously.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
add_printerA

Set up a Klipper printer when the user asks to add one. Supply details the user already gave. If the tool reports missing fields, ask for those in chat and retry.

remove_printerA

Remove a saved printer from Topsail. Use list_printers to find its ID. It doesn't stop an active print.

list_printersA

List configured printers with their saved Moonraker URLs, connection and print state. If empty, offer to help set up a printer with add_printer.

printer_statusA

Live status of one printer: print state, file, progress, temperatures, position and Klipper's message.

list_filesB

List G-code files on the printer, newest first, with what the slicer recorded about each: material, temperatures, height and time.

webcam_snapshotC

Take a picture from one of the printer's webcams.

pause_printB

Pause the current print.

resume_printB

Resume a paused print.

cancel_printA

Cancel the current print. It can't be resumed afterwards.

start_printA

Start printing a G-code file from list_files or upload_gcode. First tell the user which file and printer, with its facts. Check the bed is clear with webcam_snapshot first when a webcam exists.

upload_gcodeA

Upload a sliced G-code file to a printer. Returns the filename it was stored under and what the slicer recorded: material, temperatures, height and time. This never starts a print: use start_print with that filename.

set_temperatureA

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.

turn_off_heatersA

Turn off every heater. A print in progress will fail. It waits for the command Klipper is running, such as heating up: use emergency_stop if it can't wait.

list_macrosA

List the printer's G-code macros with their descriptions and the parameters they read. Macros starting with _ are internal and hidden unless asked for.

run_macroB

Run an existing public Klipper macro. Use list_macros to find its name and parameters.

restart_klipperA

Restart Klipper, for example after a shutdown. A firmware restart also resets the MCUs.

emergency_stopA

Immediately halt the printer and turn off heaters. Use when something is going wrong; Klipper needs a firmware restart afterwards.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.6/5.0

Scored across 17 tools

Disambiguation4/5

Each tool maps to a distinct action on a printer, file, or heater, and descriptions explicitly disambiguate the risky pairs (upload_gcode vs start_print, set_temperature 0 vs turn_off_heaters, restart_klipper vs emergency_stop). Minor residual overlap between list_printers and printer_status (both report connection/print state) and between turn_off_heaters and emergency_stop, but the descriptions resolve it.

Naming Consistency4/5

Nearly all tools follow a snake_case verb_noun pattern (add_printer, list_files, pause_print, run_macro). The exceptions are noun-first names like printer_status and webcam_snapshot, which break the pattern slightly but remain readable and unambiguous.

Tool Count4/5

17 tools is at the upper edge but each maps to a real operation in the printer-control domain (lifecycle, files, heaters, macros, recovery). Nothing appears redundant, though the set is large enough that grouping or trimming a couple of recovery tools could help.

Completeness4/5

Core workflows are covered: printer CRUD, print start/pause/resume/cancel, file listing and upload, temperature control, macros, and recovery (restart, emergency stop). Gaps exist for file deletion, axis homing/jogging, and bed-leveling or object-exclusion operations, but agents can still accomplish the main remote-management tasks.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues