Skip to main content
Glama
eng-toolkit

eng-toolkit

by Lin830326

Fluids Pipe Network

fluids_pipe_network

Solves steady incompressible looped pipe networks with pumps, valves, demands, and fixed heads using Darcy-Weisbach or Hazen-Williams, with optional pump system-curve output.

Instructions

Steady incompressible looped pipe network by damped node-head Newton, Colebrook-White Darcy or Hazen-Williams. Fixed heads, demands, pumps/check valves and pipe valves. Smooth Re 2000..4000 blend. <=200 nodes, 400 pipes, 40 pumps, 100 iterations; convergence requires mass residual and head change. curve_points (one pump): system_curve.csv, system head vs pump head over flow.

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_pipe_network"
  }
}

Input Schema

NameRequiredDescriptionDefault
nodesNoid,elevation,demand|head,value, e.g. 'r,0 m,head,20 m;j,0 m,demand,1 L/s'; <=200 nodes, fixed head required.
pipesNoid,start,end,L,D,roughness_or_C,K, e.g. 'p,r,j,10 m,50 mm,0 mm,0'; <=400 pipes; C is a bare coefficient.
pumpsNo<=40 'id,i,j,poly,H0,a,b,yes|no' or 'id,i,j,points,Q:H|Q:H,yes|no'; units required; final field is check valve.
valvesNoPipe valve records 'pipe_id,open|closed,K', e.g. 'p,open,2'; <=400; added minor K, '' omits valves.
densityNoFluid mass density, e.g. '1000 kg/m^3'; all modes; default is a nominal water input, not a property correlation.1000 kg/m^3
curve_pointsNo0 (default) none; 2..200: with exactly one pump, rows of system_curve.csv over its flow range (operating point inserted).
headloss_modelNodarcy_weisbach or hazen_williams; Hazen-Williams is restricted to turbulent water, 5..25 C caller assumption.darcy_weisbach
max_iterationsNoNewton iteration cap, 1..100; default 100; unconverged calls return an error.
vapour_pressureNoAbsolute fluid vapour pressure, e.g. '2.34 kPa'; '' omits absolute-pressure cavitation comparison.
dynamic_viscosityNoFluid dynamic viscosity, e.g. '1 mPa*s'; all modes; '' requires kinematic_viscosity instead.1 mPa*s
kinematic_viscosityNoFluid kinematic viscosity, e.g. '1 cSt'; '' omits; supply only when dynamic_viscosity is ''.
atmospheric_pressureNoAbsolute atmospheric pressure for gauge-head conversion, e.g. '101325 Pa'; used with vapour_pressure.101325 Pa

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.1

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden and does disclose useful traits: convergence requires both mass residual and head change, unconverged runs error out, Hazen-Williams is restricted to turbulent water, and vapour_pressure enables a cavitation comparison. It omits what the solver returns (heads, flows, pressures, the system_curve.csv contents beyond a mention), which matters for a 12-parameter solver with 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?

Front-loaded with purpose and method, then constraints, then the curve_points note; no filler sentences. It is telegraphic to the point of being hard to parse in places ('Smooth Re 2000..4000 blend'), and the curve_points behavior sits at the end where it is easy to miss.

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

Completeness3/5

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

For a complex network solver with 12 parameters, no annotations, and no output schema, the description covers method, limits, and convergence but never explains the result payload (what heads/flows/curve data come back and in what units). That leaves a meaningful gap for an agent deciding whether to call it and how to interpret the response.

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 baseline is 3; the schema already documents each record format, defaults, and unit requirements. The description restates a few limits (node/pipe/pump counts, one-pump constraint for curve_points) but adds little syntax or meaning beyond what the schema provides.

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+resource: solving a steady incompressible looped pipe network, with the numerical method (damped node-head Newton) and friction models (Colebrook-White Darcy, Hazen-Williams) named. It is clearly distinct from single-pipe siblings like calc_pipe_pressure_drop, but it never explicitly contrasts itself with them or with fluids_pump_system.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied by the scope (looped network with fixed heads, demands, pumps, valves) and by stated limits (<=200 nodes, 400 pipes, 40 pumps). There is no explicit when-to-use vs when-not guidance, no prerequisites such as units consistency across records, and no referral to alternative tools for single-pipe or pump-only problems.

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