Skip to main content
Glama
eng-toolkit

eng-toolkit

by Lin830326

Fluids Compressible

fluids_compressible

Computes compressible-flow properties for ideal gases, including isentropic, shock, expansion, Fanno, Rayleigh, and nozzle relations, with unit-checked inputs and branch-resolved inverses.

Instructions

Calorically perfect ideal-gas isentropic, normal/oblique shock, Prandtl-Meyer, Fanno, Rayleigh and nozzle mass-flow relations. NACA 1135 formulas; bracketed branch inverses. 1.01<=gamma<=2, 1e-6<=Mach<=50; attached shocks only. No real-gas or viscous nozzle model.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "fluids_compressible"
  }
}

Input Schema

NameRequiredDescriptionDefault
areaNoNozzle throat area, e.g. '1 cm^2'; required for nozzle; '' omits in other modes.
machNoMach number, e.g. 2; 0 selects inverse area/pressure input for isentropic; nozzle ignores it.
modeNoisentropic, normal_shock, oblique_shock, expansion, fanno, rayleigh, or nozzle.isentropic
gammaNoConstant heat-capacity ratio, e.g. 1.4; all modes, supported 1.01..2.
branchNosubsonic/supersonic for area inversion; weak/strong for oblique shock.subsonic
densityNoFluid mass density, e.g. '1000 kg/m^3'; all modes; default is a nominal water input, not a property correlation.1.2 kg/m^3
deflectionNoFlow turning angle, e.g. '10 deg'; required for oblique_shock and expansion; '' omits in other modes.
gas_constantNoSpecific ideal-gas constant, e.g. '287.05 J/kg/K'; needed for nozzle; no gas-name lookup.287.05 J/kg/K
back_pressureNoAbsolute nozzle outlet pressure, e.g. '1 bar'; required for nozzle, may be zero; '' omits otherwise.
area_ratio_inputNoA/A*, e.g. 1.6875; isentropic inverse only with mach=0; 0 omits.
dynamic_viscosityNoFluid dynamic viscosity, e.g. '1 mPa*s'; all modes; '' requires kinematic_viscosity instead.18.1 uPa*s
kinematic_viscosityNoFluid kinematic viscosity, e.g. '1 cSt'; '' omits; supply only when dynamic_viscosity is ''.
stagnation_pressureNoAbsolute nozzle reservoir pressure, e.g. '2 bar'; required for nozzle; '' omits in relation modes.
pressure_ratio_inputNop0/p, e.g. 7.8244; isentropic inverse only with mach=0; 0 omits.
discharge_coefficientNoNozzle discharge coefficient Cd in (0,1], e.g. 0.98; nozzle only.
stagnation_temperatureNoAbsolute nozzle reservoir temperature, e.g. '20 degC'; required for nozzle; '' omits otherwise.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.1

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral burden and supplies useful context: NACA 1135 formula basis, bracketed branch inverses, validity ranges, and model exclusions. It does not state error behavior when inputs fall outside the ranges or describe returned quantities, but it discloses substantially more than the schema alone.

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 front-loaded with the domain and modes, then adds formula source, inversion behavior, ranges, and exclusions in a compact form. Every clause carries technical information; there is no filler.

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 complex 16-parameter, multi-mode calculator with no annotations and no output schema, it covers the physics domain, formula source, validity ranges, and key exclusions. It leaves output description and explicit mode-selection guidance implicit, but the schema fills in the detailed input semantics.

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 the 16 parameters, mode values, units, and mode-specific requirements are already documented in the schema. The description only adds global validity ranges and a brief note about bracketed branch inverses, which is useful but does not meaningfully extend parameter semantics beyond the schema.

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 names the specific physics domain and relations: ideal-gas isentropic flow, normal/oblique shocks, Prandtl-Meyer expansion, Fanno, Rayleigh, and nozzle mass flow. This is far more specific than the tool name alone and clearly separates it from general fluids siblings such as pipe-network or open-channel tools.

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 applicability conditions and exclusions: gamma between 1.01 and 2, Mach between 1e-6 and 50, attached shocks only, and no real-gas or viscous nozzle model. It does not explicitly name alternative tools for those excluded cases, so it stops short of full when-to-use/when-not guidance.

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