Skip to main content
Glama

Calculate 3D print cost

calculate_print_cost
Read-onlyIdempotent

Estimate what an FDM print costs (material, electricity, machine wear, labor, failure allowance) and a suggested selling price. Needs the print weight in grams and time in hours from the slicer; all other inputs have sensible defaults (1 kg spool at $20, 120 W printer, $0.12/kWh, 5% failures).

Input Schema

NameRequiredDescriptionDefault
quantityNo
labor_minutesNoHands-on time: slicing, removal, post-processing.
markup_percentNoProfit markup to compute a selling price.
spool_price_usdNo
spool_weight_kgNo
print_time_hoursYesPrint time in hours (e.g. 3.5).
printer_cost_usdNoPrinter purchase price, for depreciation. 0 to skip.
print_weight_gramsYesFilament used, from the slicer.
labor_rate_per_hourNo
printer_power_wattsNo
failure_rate_percentNoAllowance for failed prints, 0–100. Use 0 for none.
printer_lifespan_hoursNo
electricity_cost_per_kwhNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed21 schema fields changed
    • addedInput schema / properties / electricity_cost_per_kwh / maximum
      Added value: +10
    • addedInput schema / properties / electricity_cost_per_kwh / minimum
      Added value: +0
    • addedInput schema / properties / failure_rate_percent / description
      Added value: +"Allowance for failed prints, 0–100. Use 0 for none."
    • addedInput schema / properties / failure_rate_percent / maximum
      Added value: +100
    • addedInput schema / properties / failure_rate_percent / minimum
      Added value: +0
    • addedInput schema / properties / labor_minutes / minimum
      Added value: +0
    • addedInput schema / properties / labor_rate_per_hour / minimum
      Added value: +0
    • addedInput schema / properties / markup_percent / minimum
      Added value: +0
    • addedInput schema / properties / print_time_hours / maximum
      Added value: +10000
    • addedInput schema / properties / print_time_hours / minimum
      Added value: +0
    • addedInput schema / properties / print_weight_grams / maximum
      Added value: +1000000
    • addedInput schema / properties / print_weight_grams / minimum
      Added value: +0
    • addedInput schema / properties / printer_cost_usd / minimum
      Added value: +0
    • addedInput schema / properties / printer_lifespan_hours / exclusiveMinimum
      Added value: +0
    • addedInput schema / properties / printer_power_watts / maximum
      Added value: +10000
    • addedInput schema / properties / printer_power_watts / minimum
      Added value: +0
    • addedInput schema / properties / quantity / maximum
      Added value: +10000
    • addedInput schema / properties / quantity / minimum
      Added value: +1
    • addedInput schema / properties / spool_price_usd / minimum
      Added value: +0
    • addedInput schema / properties / spool_weight_kg / exclusiveMinimum
      Added value: +0
    • addedInput schema / properties / spool_weight_kg / maximum
      Added value: +50
  2. First observed

TDQS

A4.5/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 behavior, so the burden is light. The description adds real context beyond that: the cost breakdown it computes, the suggested selling price, and the default assumption values an agent should know before overriding them.

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 tight sentences: the first names what is computed, the second the inputs and defaults. No wasted words and the key requirement (weight and time) is front-loaded.

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 13 parameters but only 2 required and a light annotation profile, the description gives the agent enough to call it correctly: required inputs, default assumptions, and the output concept. No output schema exists, but the description names the returned cost and selling price, which is sufficient for a calculator.

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

Parameters4/5

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

Schema coverage is only 46% across 13 parameters, so the description must compensate, and it does for the most important ones by spelling out defaults (1 kg spool at $20, 120 W, $0.12/kWh, 5% failures) and framing the two required inputs as slicer outputs. It leaves a few params (quantity, markup, printer lifespan) implicit, keeping it from a 5.

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 ("Estimate") and resource ("what an FDM print costs") plus the exact cost components and the derived selling price. Clearly distinct from siblings like calculate_filament_usage or calculate_volumetric_flow, which compute a single quantity rather than a full cost model.

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?

Explains prerequisites clearly: the two required inputs come from the slicer and everything else is optional with defaults, which tells the agent how to call it minimally. It does not name alternatives or when-not-to-use cases, so it stops 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.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources