Skip to main content
Glama

submit_job

Destructive

Queues a G-code file for unattended 3D printing on a chosen or scheduler-picked printer, with priority, preview sign-off, design version history and duplicate-safe retries.

Instructions

Submit a print job to the queue.

``version_id`` / ``design_id`` / ``branch_id`` name the kept design the
file came from, when there is one; the scheduler hands them to the
start so the print's record lands on that version's history.

A free account's queue holds a fixed number of pending jobs (the
refusal says how many); Pro has no queue cap.

Args:
    keep_record: ``False`` only when the person asks for this print not to be kept
        ("print this privately", "don't keep a record of this"); never suggest it.
        Kiln then keeps nothing of the print once it ends, and the answer carries
        one line saying so.  ``True`` keeps it, for a start a team's rule held
        (``TEAM_KEEPS_PRINTS``) after the person agreed.  Omit otherwise: the
        print is kept the way the account says.
    file_name: G-code file name (must already exist on the printer).
    printer_name: Target printer name.  Omit to let the scheduler
        choose: the printer the queue is already on (it stays on one
        machine unless a person moves it), or on the fleet plan any
        idle printer.
    priority: Higher values are scheduled first (default 0).
    idempotency_key: Optional opaque key (e.g. a UUID you generate)
        naming this one submission.  If your call fails in a way
        where you cannot tell whether the job was queued — a timeout,
        a dropped connection — retry with the SAME key: you will get
        the original job back (``submission: "replayed"``) instead of
        queuing a duplicate print.  Use a NEW key for each job you
        genuinely want printed; reusing a key with different
        parameters is refused.
    preview_token: Token from ``issue_preview_token`` after the user
        has seen the file.  Required: a queued job is a print the
        scheduler will start unattended, so the gate is here, at the
        door, and the sign-off rides the job.
    version_id: The kept design version this file came from, so the
        print's record lands on that version's history.  A file that is
        not a Kiln design passes none.
    design_id: The design that version belongs to; passed with
        ``version_id``.
    branch_id: The branch that version is on; passed with ``version_id``.

Jobs are executed in priority order, with FIFO tie-breaking.
Use ``job_status`` to check progress and ``queue_summary`` for an overview.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "file_name": "<file_name>"
    },
    "name": "submit_job"
  }
}

Input Schema

NameRequiredDescriptionDefault
priorityNoHigher values are scheduled first (default 0). Default: 0.
branch_idNoThe branch that version is on; passed with ``version_id``.
design_idNoThe design that version belongs to; passed with ``version_id``.
file_nameYesG-code file name (must already exist on the printer).
version_idNoThe kept design version this file came from, so the print's record lands on that version's history. A file that is not a Kiln design passes none.
keep_recordNo``False`` only when the person asks for this print not to be kept ("print this privately", "don't keep a record of this"); never suggest it. Kiln then keeps nothing of the print once it ends, and the answer carries one line saying so. ``True`` keeps it, for a start a team's rule held (``TEAM_KEEPS_PRINTS``) after the person agreed. Omit otherwise: the print is kept the way the account says.
printer_nameNoTarget printer name. Omit to let the scheduler choose: the printer the queue is already on (it stays on one machine unless a person moves it), or on the fleet plan any idle printer.
preview_tokenNoToken from ``issue_preview_token`` after the user has seen the file. Required: a queued job is a print the scheduler will start unattended, so the gate is here, at the door, and the sign-off rides the job.
idempotency_keyNoOptional opaque key (e.g. a UUID you generate) naming this one submission. If your call fails in a way where you cannot tell whether the job was queued — a timeout, a dropped connection — retry with the SAME key: you will get the original job back (``submission: "replayed"``) instead of queuing a duplicate print. Use a NEW key for each job you genuinely want printed; reusing a key with different parameters is refused.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.6.0
    • addedInput schema / properties / keep_record
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "boolean"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "``False`` only when the person asks for this print not to be kept (\"print this privately\", \"don't keep a record of this\"); never suggest it. Kiln then keeps nothing of the print once it ends, and the answer carries one line saying so.  ``True`` keeps it, for a start a team's rule held (``TEAM_KEEPS_PRINTS``) after the person agreed.  Omit otherwise: the print is kept the way the account says.",
      +  "title": "Keep Record"
      +}
  2. Changed8 schema fields changedv1.5.1
    • addedInput schema / properties / branch_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "The branch that version is on; passed with ``version_id``.",
      +  "title": "Branch Id"
      +}
    • addedInput schema / properties / design_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "The design that version belongs to; passed with ``version_id``.",
      +  "title": "Design Id"
      +}
    • addedInput schema / properties / file_name / description
      Added value: +"G-code file name (must already exist on the printer)."
    • addedInput schema / properties / idempotency_key / description
      Added value: +"Optional opaque key (e.g. a UUID you generate) naming this one submission.  If your call fails in a way where you cannot tell whether the job was queued — a timeout, a dropped connection — retry with the SAME key: you will get the original job back (``submission: \"replayed\"``) instead of queuing a duplicate print.  Use a NEW key for each job you genuinely want printed; reusing a key with different parameters is refused."
    • addedInput schema / properties / preview_token / description
      Added value: +"Token from ``issue_preview_token`` after the user has seen the file.  Required: a queued job is a print the scheduler will start unattended, so the gate is here, at the door, and the sign-off rides the job."
    • addedInput schema / properties / printer_name / description
      Added value: +"Target printer name.  Omit to let the scheduler choose: the printer the queue is already on (it stays on one machine unless a person moves it), or on the fleet plan any idle printer."
    • changedInput schema / properties / priority / description
      Previous value: -"Default: 0."New value: +"Higher values are scheduled first (default 0). Default: 0."
    • addedInput schema / properties / version_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "The kept design version this file came from, so the print's record lands on that version's history.  A file that is not a Kiln design passes none.",
      +  "title": "Version Id"
      +}
  3. Changed5 schema fields changedv1.5.0
    • removedInput schema / properties / idempotency_key / default
      Removed value: -null
    • addedInput schema / properties / preview_token
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "title": "Preview Token"
      +}
    • removedInput schema / properties / printer_name / default
      Removed value: -null
    • removedInput schema / properties / priority / default
      Removed value: -0
    • addedInput schema / properties / priority / description
      Added value: +"Default: 0."
  4. Changed1 schema field changedv1.3.1
    • addedInput schema / properties / idempotency_key
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Idempotency Key"
      +}
  5. First observedv0.1.0

TDQS

A4.3/5.0
Behavior5/5

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

Goes well beyond the annotations: discloses the free-account queue cap and that the refusal message states the number, that Pro has no cap, that a queued job starts unattended (explaining why preview_token is required), what keep_record=False actually discards, and the replay behavior returning submission: "replayed" on a duplicate key. The destructiveHint=true annotation is reinforced, not contradicted, by the explicit 'keeps nothing of the print' language.

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?

Front-loaded with the action, then context, then a per-argument breakdown, then a closing pointer to related tools — a sensible structure. The Args block duplicates the schema text almost word for word, which costs some space, but every other sentence carries real information an agent needs.

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?

With no output schema, the description still hints at return content (the privacy acknowledgement line, submission: "replayed"). For a 9-parameter mutation gated on a preview token, the description covers the important preconditions and side effects. What a normal successful response contains (e.g. a job identifier) is not spelled out, which is the one remaining gap.

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 largely restates the schema descriptions verbatim, so the incremental value is limited. It does add a little beyond the schema: the FIFO tie-break for priority and the note that version_id/design_id/branch_id are handed to the scheduler for history recording. Baseline 3 is appropriate when the schema already carries the parameter documentation.

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?

Opens with a specific verb and resource: 'Submit a print job to the queue.' The body further scopes the action (scheduler picks a printer, jobs run in priority order with FIFO tie-breaking), so an agent knows exactly what happens. The only sibling it doesn't contrast is fleet_submit_job, but the description stands on its own without that.

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 conditional guidance for several parameters: omit printer_name to let the scheduler choose, keep_record=False only when the person explicitly asks, omit it otherwise, and retry with the same idempotency_key on ambiguous failures. It also routes follow-up work to job_status and queue_summary. It stops short of saying when to prefer submit_job over other submission siblings, so it's strong but not exhaustive.

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