Skip to main content
Glama

Layer height magic numbers

calculate_layer_heights
Read-onlyIdempotent

Compute the Z-axis "magic number" layer heights for a printer from its stepper step angle, microstepping and lead-screw pitch/starts, filtered to what suits the nozzle. Defaults match most Ender/Prusa-style printers (1.8°, 1/16, T8 2 mm × 4 starts → 0.04 mm steps).

Input Schema

NameRequiredDescriptionDefault
microsteppingNo
lead_screw_startsNo
nozzle_diameter_mmNo
step_angle_degreesNo
lead_screw_pitch_mmNo
max_layer_height_mmNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed12 schema fields changed
    • addedInput schema / properties / lead_screw_pitch_mm / maximum
      Added value: +20
    • addedInput schema / properties / lead_screw_pitch_mm / minimum
      Added value: +0.1
    • addedInput schema / properties / lead_screw_starts / maximum
      Added value: +8
    • addedInput schema / properties / lead_screw_starts / minimum
      Added value: +1
    • addedInput schema / properties / max_layer_height_mm / maximum
      Added value: +2
    • addedInput schema / properties / max_layer_height_mm / minimum
      Added value: +0.01
    • addedInput schema / properties / microstepping / maximum
      Added value: +256
    • addedInput schema / properties / microstepping / minimum
      Added value: +1
    • addedInput schema / properties / nozzle_diameter_mm / maximum
      Added value: +2
    • addedInput schema / properties / nozzle_diameter_mm / minimum
      Added value: +0.1
    • addedInput schema / properties / step_angle_degrees / maximum
      Added value: +90
    • addedInput schema / properties / step_angle_degrees / minimum
      Added value: +0.1
  2. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive and closed-world, so safety is settled. The description adds real behavioral context beyond that: the result is a deterministic stepper-math derivation, it is filtered to what suits the nozzle, and it discloses the default configuration and resulting step size (0.04 mm). It stops short of saying what the returned value looks like.

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?

Two dense sentences, front-loaded with the action and the physical model, followed by the concrete default configuration. Nothing is repeated from the schema or annotations and there is no filler.

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

Completeness3/5

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

For a six-parameter, zero-coverage, no-output-schema tool, the description is adequate but incomplete: it omits max_layer_height_mm entirely and never indicates the shape of the result (a set/list of candidate layer heights?), which matters for a computation tool whose output the agent must interpret.

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 0%, so the description must carry the burden, and it partially does: it explains the roles of step angle, microstepping, lead-screw pitch and starts, and pins their defaults (1.8°, 1/16, T8 2 mm × 4 starts). However, max_layer_height_mm is never mentioned, and units/relationships for the remaining parameters are left to the parameter names.

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 ('Compute') and a specific resource ('Z-axis magic number layer heights for a printer'), and names the exact inputs the result derives from (step angle, microstepping, lead-screw pitch/starts). This is clearly distinguishable from the sibling calculators (filament usage, print cost, volumetric flow) without opening any 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?

Usage is implied rather than stated: the description tells the agent the defaults match 'most Ender/Prusa-style printers', which is a usable hint, but there is no explicit when-to-use, when-not-to-use, or comparison against the sibling calculate_* tools. An agent must infer the call context.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources