Skip to main content
Glama
fdm-mcp

fdm-mcp

by akshara-ns

Compare failure costs with and without monitoring

compare_failure_costs
Read-onlyIdempotent

Compare expected waste per good part for unmonitored, detect-and-stop, and detect-and-adapt 3D-printing failure handling to select a monitoring strategy by cost.

Instructions

Expected waste per good part for A) unmonitored, B) detect-and-stop and C) detect-and-adapt (HW4 tool). Errors: values outside their ranges.

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": {
      "print_time_h": "<print_time_h>",
      "filament_g": "<filament_g>"
    },
    "name": "compare_failure_costs"
  }
}

Input Schema

NameRequiredDescriptionDefault
jobsNoGood parts to total over; default 100
filament_gYesFilament of one attempt [g, 0.1–10000]
print_time_hYesTime of one attempt [h, 0.05–500]
recoverable_shareNoShare of detected failures repaired in place (hypothesis); default 0.4 [-, 0–1]
machine_cost_per_hNoMachine time cost; default 0.5 [$/h, 0–200]
mean_failure_pointNoMean share of the job done when it fails; default 0.3 [-, 0–1]
detection_delay_minNoCamera detection delay; default 10 [min, 0–600]
failure_probabilityNoChance one attempt fails; default 0.15 [-, 0–0.9]
filament_price_per_kgNoFilament price; default 23 [$/kg, 0–500]

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

C2.8/5.0
Behavior3/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), so the bar is lower. The description adds one useful behavioral fact — it errors on out-of-range values — and clarifies that three scenarios are evaluated, but says nothing about how the comparison is computed or that several inputs are hypothesis-level defaults.

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?

It is short and front-loads the core computation, but the telegraphic style damages clarity: 'A) unmonitored, B) detect-and-stop and C) detect-and-adapt (HW4 tool)' and the fragment 'Errors: values outside their ranges.' are terse to the point of ambiguity.

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?

An output schema exists and the input schema is fully documented, which reduces the burden. Still, for a nine-parameter cost model, the description omits what the model assumes (e.g. that failure_probability and mean_failure_point are hypotheses) and what 'HW4' refers to, leaving real gaps.

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% with units, ranges, and defaults documented per parameter, so the schema carries the semantics. The description adds no parameter-level meaning beyond that, which is the expected baseline here.

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

Purpose3/5

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

The description names the computed quantity (expected waste per good part) and the three scenarios compared (unmonitored, detect-and-stop, detect-and-adapt), which is substantively informative. However, it is a noun phrase with no verb, 'HW4 tool' is unexplained jargon, and it never states that the tool returns a comparison across the three strategies, so an agent must infer the operation.

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

Usage Guidelines2/5

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

There is no guidance on when to use this tool versus siblings like estimate_print_job or plan_unattended_print, nor any stated preconditions. 'Errors: values outside their ranges' describes validation failure, not usage selection.

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