Skip to main content
Glama

compare_print_options

Read-only

Compares local 3D printing costs with outsourced fulfillment quotes side by side, helping agents recommend the lower-cost option based on material, quantity, and shipping.

Instructions

Compare local printing cost vs. outsourced manufacturing.

Runs a local cost estimate and (if Craftcloud is configured) fetches
a fulfillment quote, then returns a side-by-side comparison to help
agents recommend the best option.

Args:
    file_path: Path to the G-code file (for local) or model file
        (STL/3MF for fulfillment).  If a G-code file is provided,
        only local estimate is returned.
    material: Filament material for the local estimate (PLA, PETG, …).
        Leave empty to use what the file was sliced for, PLA when it
        names nothing.  When Kiln's servers answer, the
        local estimate also carries a ``cost_intelligence`` field; what
        it holds depends on the tier.
    fulfillment_material_id: Material ID from ``fulfillment_materials``
        for the outsourced quote.  If omitted, the fulfillment quote
        is skipped.  A model that arrived with no real size is not
        sent to be priced: ``fulfillment`` then carries ``code``
        ``SIZE_NOT_CHOSEN`` and ``next_call`` (set its size with
        ``rescale_model``).  A priced model's size is in
        ``fulfillment.priced_size_mm``.  A model that arrived lying
        down is priced standing up, from a turned copy of the file
        (never the file itself); ``fulfillment.pose`` says so, and its
        ``said`` line is for the person.
    quantity: Number of copies for fulfillment (default 1).
    electricity_rate: Cost per kWh in USD (default 0.12).
    printer_wattage: Printer power consumption in watts (default 200).
    shipping_country: ISO country code for fulfillment shipping.
    printer_id: Optional registered printer the local print is for;
        passed on with the file when kiln-pro is asked.

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_path": "<file_path>"
    },
    "name": "compare_print_options"
  }
}

Input Schema

NameRequiredDescriptionDefault
materialNoFilament material for the local estimate (PLA, PETG, …). Leave empty to use what the file was sliced for, PLA when it names nothing. When Kiln's servers answer, the local estimate also carries a ``cost_intelligence`` field; what it holds depends on the tier. Default: "".
quantityNoNumber of copies for fulfillment (default 1). Default: 1.
file_pathYesPath to the G-code file (for local) or model file (STL/3MF for fulfillment). If a G-code file is provided, only local estimate is returned.
printer_idNoOptional registered printer the local print is for; passed on with the file when kiln-pro is asked. Default: "".
printer_wattageNoPrinter power consumption in watts (default 200). Default: 200.0.
electricity_rateNoCost per kWh in USD (default 0.12). Default: 0.12.
shipping_countryNoISO country code for fulfillment shipping. Default: "US".
fulfillment_material_idNoMaterial ID from ``fulfillment_materials`` for the outsourced quote. If omitted, the fulfillment quote is skipped. A model that arrived with no real size is not sent to be priced: ``fulfillment`` then carries ``code`` ``SIZE_NOT_CHOSEN`` and ``next_call`` (set its size with ``rescale_model``). A priced model's size is in ``fulfillment.priced_size_mm``. A model that arrived lying down is priced standing up, from a turned copy of the file (never the file itself); ``fulfillment.pose`` says so, and its ``said`` line is for the person.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.6.0
    • changedInput schema / properties / fulfillment_material_id / description
      Previous value: -"Material ID from ``fulfillment_materials`` for the outsourced quote.  If omitted, the fulfillment quote is skipped."New value: +"Material ID from ``fulfillment_materials`` for the outsourced quote.  If omitted, the fulfillment quote is skipped.  A model that arrived with no real size is not sent to be priced: ``fulfillment`` then carries ``code`` ``SIZE_NOT_CHOSEN`` and ``next_call`` (set its size with ``rescale_model``).  A priced model's size is in ``fulfillment.priced_size_mm``.  A model that arrived lying down is priced standing up, from a turned copy of the file (never the file itself); ``fulfillment.pose`` says so, and its ``said`` line is for the person."
  2. Changed8 schema fields changedv1.5.1
    • changedInput schema / properties / electricity_rate / description
      Previous value: -"Default: 0.12."New value: +"Cost per kWh in USD (default 0.12). Default: 0.12."
    • addedInput schema / properties / file_path / description
      Added value: +"Path to the G-code file (for local) or model file (STL/3MF for fulfillment).  If a G-code file is provided, only local estimate is returned."
    • addedInput schema / properties / fulfillment_material_id / description
      Added value: +"Material ID from ``fulfillment_materials`` for the outsourced quote.  If omitted, the fulfillment quote is skipped."
    • changedInput schema / properties / material / description
      Previous value: -"Default: \"\"."New value: +"Filament material for the local estimate (PLA, PETG, …). Leave empty to use what the file was sliced for, PLA when it names nothing.  When Kiln's servers answer, the local estimate also carries a ``cost_intelligence`` field; what it holds depends on the tier. Default: \"\"."
    • changedInput schema / properties / printer_id / description
      Previous value: -"Default: \"\"."New value: +"Optional registered printer the local print is for; passed on with the file when kiln-pro is asked. Default: \"\"."
    • changedInput schema / properties / printer_wattage / description
      Previous value: -"Default: 200.0."New value: +"Printer power consumption in watts (default 200). Default: 200.0."
    • changedInput schema / properties / quantity / description
      Previous value: -"Default: 1."New value: +"Number of copies for fulfillment (default 1). Default: 1."
    • changedInput schema / properties / shipping_country / description
      Previous value: -"Default: \"US\"."New value: +"ISO country code for fulfillment shipping. Default: \"US\"."
  3. Changed12 schema fields changedv1.5.0
    • removedInput schema / properties / electricity_rate / default
      Removed value: -0.12
    • addedInput schema / properties / electricity_rate / description
      Added value: +"Default: 0.12."
    • removedInput schema / properties / fulfillment_material_id / default
      Removed value: -null
    • removedInput schema / properties / material / default
      Removed value: -"PLA"
    • addedInput schema / properties / material / description
      Added value: +"Default: \"\"."
    • addedInput schema / properties / printer_id
      Added value: +{
      +  "description": "Default: \"\".",
      +  "title": "Printer Id",
      +  "type": "string"
      +}
    • removedInput schema / properties / printer_wattage / default
      Removed value: -200
    • addedInput schema / properties / printer_wattage / description
      Added value: +"Default: 200.0."
    • removedInput schema / properties / quantity / default
      Removed value: -1
    • addedInput schema / properties / quantity / description
      Added value: +"Default: 1."
    • removedInput schema / properties / shipping_country / default
      Removed value: -"US"
    • addedInput schema / properties / shipping_country / description
      Added value: +"Default: \"US\"."
  4. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint true, destructiveHint false), and the description adds real context beyond them: the fulfillment branch depends on Craftcloud being configured, the local branch may contact Kiln servers with tier-dependent cost_intelligence, and failure modes are spelled out (SIZE_NOT_CHOSEN, next_call). It never discusses latency or rate limits for the external calls, and the external-service dependency sits slightly awkwardly with openWorldHint=false, but it does not contradict it.

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 purpose and conditional-logic sentences are well front-loaded, but roughly half the text is an Args section that duplicates the input schema word for word, including truncated phrases like '(PLA, PETG, …)'. Substantial trimming would lose nothing an agent cannot already read in the schema.

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 usefully names the returned structures an agent must interpret: cost_intelligence, fulfillment.code, next_call, priced_size_mm, pose and the person-facing said line. For a read-only estimate/quote tool with 8 optional-heavy parameters, that is close to sufficient; only the local estimate's own fields go unexplained.

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 100%, and the Args block in the description is essentially a verbatim restatement of those schema descriptions, so it adds no new meaning for parameters. The default-value and fallback notes (PLA when sliced material is unknown, quantity default 1) are already in the schema. Baseline 3 applies when the schema carries the parameter burden.

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 opening line gives a specific verb and two resources: compares local printing cost against outsourced manufacturing, and states it returns a side-by-side comparison to support a recommendation. It is clearly distinguishable from siblings like fulfillment_materials (used to obtain the material ID) and rescale_model (used to fix an unset size), which it names inline.

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?

It states the operative conditions: a G-code file yields only a local estimate, and omitting fulfillment_material_id skips the outsourced quote. It also routes the agent to the right sibling (fulfillment_materials for IDs, rescale_model for size). It does not explicitly say when to prefer this over a local-only estimate sibling, which keeps it short of a 5.

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