Skip to main content
Glama

Engineering Script

REFRIGERANT

Calculate refrigerant thermodynamic properties using CoolProp. Provide Fluid name and any 2 state variables from: T, P, rho, H, S, U. Returns all remaining properties: T, P, rho, H, S, U, Cp, Cv, viscosity, conductivity, molecular weight.

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": {
      "Fluid": "<Fluid>"
    },
    "name": "REFRIGERANT"
  }
}

Input Schema

NameRequiredDescriptionDefault
HNoSpecific Enthalpy (INPUT if known). Units: J/kg, kJ/kg
PNoPressure (INPUT if known). Units: Pa, kPa, MPa, bar, psi
SNoSpecific Entropy (INPUT if known). Units: J/kg-K, kJ/kg-K
TNoTemperature (INPUT if known). Units: K, C, F
UNoSpecific Internal Energy (INPUT if known). Units: J/kg, kJ/kg
rhoNoDensity (INPUT if known). Units: kg/m3
FluidYesRefrigerant name. Supported: R134a, R22, R32, R410A, R407C, R1234yf, R1234ze(E), Ammonia(=NH3), CarbonDioxide(=CO2)
C_unitNoDesired Cp output unitJ/kg-K
H_unitNoDesired Enthalpy output unitJ/kg
L_unitNoDesired Conductivity output unitW/m-K
M_unitNoDesired Molecular Weight output unitg/mol
O_unitNoDesired Cv output unitJ/kg-K
P_unitNoDesired Pressure output unitPa
S_unitNoDesired Entropy output unitJ/kg-K
T_unitNoDesired Temperature output unitK
U_unitNoDesired Internal Energy unitJ/kg
V_unitNoDesired Viscosity output unitPa-s
rho_unitNoDesired Density output unitkg/m3

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior3/5

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

With no annotations, the description must disclose behavioral traits itself. It does disclose the use of CoolProp, the input pattern, and the output list. However, it does not address edge cases like what happens if more than two state variables are provided, invalid or two-phase states, or potential error behavior, leaving a gap in transparency.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is three concise sentences: purpose, input requirement, and output list. Every sentence earns its place, and the most important information is front-loaded. There is no fluff or repetition.

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?

Since there is no output schema, the description appropriately lists the returned properties. It also conveys the key constraint of providing any two state variables. However, it does not mention the separate output-unit parameters (e.g., C_unit, T_unit) or the need to define a complete thermodynamic state, which would make it more complete for a tool with 18 parameters.

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?

Although schema description coverage is 100% and baseline is 3, the description adds crucial semantics by specifying that exactly two of the six state variables (T, P, rho, H, S, U) are inputs, and the rest are outputs. This relational knowledge goes beyond the individual parameter 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 opens with a specific verb and resource: 'Calculate refrigerant thermodynamic properties using CoolProp.' It clearly distinguishes from sibling tools (e.g., STEAM, CVSTEAM) by focusing on refrigerants and naming the CoolProp engine, while also enumerating the relevant state variables.

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 explicit input guidance: 'Provide Fluid name and any 2 state variables from: T, P, rho, H, S, U.' This is a clear usage rule. However, it does not explicitly state when not to use this tool or mention alternatives, such as using STEAM for water/steam, so it falls short of a 5.

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