Skip to main content
Glama

await_print_completion

Wait for a 3D print to finish and return its final status, so agents can fire-and-forget a print and pick up the result later without managing their own polling loop.

Instructions

Wait for the current print to finish and return the final status.

Polls the printer (or a specific queued job) until it reaches a
terminal state: completed, failed, cancelled, or the timeout is
exceeded.  This lets agents fire-and-forget a print and pick up the
result later without managing their own polling loop.

A host that runs tools in the background (the MCP tasks extension) gets
a task back instead of a blocked call: keep working,
and the host says when the wait returns.  There one call can wait as
long as the plan needs, up to the whole print.  Closing that app ends
the wait, never the print.

Args:
    job_id: Optional job ID from ``submit_job()``.  When provided,
        tracks that specific job through the queue/scheduler.  When
        omitted, monitors the printer directly for idle/error state.
    timeout: Maximum seconds to wait (default 7200 = 2 hours).
    poll_interval: Seconds between status checks (default 15).
    goal_id: Optional saved-goal id from ``design_session``.  When
        the brief resolves, the terminal-outcome response gains a
        ``design_goal`` block with the design's duty / environment /
        safety notes — so the agent surfacing the print result can
        answer "did this match the goal?" without a separate
        lookup.  Best-effort: missing kiln-pro silently skips.

Returns a dict with ``outcome`` (completed / failed / cancelled /
timeout), final printer state, elapsed time, completion percentage
history, and (when ``goal_id`` resolves) a ``design_goal`` block.

A print carrying a hardware plan (pauses written in for nuts, magnets or
bearings) also returns early with ``outcome: "hardware_stop"`` and a
``hardware`` block: when a stop is a few minutes away, when the printer
has stopped for the parts, and when it went past a stop without
stopping.  Tell the person what the block says, then wait again.  A
finished print's ``hardware`` block names what goes in after the print.

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

Input Schema

NameRequiredDescriptionDefault
job_idNoOptional job ID from ``submit_job()``. When provided, tracks that specific job through the queue/scheduler. When omitted, monitors the printer directly for idle/error state.
goal_idNoOptional saved-goal id from ``design_session``. When the brief resolves, the terminal-outcome response gains a ``design_goal`` block with the design's duty / environment / safety notes — so the agent surfacing the print result can answer "did this match the goal?" without a separate lookup. Best-effort: missing kiln-pro silently skips. Default: "".
timeoutNoMaximum seconds to wait (default 7200 = 2 hours). Default: 7200.
poll_intervalNoSeconds between status checks (default 15). Default: 15.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.6.0
    • removedInput schema / properties / brief_id
      Removed value: -{
      -  "description": "Optional saved-goal id from ``design_session``.  When the brief resolves, the terminal-outcome response gains a ``design_goal`` block with the design's duty / environment / safety notes — so the agent surfacing the print result can answer \"did this match the goal?\" without a separate lookup.  Best-effort: missing kiln-pro silently skips. Default: \"\".",
      -  "title": "Brief Id",
      -  "type": "string"
      -}
    • addedInput schema / properties / goal_id
      Added value: +{
      +  "description": "Optional saved-goal id from ``design_session``.  When the brief resolves, the terminal-outcome response gains a ``design_goal`` block with the design's duty / environment / safety notes — so the agent surfacing the print result can answer \"did this match the goal?\" without a separate lookup.  Best-effort: missing kiln-pro silently skips. Default: \"\".",
      +  "title": "Goal Id",
      +  "type": "string"
      +}
  2. Changed4 schema fields changedv1.5.1
    • changedInput schema / properties / brief_id / description
      Previous value: -"Default: \"\"."New value: +"Optional saved-goal id from ``design_session``.  When the brief resolves, the terminal-outcome response gains a ``design_goal`` block with the design's duty / environment / safety notes — so the agent surfacing the print result can answer \"did this match the goal?\" without a separate lookup.  Best-effort: missing kiln-pro silently skips. Default: \"\"."
    • addedInput schema / properties / job_id / description
      Added value: +"Optional job ID from ``submit_job()``.  When provided, tracks that specific job through the queue/scheduler.  When omitted, monitors the printer directly for idle/error state."
    • changedInput schema / properties / poll_interval / description
      Previous value: -"Default: 15."New value: +"Seconds between status checks (default 15). Default: 15."
    • changedInput schema / properties / timeout / description
      Previous value: -"Default: 7200."New value: +"Maximum seconds to wait (default 7200 = 2 hours). Default: 7200."
  3. Changed7 schema fields changedv1.5.0
    • removedInput schema / properties / brief_id / default
      Removed value: -""
    • addedInput schema / properties / brief_id / description
      Added value: +"Default: \"\"."
    • removedInput schema / properties / job_id / default
      Removed value: -null
    • removedInput schema / properties / poll_interval / default
      Removed value: -15
    • addedInput schema / properties / poll_interval / description
      Added value: +"Default: 15."
    • removedInput schema / properties / timeout / default
      Removed value: -7200
    • addedInput schema / properties / timeout / description
      Added value: +"Default: 7200."
  4. First observedv0.1.0

TDQS

A4.3/5.0
Behavior5/5

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

Annotations only declare the safety flags; the description adds substantial behavior beyond them: the terminal-state set, default 7200s timeout and 15s poll interval, the early-return hardware_stop outcome, and the important guarantee that closing the app ends the wait but never the print. It also discloses that goal_id resolution is best-effort and silently skipped when kiln-pro is absent.

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

Conciseness3/5

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

The prose paragraphs are front-loaded and well organized, but the full Args section duplicates schema text that already carries 100% coverage, which is pure waste. The background-task paragraph is also longer than it needs to be to convey the one relevant fact.

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?

With no output schema, the description carries the full burden of explaining returns and does so thoroughly: outcome values, final printer state, elapsed time, completion-percentage history, the design_goal block, and the hardware block including the three stop scenarios. Nothing an agent needs to interpret the result is missing.

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 coverage is 100% and the Args block restates the schema descriptions nearly verbatim, so the description adds little parameter meaning beyond the schema. The only genuine additions are the default timeout interpretation (2 hours) and the note that a missing goal_id silently degrades, both of which also appear in the schema.

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 ("Wait for the current print to finish and return the final status") and immediately scopes it: polls the printer or a named queued job until a terminal state. It also distinguishes the two operating modes (job_id tracking vs. direct printer monitoring), so an agent can tell which call shape it needs 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 Guidelines4/5

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

Gives a clear motivating context ("fire-and-forget a print and pick up the result later without managing their own polling loop") and describes the background-task path plus the hardware_stop re-entry rule ("Tell the person what the block says, then wait again"). It never names a competing sibling tool or an explicit when-not-to-call condition, so it stops short of full routing guidance.

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

Deploy Server

Other Tools