Skip to main content
Glama

Water or gas pipe size, velocity and pressure loss

size_pipe
Read-onlyIdempotent

Sizes a hot or cold water pipe, or a low-pressure gas pipe, and shows the working. Water: design flow (from outlets, with a simple in-use-at-once rule, or a flow you give), velocity against a limit (1.5 m/s default), pressure loss per metre and in total, and the pressure left at the outlet if you give the supply pressure. Gas: flow from the gross heat input of the appliances fed, pressure drop against the 1 mbar natural gas (2.5 mbar LPG) allowance, with a meter capacity warning. Returns recommended (smallest size that passes), sizes_considered, must_check (points the engineer confirms) and sources. Calculated from fluid physics (Darcy-Weisbach); no BS EN 806 or BS 6891 tables are reproduced. Typical calls: {"medium":"gas","heat_input_kw_gross":30,"run_length_m":12,"fittings":{"elbows":5}} or {"medium":"water","service":"cold","outlets":[{"type":"bath"},{"type":"kitchen_sink"},{"type":"basin"},{"type":"wc"},{"type":"shower_mixer"}],"run_length_m":15,"supply_pressure_bar":2.5,"height_rise_m":3}.

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": {
      "medium": "<medium>",
      "run_length_m": "<run_length_m>"
    },
    "name": "size_pipe"
  }
}

Input Schema

NameRequiredDescriptionDefault
gasNoGas only. Default natural_gas.
tradeNoOptional. The plumber or heating engineer's own business details (Nero Trade Profile v1, the same shape as Spark Pack and Nero Work). Used to prefill records and to give a stable nero_trade_ref. Not stored by Flow Pack.
mediumYes
outletsNoWater only: outlets this pipe feeds.
serviceNoWater only. Default cold.
fittingsNoCount of fittings on the run. If left out, 30% is added to the length instead (or fittings_allowance_percent).
materialNoWater: copper (default), plastic, mdpe. Gas: copper (default), steel, csst.
pipe_size_mmNoCheck only this nominal size.
run_length_mYesMeasured pipe length, metres (from the meter for gas, from the stop tap or cylinder for water).
water_temp_cNoWater only. Default 10 cold, 60 hot.
gas_flow_m3_hNoGas only: gas flow, if already known.
height_rise_mNoWater only: height gained from start to outlet (negative if it falls).
design_flow_l_sNoWater only: design flow in litres a second, if known (overrides outlets).
max_velocity_m_sNoWater only. Default 1.5.
allowed_drop_mbarNoGas only. Default 1 natural gas, 2.5 LPG.
heat_input_kw_netNoGas only: if only the net figure is known.
heat_input_kw_grossNoGas only: total gross heat input of every appliance this pipe feeds (data plate).
supply_pressure_barNoWater only: working pressure at the start of the run (measured with water flowing).
simultaneous_outletsNoWater only: how many outlets run at once. Default: square root of the number of outlets, rounded.
fittings_allowance_percentNoLength added for fittings when they are not counted. Default 30.
min_pressure_at_outlet_barNoWater only: pressure needed at the end. Default 1.0 bar.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / trade / properties / categories / description
      Previous value: -"Trades offered, using Nero Work trade names. Defaults to [\"plumber\", \"heating\"]."New value: +"The trades the business offers. Defaults to [\"plumber\", \"heating\"]."
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the readOnly/idempotent annotations: it discloses the calculation basis (Darcy-Weisbach), what the response contains (recommended, sizes_considered, must_check, sources), the meter capacity warning, and the important limitation that no BS EN 806 or BS 6891 tables are reproduced. That limitation is exactly the kind of compliance context an agent needs before relaying results to an engineer.

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, then water behaviour, then gas behaviour, then return keys, then worked example calls — a sensible order. The prose is dense and the sentences are long, but almost every clause carries operative information; the two example payloads are the bulkiest element and could be trimmed.

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

Completeness5/5

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

For a 21-parameter tool with no output schema, the description still names the response keys and explains both calculation paths and their inputs. An agent has enough to choose the medium, pick the right flow input, and interpret the result without guessing.

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?

Schema coverage is already 95%, so the baseline is 3, but the description adds genuine cross-parameter meaning: design flow overrides outlets, the in-use-at-once default rule, the 1.5 m/s velocity limit, the 1 mbar natural gas / 2.5 mbar LPG allowance, and the 30% fittings fallback when fittings are not counted. Parameter units and per-field defaults remain in the schema rather than the prose.

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?

States a specific verb and resource ('Sizes a hot or cold water pipe, or a low-pressure gas pipe') and immediately bounds scope to water and low-pressure gas. The two media are separated explicitly, so an agent can tell this apart from size_radiators or size_heat_source without opening the schema.

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?

Gives clear conditions for each mode: water sizing takes either outlets (with a simultaneous-use rule) or a supplied design flow; gas sizing takes gross heat input or a known gas flow. It does not name sibling tools or state when this tool is the wrong choice (e.g. higher-pressure or commercial pipework), so it stops short of full routing guidance.

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.