Why LLM Agents Need Deterministic Physics Guardrails in Manufacturing (with a Real Polycarbonate Weld-Line MCP Walkthrough)
If you ask a general-purpose LLM how to fix a weld line on a 3.0 mm polycarbonate cover, it almost always replies: "Increase barrel and nozzle temperatures by 15–20 °C and raise mold temperature." On a real 260-ton injection molding press, that advice can degrade polycarbonate, add seconds to every

If you ask a general-purpose LLM how to fix a weld line on a 3.0 mm polycarbonate cover, it almost always replies: "Increase barrel and nozzle temperatures by 15–20 °C and raise mold temperature."
On a real 260-ton injection molding press, that advice can degrade polycarbonate, add seconds to every cycle, and ignore the fact that the press has +81% unused injection-speed headroom while cooling headroom is already at -0%.
That failure mode is why industrial AI agents should never generate machine setpoints directly from token probabilities. Instead, the LLM should orchestrate intent and explanation while a deterministic physics + rule engine computes the numbers and enforces safety margins.
In this walkthrough, we trace a real thick-section PC weld-line case through our open-source browser HMI AICraft Studio and the same underlying REST / MCP tools.
A reliable molding agent splits work into two deterministic tool calls linked by a business_id archive key:
Inputs: PC, 3.0 mm wall, 124.0 g total shot weight, 220 mm flow length, Ø50 mm screw, 260 T clamping force.
curl -X POST https://aicraft4injection.com/v1/first-shot \ -H "Authorization: Bearer $AICRAFT_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "business_id": "PC-COVER-260T", "target_shot_weight_g": 124, "polymer": { "polymer_abbreviation": "PC" }, "mold": { "product_ave_thickness": 3.0, "product_max_length": 220 }, "machine": { "clamping_force": 260, "injector": { "injector_screw_diameter_mm": 50 } } }' Enter fullscreen mode Exit fullscreen mode Computed T1 baseline (47 parameters total; key setpoints):
Crucially, the engine also computes process window headroom:
Now the operator inspects the T1 cover and reports a moderate weld line:
curl -X POST https://aicraft4injection.com/v1/optimize \ -H "Authorization: Bearer $AICRAFT_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "business_id": "PC-COVER-260T", "defect_info": [{ "defect": "WELDLINE", "level": "moderate" }] }' Enter fullscreen mode Exit fullscreen mode Instead of touching NT (which would worsen an already cooling-limited 3.0 mm PC part), the engine matches three velocity rules ( Rule.dat #135, #137, #139 ):
Because business_id retrieves all 47 stored parameters server-side, the agent doesn't risk hallucinating or dropping screw positions ( ML0, MEL, VPTL ) between turns.
You can plug the same deterministic engine into any MCP-compatible client over Streamable HTTP:
{ "mcpServers": { "aicraft-injection": { "url": "https://aicraft4injection.com/mcp", "headers": { "Authorization": "Bearer YOUR_API_KEY" } } } } Enter fullscreen mode Exit fullscreen mode Or inspect the whole workflow visually first—without writing code—in AICraft Studio:
Try it live: aicraft4injection.com/studio | Source (MIT): github.com/DreamwayChan/aicraft-injection-molding-studio
How are you separating deterministic domain math from LLM orchestration in your own production workflows?