Skip to main content
Glama
eng-toolkit

eng-toolkit

by Lin830326

Thermal Convection

thermal_convection

Compute heat transfer coefficient and Nusselt number from standard correlations for internal, external, and natural convection using fluid properties as inputs.

Instructions

Nusselt number and heat transfer coefficient h = Nu*k/L from a standard correlation. Fluid properties are INPUTS (no property tables): conductivity, density, dynamic viscosity and cp (or Prandtl number). correlation: internal_laminar_constant_temperature (Nu 3.66), internal_laminar_constant_flux (4.36), dittus_boelter, gnielinski (Petukhov friction factor), flat_plate_laminar, flat_plate_mixed, cylinder_cross_flow (Churchill-Bernstein), sphere (Whitaker), natural_vertical_plate / natural_vertical_plate_laminar / natural_horizontal_cylinder (Churchill-Chu), natural_channel (finned heatsink: Elenbaas / Bar-Cohen-Rohsenow, needs 'fin_gap', returns h and the optimum gap). 'length' is the diameter, or the distance the fluid flows along (upright heatsink: the base height, NOT the fin height). Returns Re (or Ra), Pr, Nu, h; warns outside the correlation's range.

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": {
      "correlation": "<correlation>",
      "length": "<length>",
      "conductivity": "<conductivity>",
      "density": "<density>",
      "dynamic_viscosity": "<dynamic_viscosity>"
    },
    "name": "thermal_convection"
  }
}

Input Schema

NameRequiredDescriptionDefault
lengthYesDiameter, or the distance the fluid flows along (upright heatsink: base height, NOT fin height), e.g. '100 mm'
densityYesFluid density, e.g. '1.2 kg/m^3'
fin_gapNonatural_channel: clear gap between adjacent fins/plates, e.g. '5 mm'. On a plate correlation it only triggers a warning.
heatingNodittus_boelter only: true if the fluid is being heated (n = 0.4), false if cooled (n = 0.3)
prandtlNoPrandtl number (dimensionless). 0 = not given (then specific_heat is used).
velocityNoForced convection: free-stream or mean velocity, e.g. '5 m/s'. Not used for natural convection.
fin_heightNonatural_channel optional: fin height off the base (channel depth), e.g. '24 mm'; only used for a validity check
correlationYesOne of: internal_laminar_constant_temperature, internal_laminar_constant_flux, dittus_boelter, gnielinski, flat_plate_laminar, flat_plate_mixed, cylinder_cross_flow, sphere, natural_vertical_plate, natural_vertical_plate_laminar, natural_horizontal_cylinder, natural_channel
pipe_lengthNointernal flow optional: pipe length, to check the entry region (L/D), e.g. '3 m'
unit_systemNoUnit system of the results: 'metric' (degC, W, m, W/m2/K) or 'imperial' (degF, Btu/h, ft, Btu/h/ft2/degF)metric
conductivityYesFluid thermal conductivity, e.g. '0.026 W/(m*K)'
specific_heatNoFluid cp, e.g. '1007 J/(kg*K)'. Give this or 'prandtl'.
dynamic_viscosityYesFluid dynamic viscosity, e.g. '1.8e-5 Pa*s'
viscosity_surfaceNosphere optional: dynamic viscosity at the surface temperature (Whitaker mu/mu_s), e.g. '1.9e-5 Pa*s'
ambient_temperatureNoNatural convection: absolute fluid temperature far away, e.g. '20 degC'
surface_temperatureNoNatural convection: absolute surface temperature, e.g. '80 degC'
expansion_coefficientNoNatural convection: volumetric expansion coefficient beta, e.g. '0.0034 1/K'. Blank = ideal gas, 1/T_film.

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.1/5.0
Behavior4/5

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

With no annotations, the description does real work: it discloses the outputs (Re/Ra, Pr, Nu, h), that the tool warns when inputs fall outside a correlation's validity range, that no property tables are used, and that a blank expansion_coefficient defaults to an ideal-gas 1/T_film. It stops short of covering error behavior or unit-system effects on results.

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?

Front-loaded with the core computation and return values before the long correlation enumeration, and every clause carries information about a specific correlation's requirements. The correlation list is dense but earns its place as the primary selection aid.

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

Completeness4/5

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

For a 17-parameter, unannotated computational tool this is largely complete: it explains the physical inputs required, how to pick a correlation, the special-case parameters, and the return set (with an output schema also present). Minor gaps remain around unit_system and when velocity versus temperature inputs are required.

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 baseline is 3. The description adds some meaning not in the schema (no property tables; fin_gap required for natural_channel, which also returns the optimum gap; 'length' means flow distance, not fin height), but most of this is already restated in the schema property descriptions.

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 computation (Nusselt number and h = Nu*k/L) and enumerates the exact correlation set the tool supports, including the underlying model names (Churchill-Bernstein, Whitaker, Churchill-Chu, Elenbaas/Bar-Cohen-Rohsenow). This scope is unmistakably distinct from the sibling tools thermal_conduction, thermal_fin, and thermal_radiation.

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 selection context: fluid properties are inputs rather than table lookups, each correlation name signals its regime (internal vs flat plate vs cylinder vs natural), and natural_channel is flagged as the finned-heatsink case requiring 'fin_gap'. It does not explicitly say when to prefer a sibling tool (e.g., thermal_fin for fin efficiency), which keeps it from a 5.

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