Skip to main content
Glama
klipper-doctor-mcp

klipper-doctor-mcp

by kd-011

Lint a printer.cfg

lint_config
Read-onlyIdempotent

Validate a Klipper printer.cfg or klippy.log config and return configuration findings only—no crash report—using pasted text, a file path, or Moonraker.

Instructions

Lint a Klipper printer.cfg (or the config inside a klippy.log) and return config findings only, no crash report. Give exactly one of text, path or moonraker. With moonraker, config_file picks a file in the config root (default printer.cfg). Read-only.

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

Input Schema

NameRequiredDescriptionDefault
pathNoPath to a file on the machine running this server.
textNoThe file contents, pasted.
moonrakerNoFetch the file from Moonraker (needs MOONRAKER_URL in the server config).
config_fileNoWith moonraker: a file path inside the config root. Default printer.cfg.

Output Schema

NameRequiredDescriptionDefault
countsYes
reportYes
sourceYes
summaryYesOne line: how many errors, warnings and notes.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint, so the safety profile is covered and the trailing 'Read-only.' is largely redundant. The description does add real behavioral context beyond annotations: the MOONRAKER_URL server-config prerequisite and the fact that findings exclude crash analysis.

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?

Three compact sentences with the core purpose front-loaded and no filler. Minor waste in repeating 'Read-only' after annotations already declare it, and the input-mode rule could be grouped more tightly with the moonraker detail.

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?

An output schema exists, so the description need not explain return values, and it still characterizes the result set as config findings. With 100% schema coverage and annotations carrying the safety profile, the only gap is explicit routing guidance versus diagnose_log.

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 100%, so the baseline is 3, but the description adds a cross-parameter constraint the schema cannot express: exactly one of text, path or moonraker must be supplied. It also restates the config_file default and scoping, reinforcing that config_file only applies with moonraker.

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 ('Lint a Klipper printer.cfg'), covers the log-embedded variant, and explicitly bounds the output to 'config findings only, no crash report' — which distinguishes it from the sibling diagnose_log. An agent can select it 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 Guidelines3/5

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

The 'no crash report' clause implies the boundary with diagnose_log, but there is no explicit when-to-use statement or named alternative. The 'give exactly one of text, path or moonraker' line is input-shape guidance rather than selection guidance.

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