Skip to main content
Glama
fdm-mcp

fdm-mcp

by akshara-ns

Estimate a print job

estimate_print_job
Read-onlyIdempotent

Estimate filament mass, print time, energy use, and cost for one FDM print from part shape or CAD volume and surface area.

Instructions

Filament mass and length, print time, energy and cost for one FDM print (HW4 tool). Errors: unknown shape, missing dimensions, impossible volume/area pair, layer height > 80 % of line width.

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

Input Schema

NameRequiredDescriptionDefault
shapeNobox: size_x/y/z are outer sizes; cylinder: size_x = diameter, size_z = height; custom: give volume_cm3 and surface_area_cm2 from CADcustom
materialNoFilament (values from manufacturer data sheets).PLA
size_x_mmNoBox length or cylinder diameter [mm, 1–350]
size_y_mmNoBox width [mm, 1–350]
size_z_mmNoHeight [mm, 0.2–350]
volume_cm3NoSolid part volume (custom shape) [cm³, 0.05–20000]
wall_loopsNoWall lines; default 2
line_width_mmNoExtrusion line width; default 0.42 [mm, 0.2–1.2]
infill_percentNoSparse infill density; default 15 [%, 0–100]
max_flow_mm3_sNoHot-end volumetric flow limit; default 21 [mm³/s, 1–60]
layer_height_mmNoLayer height, at most 80 % of line width; default 0.2 [mm, 0.04–0.6]
printer_power_WNoAverage printer power; default 110 [W, 10–2000]
print_speed_mm_sNoPrint speed; default 150 [mm/s, 5–600]
surface_area_cm2NoPart surface area (custom shape) [cm², 0.5–20000]
motion_efficiencyNoShare of time spent extruding; default 0.6 [-, 0.1–1]
filament_price_per_kgNoFilament price; default 23 [$/kg, 0–500]
electricity_price_per_kWhNoElectricity price; default 0.17 [$/kWh, 0–2]

Output Schema

NameRequiredDescriptionDefault
toolYes
checksYes
inputsYesEvery input actually used, after defaults.
resultsYes
summaryYes
verdictYesWorst status among the checks.
decisionNoRecommended action (new tools only).
featuresNoPer-feature table (check_deviated_part).
warningsYes
assumptionsYes
human_checksNoWhat a person must verify before acting.
defaults_usedYesInputs the user did not give and the default applied.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive/closed-world, so the safety profile is covered. The description adds genuinely new behavioral context by enumerating the failure modes the tool raises (unknown shape, missing dimensions, impossible volume/area pair, invalid layer-height-to-line-width ratio), which lets an agent pre-validate input. It does not discuss cost model assumptions or units of the returned numbers, but the output schema covers the return shape.

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?

Two dense sentences with the computed quantities front-loaded and the error conditions second — good ordering, no filler. The parenthetical '(HW4 tool)' is opaque and consumes space without adding actionable meaning.

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

Completeness3/5

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

With 17 optional parameters, an output schema and rich annotations, the description covers the essentials (what is computed, what fails). It is still thin on routing guidance and on modelling assumptions (e.g. what 'motion_efficiency' or 'impossible volume/area pair' mean practically), which matters for a tool with this many knobs.

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 every parameter carries units, ranges and defaults, so the schema does the heavy lifting. The description adds almost nothing per-parameter; the one cross-field rule it mentions (layer height vs line width) is already stated in the schema's layer_height_mm description.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names the concrete outputs (filament mass and length, print time, energy, cost) for a specific object (one FDM print), which is far more informative than the title alone. It does not explicitly contrast itself with the check_*/plan_* siblings, but the computational nature is unmistakable.

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

Usage Guidelines3/5

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

Usage is only implied: the error list hints at valid input conditions (shape must be known, dimensions must be supplied, volume/area must be consistent), which guides correct invocation. There is no explicit statement of when to call this versus e.g. plan_unattended_print or compare_failure_costs.

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