Skip to main content
Glama

Home Toolkit

Plumbing Pipe, Drain, Pump & French Drain Calculators

calculate_plumbing_pipes_and_pumps
Read-onlyIdempotent

Run residential plumbing hydraulic calculators: horizontal drain slope, drain/vent pipe sizing (Hunter DFU + Manning), water supply main sizing (Hunter WSFU + Hazen-Williams), well pressure tank drawdown (Boyle law), sump pump total dynamic head (TDH), or French drain gravel/fabric/slope quantities.

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": {
      "kind": "<kind>"
    },
    "name": "calculate_plumbing_pipes_and_pumps"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindYesWhich plumbing calculator to run.
capInNoFor french_drain: soil/sod cap thickness above fabric in inches.
runFtNoHorizontal run length in feet (drain_slope or sump_pump_head).
slopeNoFor drain_pipe_size: drain slope (quarter = 1/4 in/ft, eighth = 1/8 in/ft).quarter
dropInNoFor drain_slope: available vertical drop in inches.
elbowsNoFor sump_pump_head: number of 90-degree elbows.
fallInNoFor french_drain: total fall from high end to outlet in inches.
liftFtNoFor sump_pump_head: vertical lift in feet.
depthInNoFor french_drain: trench depth in inches.
flowGpmNoFor sump_pump_head: target flow rate in GPM.
pumpGpmNoFor well_pressure_tank: pump flow rate in GPM.
widthInNoFor french_drain: trench width in inches.
cutInPsiNoFor well_pressure_tank: optional custom cut-in PSI.
fixturesNoFixture counts object (e.g. { toilet: 2, bathSink: 2, shower: 1, kitchenSink: 1, washer: 1, hoseBibb: 2 }).
heightFtNoFor water_supply_pipe: height of highest fixture above main in feet.
lengthFtNoDeveloped pipe length (water_supply_pipe) or trench length (french_drain) in feet.
cutOutPsiNoFor well_pressure_tank: optional custom cut-out PSI.
checkValveNoFor sump_pump_head: whether a check valve is installed.
diameterInNoFor drain_slope: pipe diameter in inches (e.g. 1.5, 2, 3, 4, 6, 8).
frenchPipeNoFor french_drain: perforated drain pipe nominal diameter in inches.4
runMinutesNoFor well_pressure_tank: minimum pump run time in minutes.
pressurePsiNoFor water_supply_pipe: static supply pressure in PSI.
dischargePipeNoFor sump_pump_head: Schedule 40 PVC discharge pipe size in inches.1.5
switchSettingNoFor well_pressure_tank: pressure switch setting (PSI).40-60

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive, and closed-world, so the safety profile is covered structurally. The description adds the underlying methods (Hunter DFU, Manning, Hazen-Williams, Boyle law, TDH), which signals these are deterministic engineering computations rather than lookups, but it says nothing about return shape, units, or validation failures for a tool 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?

A single sentence, front-loaded with the verb and resource, followed by a compact enumeration of the six modes - no filler or marketing language. It is dense but readable, though the long comma-separated list is somewhat harder to scan than a short bulleted mapping would be.

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 24-parameter, six-mode, nested-object tool with no output schema, the description is adequate but thin: it never states that only `kind` is required, that parameters are mode-specific, or what the result contains. An agent must open the schema to learn which inputs each mode needs and cannot know what units or fields come back.

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% and every property already carries a 'For <kind>:' note with units and valid ranges, so the schema does the heavy lifting. The description only restates the same six mode names in prose with method names attached; it adds no cross-parameter logic (which params each mode actually consumes, how `fixtures` interacts with water supply sizing).

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 ('Run residential plumbing hydraulic calculators') and then enumerates all six calculator modes, so an agent knows exactly which plumbing computations are covered. The domain is clearly disjoint from the sibling tools (HVAC sizing, septic, electrical panel, appliance lookups), so mis-selection risk is low.

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?

The list of topics acts as an implicit when-to-use map (drain slope vs. supply sizing vs. sump TDH vs. French drain quantities), which is genuinely useful for routing within the tool. However there is no explicit guidance on prerequisites, sequencing, or when a different tool (e.g. septic sizing for a drain field) is the better choice, and no statement that a single `kind` selects one calculator per call.

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.