Skip to main content
Glama

preflight_check

Verify printer readiness before starting a print. Checks connection, idle state, error flags, and temperatures, with optional material and file validation to catch issues early.

Instructions

Run pre-print safety checks to verify the printer is ready.

Checks performed:
- Printer is connected and operational
- Printer is not currently printing
- No error flags are set
- Temperatures are within safe limits
- (Optional) Material loaded matches expected material
- (Optional) Local G-code file is valid and readable
- (Optional) Remote file exists on the printer

Args:
    file_path: Optional path to a local G-code file to validate before
        upload.  If omitted, only printer-state checks are performed.
    expected_material: Optional material type (e.g. "PLA", "ABS", "PETG").
        If provided and a material is loaded, checks for a mismatch.

    remote_file: Optional filename to verify exists on the printer.
        If provided, checks the printer's file list for a matching file.
    accept_paused: When ``True``, the ``printer_idle`` check accepts
        the ``paused`` state in addition to ``idle``.  Used by
        ``start_print(resume_from_paused=True)`` for mid-print
        resume 3MFs (which start from a paused-state printer).
        Default ``False`` — only ``idle`` is accepted.
    printer_name: Which printer to check.  Omit to check the default
        printer, which is what this did before it could be aimed.
        The state, the temperature ceilings and the material profile
        all follow the named machine — a readiness verdict is about
        one printer, and it has to be the printer that will print.

Call this before ``start_print()`` to catch problems early.  The result
includes a ``ready`` boolean and detailed per-check breakdowns.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathNo
remote_fileNo
printer_nameNo
accept_pausedNo
expected_materialNo
Install Server

TDQS

A4.8/5.0
Behavior5/5

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

With no annotations, the description carries the full burden. It discloses the exact checks performed, the effect of printer_name (state/temps/material follow the named machine), the accept_paused behavior, and the return structure (ready boolean and per-check breakdowns). This goes beyond a high-level summary and provides actionable behavioral details.

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?

The description is well-structured with a summary sentence, a bulleted checklist, and a detailed Args section. Every sentence provides needed detail; there is no fluff. The front-loaded summary gives immediate understanding of the tool's purpose.

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

Completeness5/5

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

Given the complexity (5 optional parameters, no output schema) and the safety-critical nature of the checks, the description is complete. It covers what is checked, how each parameter modifies behavior, the intended usage context (before start_print), and the return value (ready boolean and breakdowns). An agent can decide when and how to invoke this tool with confidence.

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

Parameters5/5

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

Schema coverage is 0%, but the description exhaustively documents all five parameters: file_path, expected_material, remote_file, accept_paused, and printer_name, including defaults, optionality, and behavioral effects. It adds meaning far beyond the schema's bare type/default fields.

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?

The description explicitly states 'Run pre-print safety checks to verify the printer is ready' and enumerates specific checks (connectivity, idle state, error flags, temperatures, optional material/file checks). This clearly distinguishes it from sibling tools like printer_status or start_print by naming the exact purpose and the expected follow-up call.

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

Usage Guidelines4/5

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

Provides clear usage context: 'Call this before start_print() to catch problems early.' Also explains optional parameters and their applicability (e.g., accept_paused used by start_print with resume). However, it does not explicitly exclude alternatives among the many readiness-related sibling tools, so it lacks the when-not or explicit alternative guidance for a 5.

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

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/codeofaxel/kiln'

If you have feedback or need assistance with the MCP directory API, please join our Discord server