Skip to main content
Glama

Engineering Script

HEXRF_DG

Heat exchanger fouling resistance back-calculation from shell/tube-side operating conditions using Delaware + Gnielinski.

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>",
      "LP_tube": "<LP_tube>",
      "S_baffle": "<S_baffle>",
      "C_baffle": "<C_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_DG"
  }
}

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
LP_tubeYesLayout pattern of tube in shell
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
C_baffleYesBaffle cut as a fraction of shell diameter, 0 < value <= 0.5
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

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden, and it does not disclose that this is an iterative solver whose behavior changes with the required 'Unknown' selection (tube-V, tube-T2, shll-V, shll-T2). It also omits that temperature-dependent property lists must be supplied consistently with the temperature ranges, and says nothing about what is computed or returned (fouled/clean U, film coefficients, velocities). 'Back-calculation' is the only behavioral signal, which is thin for a 35-required-parameter solver.

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 definition is a single front-loaded clause with no filler, and naming the correlation pair is useful information rather than padding. It is appropriately terse, though the terseness leaves real gaps that belong to other dimensions rather than to conciseness.

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?

For a 43-parameter, 35-required solver with no annotations and no output schema, one sentence is not enough. The description should at minimum explain the 'Unknown' solving mode, required input consistency (property lists vs. temperature ranges), and the returned quantities; none of that is present. An agent can guess the broad purpose but not how to drive the tool correctly from the description alone.

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 all 43 parameters, including nested value/unit objects and enums, are already documented in the schema. The description adds no parameter-level meaning, such as how 'Unknown' repurposes the other inputs or how property list lengths relate to the temperature arrays. Baseline 3 is appropriate when the schema does the full job.

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 gives a specific verb and resource: 'fouling resistance back-calculation' for a heat exchanger, plus the method ('Delaware + Gnielinski'). That clearly distinguishes it from forward-rating tools such as LMTD or HEXRF, though it never names the closest siblings (HEXRF, HEXRF_KD) or explains how it differs from them. The purpose is clear, but sibling differentiation is only implied by the method name.

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 explicit when-to-use guidance, no prerequisites, and no named alternative. An agent must infer from 'DG' and 'back-calculation' that this is the Delaware/Gnielinski variant and not the HEXRF or HEXRF_KD variant, which is weak routing for a family with three closely named siblings. No exclusions or conditions are stated.

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