Skip to main content
Glama
eng-toolkit

eng-toolkit

by Lin830326

Thermal Exchanger

thermal_exchanger

Calculate heat exchanger duty and outlet temperatures, or size required UA/area, using effectiveness-NTU cross-checked with LMTD for parallel, counterflow, crossflow, and shell-tube arrangements.

Instructions

Heat exchanger by effectiveness-NTU, cross-checked with the LMTD method. Arrangements: parallel, counterflow, crossflow_unmixed (both fluids unmixed), crossflow_hot_mixed / crossflow_cold_mixed (that fluid mixed, the other unmixed), shell_tube (one shell pass, 2+ tube passes). RATING: give 'ua' (or 'overall_u' and 'area') and get duty and both outlet temperatures. SIZING: give 'duty' (and optionally 'overall_u') and get UA (and area). Capacity rates are mass_flow x cp for each fluid. Returns effectiveness, NTU, Cr, LMTD, correction factor F, and refuses an impossible duty (outlet beyond the other fluid's inlet, or beyond what the arrangement can reach); warns at a temperature cross.

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": {
      "arrangement": "<arrangement>",
      "hot_inlet_temperature": "<hot_inlet_temperature>",
      "cold_inlet_temperature": "<cold_inlet_temperature>",
      "hot_mass_flow": "<hot_mass_flow>",
      "hot_cp": "<hot_cp>",
      "cold_mass_flow": "<cold_mass_flow>",
      "cold_cp": "<cold_cp>"
    },
    "name": "thermal_exchanger"
  }
}

Input Schema

NameRequiredDescriptionDefault
uaNoRATING: overall conductance U*A, e.g. '5000 W/K'
areaNoRATING with overall_u: heat transfer area, e.g. '10 m^2'
dutyNoSIZING: required heat duty, e.g. '200 kW'
hot_cpYesHot fluid specific heat, e.g. '2100 J/(kg*K)'
cold_cpYesCold fluid specific heat, e.g. '4180 J/(kg*K)'
overall_uNoOverall coefficient U, e.g. '500 W/(m^2*K)'. With 'area' it gives UA (rating); with 'duty' it gives the area (sizing).
arrangementYes'parallel', 'counterflow', 'crossflow_unmixed', 'crossflow_hot_mixed', 'crossflow_cold_mixed' or 'shell_tube'
unit_systemNoUnit system of the results: 'metric' (degC, W, m, W/m2/K) or 'imperial' (degF, Btu/h, ft, Btu/h/ft2/degF)metric
hot_mass_flowYesHot fluid mass flow, e.g. '2 kg/s'
cold_mass_flowYesCold fluid mass flow, e.g. '1.5 kg/s'
hot_inlet_temperatureYesHot fluid inlet temperature, e.g. '150 degC'
cold_inlet_temperatureYesCold fluid inlet temperature, e.g. '20 degC' (must be below the hot inlet)

Output Schema

NameRequiredDescriptionDefault
okYes
dataNoNon-quantity payload (reports, listings)
errorNo
valueNoPrimary quantity result
valuesNoAll named quantity results (includes the primary)
warningsNo
artifactsNo
provenanceYesWhat produced the result and from which inputs.
review_statusNounreviewed

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.1

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and performs well: it discloses the cross-check method, supported arrangements, output quantities, refusal of impossible duty, and temperature-cross warning. It does not discuss property-variation limits or phase-change assumptions, so it stops short of exhaustive behavioral disclosure.

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?

The description is a single dense paragraph but is front-loaded with the method and then organized by arrangements, RATING, SIZING, and outputs. Most sentences earn their place; the arrangement parentheticals are necessary but make it slightly heavy.

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?

Given a complex 12-parameter tool with full schema coverage and an output schema, the description covers the critical gaps: arrangement semantics, rating versus sizing inputs, capacity-rate definition, validation behavior, and output quantities. An agent has enough information to call it correctly without needing return-value explanation.

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 100%, so parameter documentation is already strong. The description still adds meaningful relationships beyond the schema by tying ua versus overall_u plus area to RATING, tying duty plus optional overall_u to SIZING, and stating that capacity rates are mass_flow times cp.

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 description states a specific calculation resource and method: a heat exchanger analyzed by effectiveness-NTU and cross-checked with LMTD. It names the supported arrangements and clarifies rating versus sizing, so an agent can distinguish this from general thermal siblings such as thermal_convection or thermal_conduction.

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 gives clear mode selection guidance: use RATING when UA or overall_u plus area is supplied, and SIZING when duty is supplied. It does not name sibling alternatives or explicitly say when not to use this tool, but the internal usage conditions are unusually clear.

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