Skip to main content
Glama

Engineering Script

HEXRF_KD

Heat exchanger fouling resistance back-calculation from shell/tube-side operating conditions using Kern + Dittus-Boelter.

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": {
      "Unknown": "<Unknown>",
      "D_shll": "<D_shll>",
      "D_tube": "<D_tube>",
      "D_wall": "<D_wall>",
      "P_tube": "<P_tube>",
      "S_baffle": "<S_baffle>",
      "N_tube": "<N_tube>",
      "L_tube": "<L_tube>",
      "N_shllseri": "<N_shllseri>",
      "N_shllpara": "<N_shllpara>",
      "N_shllpass": "<N_shllpass>",
      "N_tubepass": "<N_tubepass>",
      "A_hex": "<A_hex>",
      "R_shll": "<R_shll>",
      "R_tube": "<R_tube>",
      "F": "<F>",
      "k_hex": "<k_hex>",
      "T_shll": "<T_shll>",
      "rho_shll": "<rho_shll>",
      "Cp_shll": "<Cp_shll>",
      "mu_shll": "<mu_shll>",
      "k_shll": "<k_shll>",
      "T_tube": "<T_tube>",
      "rho_tube": "<rho_tube>",
      "Cp_tube": "<Cp_tube>",
      "mu_tube": "<mu_tube>",
      "k_tube": "<k_tube>",
      "V_shll": "<V_shll>",
      "T1_shll": "<T1_shll>",
      "T2_shll": "<T2_shll>",
      "V_tube": "<V_tube>",
      "T1_tube": "<T1_tube>",
      "T2_tube": "<T2_tube>"
    },
    "name": "HEXRF_KD"
  }
}

Input Schema

NameRequiredDescriptionDefault
FYesCorrection factor (dimensionless)
A_hexYesTotal heat transfer area
k_hexYesTube wall thermal conductivity
D_shllYesShell inside diameter
D_tubeYesTube outside diameter
D_wallYesTube wall thickness
L_tubeYesTube length
N_tubeYesNumber of tubes
P_tubeYesTube pitch
Q_unitNoOutput heat duty unitMBtu/hr
R_shllYesShell-side fouling resistance
R_tubeYesTube-side fouling resistance
T_shllYesShell-side fluid temperature range
T_tubeYesTube-side fluid temperature range
V_shllYesShell-side volumetric flow rate
V_tubeYesTube-side volumetric flow rate
k_shllYesShell-side fluid thermal conductivity list
k_tubeYesTube-side fluid thermal conductivity list
Cp_shllYesShell-side fluid heat capacity list
Cp_tubeYesTube-side fluid heat capacity list
Rf_unitNoOutput fouling resistance unithr-ft2-F/Btu
T1_shllYesShell-side inlet temperature
T1_tubeYesTube-side inlet temperature
T2_shllYesShell-side outlet temperature
T2_tubeYesTube-side outlet temperature
UnknownYesWhich unknown is being solved for.
mu_shllYesShell-side fluid viscosity list
mu_tubeYesTube-side fluid viscosity list
S_baffleYesBaffle spacing
rho_shllYesShell-side fluid density list
rho_tubeYesTube-side fluid density list
N_shllparaYesNumber of shells in parallel
N_shllpassYesNumber of shell-side passes
N_shllseriYesNumber of shells in series
N_tubepassYesNumber of tube-side passes
U_act_unitNoOutput actual (fouled) overall heat transfer coefficient unitBtu/hr-ft2-F
U_cln_unitNoOutput clean overall heat transfer coefficient unitBtu/hr-ft2-F
h_shll_unitNoOutput shell-side film heat transfer coefficient unitBtu/hr-ft2-F
h_tube_unitNoOutput tube-side film heat transfer coefficient unitBtu/hr-ft2-F
u_shll_unitNoOutput shell-side velocity unitft/sec
u_tube_unitNoOutput tube-side velocity unitft/sec

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.1/5.0
Behavior3/5

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

No annotations exist, so the description carries the full burden. It does disclose the correlations used (Kern for shell side, Dittus-Boelter for tube side), which is genuine methodological context, but it says nothing about numerical solving/iteration, convergence or failure behaviour, or what quantities are returned despite there being no output schema.

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?

One dense, front-loaded sentence with no filler, and the purpose leads. The terseness is a virtue for scanning but sits at the edge of under-specification for a tool with 33 required parameters.

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

Completeness2/5

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

This is a high-complexity, 41-parameter calculator with nested objects and no output schema, so the description should explain return values and the solve-for-unknown behaviour. Neither is covered, and the absence of any differentiation from HEXRF/HEXRF_DG leaves a significant selection gap.

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%, so every one of the 41 parameters already carries its own description and the baseline applies. The sentence only paraphrases the schema with 'shell/tube-side operating conditions' and adds no meaning about the 'Unknown' selector, the list-valued property inputs, or the unit-bearing output options.

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?

States a specific verb and resource ('fouling resistance back-calculation') plus the underlying methods (Kern, Dittus-Boelter), which is much stronger than a name restatement. It does not, however, distinguish itself from siblings HEXRF and HEXRF_DG, nor does it mention that the 'Unknown' parameter makes this a general solve-for-one-unknown routine rather than a pure Rf calculation.

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 when-to-use guidance and no reference to alternatives, despite two obvious sibling candidates (HEXRF, HEXRF_DG) in the tool list. An agent cannot tell from the description which of the three heat-exchanger tools to pick for a given request.

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