# Stormwater Calculator: Runoff, Manning, Culverts, Weirs (`jumblemog/stormwater-calculator`) Actor

Stormwater hydrology and hydraulics from plain text: rational method and NRCS curve-number hydrographs, Manning channels and pipe sizing, HDS-5 culvert headwater, weirs and orifices, with charts.

- **URL**: https://apify.com/jumblemog/stormwater-calculator.md
- **Developed by:** [Jumble Mog](https://apify.com/jumblemog) (community)
- **Categories:** AI, Automation, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Stormwater Calculator: Runoff, Manning, Culverts, Weirs

**Stormwater hydrology and hydraulics from one line of text.** Type `rational method, 10 ha, C 0.5, 100 mm/h`, `trapezoidal channel b 3 m, side slopes 2:1, n 0.025, slope 0.1%, Q 10 m3/s` or `36 in concrete culvert, square edge headwall, 100 ft long, slope 1%, 60 cfs`. You get back:

- **Peak runoff by the rational method**: Q = C·i·A with C weighted over land covers (`60% pavement, 40% lawn`), the frequency factor for 25 to 100-year storms, and the time of concentration by Kirpich or FAA from the flow length and slope, or from an IDF curve.
- **NRCS curve-number runoff and hydrographs**: runoff depth and volume, and the full runoff hydrograph from the NRCS dimensionless unit hydrograph and the Type II 24-hour storm (or a uniform storm), with the peak flow and its time. Tc by the NRCS lag method.
- **Channels and pipes by Manning's equation**: normal and critical depth, velocity, Froude number, shear stress and critical slope for rectangular, trapezoidal, triangular and circular sections; the flow at a given depth; full-pipe capacity. Leave the diameter out and it picks the smallest standard pipe; leave the width out and it finds it.
- **Culverts by FHWA HDS-5**: headwater for inlet and outlet control, the controlling one, HW/D, outlet depth and velocity, for round concrete and corrugated metal pipes and box culverts with nine inlet types; multiple barrels, tailwater, and sizing to an allowable headwater.
- **Weirs and orifices**: sharp-crested rectangular (with end contractions), V-notch, broad-crested and Cipolletti weirs and orifices: the flow for a head, or the head for a flow, with a rating table.
- **A chart**: the hydrograph, the section drawn to scale with its rating curve, the culvert profile with its performance curve, or the weir rating curve.

Metric (m, m³/s, ha, mm, mm/h) or US (ft, cfs, acres, in, in/h): results come back in the units you wrote. Words like `concrete`, `pvc`, `cmp`, `grass` or `riprap` fill in Manning's n, and `roofs`, `pavement`, `lawn` or `woods` fill in runoff coefficients.

It's made for:

- Civil and drainage engineers doing quick checks and preliminary sizing.
- Site designers, landscape architects and contractors sizing pipes, swales and culverts.
- Civil engineering and hydrology students working problems.
- AI agents that need real hydraulics instead of a guess.

![A 36 inch concrete culvert analyzed by this Actor: the profile through the road embankment with the headwater and tailwater levels, next to the HDS-5 performance curve where inlet control (4.86 ft headwater, HW/D 1.62) governs over outlet control at 60 cfs](https://api.apify.com/v2/key-value-stores/Km5b4PG3kYHdZSb1E/records/stormwater-calculator-example.png?signature=vucTubGDcuWTh1P8zw60)

### How to use it

1. Write **Runoff, channels, culverts and weirs**, one per entry. The form has examples.
2. Optionally set the **Units** for numbers written without one.
3. Click **Start**. Each request is a row in the results, with its summary, chart and report.

#### Writing runoff

| You write | It means |
|---|---|
| `10 ha`, `25 acres`, `1 mi2` | Catchment area |
| `C 0.5`, `60% pavement, 40% lawn`, `4 ha roofs and 6 ha lawn` | Runoff coefficient, or land covers that set it |
| `100 mm/h`, `5 in/hr` | Rainfall intensity for the rational method |
| `Tc 15 min`, `flow length 300 m, slope 2%` | Time of concentration, or the path to compute it (Kirpich; `FAA` for overland flow) |
| `25-year storm` | Frequency factor on C (1.1 for 25, 1.2 for 50, 1.25 for 100 years) |
| `CN 80, 5 in of rain` | NRCS curve number and storm rainfall: the hydrograph |
| `uniform 6 hour storm` | A uniform storm instead of the NRCS Type II 24-hour |

#### Writing a channel or pipe

| You write | It means |
|---|---|
| `trapezoidal channel b 3 m, side slopes 2:1` | Bottom width and side slopes (2 horizontal to 1 vertical) |
| `rectangular channel 2 m wide`, `v-ditch 3:1` | Other shapes |
| `600 mm concrete pipe`, `24 in pvc pipe` | A circular pipe |
| `n 0.013` or `concrete`, `pvc`, `cmp`, `earth`, `grass`, `riprap` | Manning's n |
| `slope 0.5%`, `at 1%`, `0.002 ft/ft` | The bed or pipe slope |
| `Q 10 m3/s`, `25 cfs`, `200 l/s` | The flow: gives the normal and critical depth |
| `depth 1 m`, `half full` | A depth: gives the flow it carries |
| `size a concrete pipe at 0.5% for 25 cfs` | The smallest standard pipe flowing full (`80% full` to limit the depth) |
| `Q 5 m3/s, depth 1 m, find width` | The bottom width for a flow at a depth |
| `size a pipe at 1% for 2 ha, C 0.8, 100 mm/h` | Size it for the rational peak flow |

#### Writing a culvert

| You write | It means |
|---|---|
| `36 in concrete culvert`, `cmp culvert`, `2 x 1.5 m box culvert` | Round pipe or box (span x rise) |
| `square edge headwall`, `groove end`, `projecting`, `mitered`, `wingwalls 45°` | The inlet (HDS-5 types) |
| `100 ft long, slope 1%` | Length and slope |
| `60 cfs`, `twin barrels` | Flow (shared between barrels) |
| `tailwater 1 ft`, `allowable headwater 5 ft` | Tailwater depth; the headwater limit for sizing |

#### Writing a weir or orifice

| You write | It means |
|---|---|
| `rectangular weir 2 m long`, `contracted` | Sharp-crested weir, with or without end contractions |
| `90° v-notch weir`, `broad-crested weir`, `Cipolletti weir` | Other weirs |
| `orifice 150 mm diameter` | An orifice |
| `head 0.3 m` or `Q 50 l/s` | Head for the flow, or flow for the head |
| `cd 0.62`, `weir coefficient 3.33` | Coefficients (otherwise standard values) |

### Examples

- `rational method, 10 ha, 60% pavement, 40% lawn, 10-year storm, flow length 300 m, slope 2%, 100 mm/h` → C 0.62, Tc 7.1 min (Kirpich), peak 1.72 m³/s.
- `1 mi2 watershed, 5 in of rain, CN 80, Tc 1 hr` → runoff 2.89 in (154 ac·ft), peak 972 cfs at 12.6 h.
- `trapezoidal channel b 3 m, side slopes 2:1, n 0.025, slope 0.1%, Q 10 m3/s` → normal depth 1.443 m, 1.18 m/s, Froude 0.38; critical depth 0.856 m.
- `size a concrete storm pipe at 0.5% for 25 cfs` → 30 in (29 cfs full), 72% full at 6.6 ft/s.
- `36 in concrete culvert, square edge headwall, 100 ft long, slope 1%, 60 cfs` → headwater 4.86 ft (HW/D 1.62), inlet control.
- `90° v-notch weir, Q 50 l/s` → head 0.266 m.

### How-to examples

Each example is a complete input; the results are from runs of the Actor (also listed under **Examples**).

#### How to calculate peak runoff with the rational method

```json
{"requests": ["rational method, 10 ha, 60% pavement, 40% lawn, 10-year storm, flow length 300 m, slope 2%, 100 mm/h"]}
```

Result: C 0.62, Tc 7.1 min (Kirpich) and a 1.72 m³/s peak.

#### How to calculate runoff and a peak flow with the NRCS curve number method

```json
{"requests": ["1 mi2 watershed, 5 in of rain, CN 80, Tc 1 hr"]}
```

Result: 2.89 in of runoff (154 ac·ft) and a 972 cfs peak at 12.6 h.

#### How to size a storm pipe or check a culvert

```json
{"requests": ["size a concrete storm pipe at 0.5% for 25 cfs", "36 in concrete culvert, square edge headwall, 100 ft long, slope 1%, 60 cfs"]}
```

Result: a 30 in pipe (29 cfs full), 72% full at 6.6 ft/s; the culvert's headwater is 4.86 ft (HW/D 1.62) under inlet control.

#### How to let an AI agent do drainage calculations

Add this Actor to the [Apify MCP server](https://mcp.apify.com) with `https://mcp.apify.com/?tools=jumblemog/stormwater-calculator`. The agent passes the catchment, channel, pipe, culvert or weir in one line and answers with the flow, depth, size or headwater.

### FAQ

**Which methods does it use?** The rational method with Kirpich Tc, NRCS curve numbers with the dimensionless unit hydrograph, Manning's equation, HDS-5 culvert inlet and outlet control, and the standard weir and orifice equations.

**Does it look up rainfall intensity for my location?** No. Give the intensity from your local IDF curve, or the curve's a, b and c.

**Can it find a channel's normal depth?** Yes: `trapezoidal channel b 3 m, side slopes 2:1, n 0.025, slope 0.1%, Q 10 m3/s` gives 1.443 m at 1.18 m/s, Froude 0.38, and a critical depth of 0.856 m.

**How big a catchment can it handle?** The rational method up to about 80 ha (200 acres) and NRCS hydrographs up to about 65 km² (25 mi²); it warns above those.

### Input

| Field | What it is |
|---|---|
| `requests` | The runoff, channel, culvert and weir requests, as lines of text or objects (up to 200 per run) |
| `units` | For numbers without a unit: `m` or `ft` |
| `charts` | Draw a chart for each request (default on) |

### Output

One dataset item per request, also saved together in the run's `OUTPUT` record:

```json
{
  "request": 3, "status": "ok", "type": "channel",
  "title": "Trapezoidal channel b 3 m, n 0.025, slope 0.1%, 10 m³/s",
  "summary": "Normal depth 1.443 m, velocity 1.178 m/s, Froude 0.38 (subcritical); critical depth 0.8556 m.",
  "section": {"shape": "trapezoidal", "bottomWidth": 3.0, "sideSlope": "2H:1V", "n": 0.025, "slopePercent": 0.1},
  "flow": {"flow": 10.0, "normalDepth": 1.443, "flowArea": 8.491, "wettedPerimeter": 9.452, "topWidth": 8.771,
           "hydraulicRadius": 0.8983, "velocity": 1.178, "froude": 0.382, "regime": "subcritical",
           "specificEnergy": 1.513, "shearStress": 8.81},
  "critical": {"criticalDepth": 0.8556, "criticalVelocity": 2.481, "criticalSlopePercent": 0.7765, "slopeType": "mild"},
  "units": {"length": "m", "flow": "m³/s", "velocity": "m/s", "area": "m²", "shear": "Pa", "...": "..."},
  "imageUrl": "https://api.apify.com/v2/key-value-stores/.../records/003-Trapezoidal-channel....png"
}
```

Runoff has `catchment`, `covers`, `rainfall` and `peak` (rational) or `runoff`, `hydrograph` and `series` (NRCS); channels have `section`, `flow`, `critical`, `capacity` (pipes) and `sizes`; culverts have `culvert`, `headwater` and `sizes`; weirs have `structure`, `result` and `rating`. Every item has `units`, `summary`, `warnings`, `notes` (the method and assumptions), a Markdown `report` and links to the chart and report. A request that can't be computed has `"status": "failed"` and the reason in `error`, and isn't billed.

### How it works

1. **Rational method**: Q = C·i·A; Kirpich Tc = 0.0195·L^0.77·S^−0.385 minutes (L in m); 5-minute minimum; the modified rational triangle (Q at Tc, back to 0 at 2·Tc) for the volume.
2. **NRCS**: Q = (P − 0.2S)²/(P + 0.8S) with S = 1000/CN − 10 applied to the cumulative storm rainfall; the excess convolved with the NRCS dimensionless unit hydrograph (Tp = Δt/2 + 0.6·Tc, peak 484 in US units), so the hydrograph holds exactly the runoff volume.
3. **Manning**: Q = (1/n)·A·R^⅔·S^½ solved for depth by bisection; critical depth from Q²T = gA³; circular depths take the lower root (pipes carry the most at about 94% full).
4. **Culverts**: HDS-5 inlet control (unsubmerged form 1 below Q/AD^0.5 = 3.5, submerged above 4.0, interpolated between) with the Appendix A constants, and outlet control HW = H + ho − L·S with H = (1 + ke + 2gn²L/R^1.33)·V²/2g and ho the greater of the tailwater and (dc + D)/2; the higher governs.
5. **Weirs**: the standard weir and orifice equations, solved for the head by bisection.

Results are engineering estimates for the stated assumptions; check designs against the local drainage manual and code.

### Pricing

You pay one low price per request, at the prices shown on this page. The chart and report are included. Requests that can't be computed are never charged. If you set a maximum cost per run, the Actor stops before a request that wouldn't fit.

### Speed

Each request takes a few milliseconds. A run through the API answers in about 10 seconds, including the cloud container starting.

### Tips and limits

- **Rational method** is for small catchments (up to about 80 ha or 200 acres); it warns above that. **NRCS** hydrographs are for single watersheds up to about 65 km² (25 mi²).
- **Intensity** isn't looked up from a location: give it from your local IDF curve, or give the curve's a, b and c (`idfA`, `idfB`, `idfC` in an object, i = a/(t + b)^c).
- **Manning** assumes uniform flow in a prismatic channel; backwater and gradually varied flow aren't modelled. Pipes that can't carry the flow are reported as surcharged with the hydraulic gradient they'd need.
- **Culverts**: one inlet and one barrel type at a time; no road overtopping or improved (tapered) inlets.
- **Limits**: 200 requests per run.

### For AI agents and developers

This Actor works with the [Apify MCP server](https://mcp.apify.com), so AI agents can call it as a tool. Pass `requests` as plain text and read `summary`, `peak`, `hydrograph`, `flow`, `headwater`, `result` and `warnings`. A direct API call that waits for the answer:

```bash
curl -X POST "https://api.apify.com/v2/acts/jumblemog~stormwater-calculator/run-sync-get-dataset-items?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"requests": ["size a concrete storm pipe at 0.5% for 25 cfs"]}'
```

`run-sync` instead returns the run's `OUTPUT`: the status, the counts and every result as JSON.

In Python, with the `apify-client` package:

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_TOKEN")
run = client.actor("jumblemog/stormwater-calculator").call(run_input={
    "requests": [{"type": "culvert", "shape": "box", "span": "2 m", "rise": "1.5 m", "length": "30 m",
                  "slope": "0.5%", "q": "8 m3/s", "inlet": "box wingwall 30-75", "tw": "1 m"}],
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["summary"])
```

### Credits

- Math: [NumPy](https://numpy.org) (BSD-3-Clause); geometry: [Shapely](https://github.com/shapely/shapely) (BSD-3-Clause).
- Charts: [Vega-Lite](https://vega.github.io/vega-lite/) and [vl-convert](https://github.com/vega/vl-convert) (BSD-3-Clause), with the [Inter](https://rsms.me/inter/) font (SIL Open Font License).
- Methods: FHWA HDS-5, *Hydraulic Design of Highway Culverts* (2012); USDA NRCS, *National Engineering Handbook* Part 630 and TR-55; Chow, *Open-Channel Hydraulics*; Chow, Maidment and Mays, *Applied Hydrology*; USBR, *Water Measurement Manual*; Kirpich (1940).

# Actor input Schema

## `requests` (type: `array`):

One request per entry, as a line of text or an object. Runoff: the rational method ('10 ha, C 0.5, 100 mm/h'; land covers like '60% pavement, 40% lawn' or '4 ha roofs, 6 ha lawn' set C; a return period like '25-year' applies the frequency factor; Tc given or from the flow length and slope by Kirpich or FAA) or the NRCS curve-number method ('CN 80, 5 in of rain', Tc given or from the flow length and slope by the lag method; Type II 24-hour storm, or 'uniform' over a duration) with the runoff hydrograph. Channels and pipes: shape (rectangular, trapezoidal, triangular, or a pipe diameter like '600 mm' or '24 in'), bottom width, side slopes ('2:1' is 2 horizontal to 1 vertical), n or a material (concrete, pvc, cmp, earth, grass, riprap...), slope, and the flow (normal and critical depth) or a depth (the flow it carries; 'half full'); leave the diameter out or write 'size' to pick the smallest standard pipe, give the flow and depth without a width to find the width, or give a catchment and intensity instead of the flow. Culverts: round ('36 in concrete culvert') or box ('2 x 1.5 m box'), inlet (square edge or groove end headwall, projecting, CMP mitered or headwall, box wingwalls), length, slope, flow, tailwater, barrels, and an allowable headwater to size it. Weirs and orifices: rectangular (crest length, 'contracted'), 90° or other V-notch, broad-crested, Cipolletti, or an orifice diameter; give the head for the flow, or the flow for the head; Cd or a weir coefficient. Object fields: type (runoff, channel, culvert or weir), method, area, c, cover, covers, i, tc, tcMethod, length, slope, returnPeriod, idfA, idfB, idfC, cn, rain, storm, duration; shape, b, z, z2, d, n, material, q, depth, depthRatio, maxRatio, design; span, rise, inlet, tw, hwAllowed, barrels; kind, h, angle, contractions, cd, cw; units, title, text.

## `units` (type: `string`):

For numbers written without a unit. Feet, inches, cfs, acres or in/h in the text switch to US units on their own.

## `charts` (type: `boolean`):

Hydrographs, channel and pipe sections drawn to scale with their rating curves, culvert profiles with performance curves, and weir rating curves.

## Actor input object example

```json
{
  "requests": [
    "rational method, 10 ha, 60% pavement, 40% lawn, 10-year storm, flow length 300 m, slope 2%, 100 mm/h",
    "1 mi2 watershed, 5 in of rain, CN 80, Tc 1 hr",
    "trapezoidal channel b 3 m, side slopes 2:1, n 0.025, slope 0.1%, Q 10 m3/s",
    "size a concrete storm pipe at 0.5% for 25 cfs",
    "36 in concrete culvert, square edge headwall, 100 ft long, slope 1%, 60 cfs",
    "90° v-notch weir, Q 50 l/s",
    {
      "type": "culvert",
      "shape": "box",
      "span": "2 m",
      "rise": "1.5 m",
      "length": "30 m",
      "slope": "0.5%",
      "q": "8 m3/s",
      "inlet": "box wingwall 30-75",
      "tw": "1 m"
    }
  ],
  "units": "m",
  "charts": true
}
```

# Actor output Schema

## `results` (type: `string`):

One row per request: the summary and chart.

## `output` (type: `string`):

The OUTPUT record: every result in one JSON object.

## `files` (type: `string`):

Charts (PNG and SVG) and Markdown reports in the run's key-value store.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "requests": [
        "rational method, 10 ha, 60% pavement, 40% lawn, 10-year storm, flow length 300 m, slope 2%, 100 mm/h",
        "1 mi2 watershed, 5 in of rain, CN 80, Tc 1 hr",
        "trapezoidal channel b 3 m, side slopes 2:1, n 0.025, slope 0.1%, Q 10 m3/s",
        "size a concrete storm pipe at 0.5% for 25 cfs",
        "36 in concrete culvert, square edge headwall, 100 ft long, slope 1%, 60 cfs",
        "90° v-notch weir, Q 50 l/s",
        {
            "type": "culvert",
            "shape": "box",
            "span": "2 m",
            "rise": "1.5 m",
            "length": "30 m",
            "slope": "0.5%",
            "q": "8 m3/s",
            "inlet": "box wingwall 30-75",
            "tw": "1 m"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("jumblemog/stormwater-calculator").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "requests": [
        "rational method, 10 ha, 60% pavement, 40% lawn, 10-year storm, flow length 300 m, slope 2%, 100 mm/h",
        "1 mi2 watershed, 5 in of rain, CN 80, Tc 1 hr",
        "trapezoidal channel b 3 m, side slopes 2:1, n 0.025, slope 0.1%, Q 10 m3/s",
        "size a concrete storm pipe at 0.5% for 25 cfs",
        "36 in concrete culvert, square edge headwall, 100 ft long, slope 1%, 60 cfs",
        "90° v-notch weir, Q 50 l/s",
        {
            "type": "culvert",
            "shape": "box",
            "span": "2 m",
            "rise": "1.5 m",
            "length": "30 m",
            "slope": "0.5%",
            "q": "8 m3/s",
            "inlet": "box wingwall 30-75",
            "tw": "1 m",
        },
    ] }

# Run the Actor and wait for it to finish
run = client.actor("jumblemog/stormwater-calculator").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "requests": [
    "rational method, 10 ha, 60% pavement, 40% lawn, 10-year storm, flow length 300 m, slope 2%, 100 mm/h",
    "1 mi2 watershed, 5 in of rain, CN 80, Tc 1 hr",
    "trapezoidal channel b 3 m, side slopes 2:1, n 0.025, slope 0.1%, Q 10 m3/s",
    "size a concrete storm pipe at 0.5% for 25 cfs",
    "36 in concrete culvert, square edge headwall, 100 ft long, slope 1%, 60 cfs",
    "90° v-notch weir, Q 50 l/s",
    {
      "type": "culvert",
      "shape": "box",
      "span": "2 m",
      "rise": "1.5 m",
      "length": "30 m",
      "slope": "0.5%",
      "q": "8 m3/s",
      "inlet": "box wingwall 30-75",
      "tw": "1 m"
    }
  ]
}' |
apify call jumblemog/stormwater-calculator --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,jumblemog/stormwater-calculator"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/DTZQ6LVAjITTXP96L/builds/1wwnc99SNZPFX8vMr/openapi.json
